ShaderBuildDesc

A structure representing shader build description information.

File location: framework/cauldron/framework/inc/render/shaderbuilder.h

Methods

Return type

Description

static ShaderBuildDesc

Vertex ( const wchar_t* shaderCode, const wchar_t* entryPoint, ShaderModel model = ShaderModel::SM6_0 , DefineList * pDefines = nullptr )
Convenience function to build a vertex shader build description.

static ShaderBuildDesc

Pixel ( const wchar_t* shaderCode, const wchar_t* entryPoint, ShaderModel model = ShaderModel::SM6_0 , DefineList * pDefines = nullptr )
Convenience function to build a pixel shader build description.

static ShaderBuildDesc

Compute ( const wchar_t* shaderCode, const wchar_t* entryPoint, ShaderModel model = ShaderModel::SM6_0 , DefineList * pDefines = nullptr )
Convenience function to build a compute shader build description.

Detailed description

A structure representing shader build description information.

Data fields

Type

Description

const wchar_t*

ShaderCode
Shader source (can be string source or a file path).

const wchar_t*

EntryPoint
Shader entry point name.

const wchar_t*

AdditionalParams
Shader additional params.

ShaderStage

Stage
Shader stage (defaults to ShaderStage::Compute).

ShaderModel

Model
Shader model to use (defaults to ShaderModel::SM6_0).

DefineList

Defines
Shader defines to use in shader compiling.

Methods

Vertex

Copied!

static ShaderBuildDesc Vertex (
    const wchar_t* shaderCode,
    const wchar_t* entryPoint,
    ShaderModel  model = ShaderModel::SM6_0 ,
    DefineList * pDefines = nullptr
)

Convenience function to build a vertex shader build description.


Pixel

Copied!

static ShaderBuildDesc Pixel (
    const wchar_t* shaderCode,
    const wchar_t* entryPoint,
    ShaderModel  model = ShaderModel::SM6_0 ,
    DefineList * pDefines = nullptr
)

Convenience function to build a pixel shader build description.


Compute

Copied!

static ShaderBuildDesc Compute (
    const wchar_t* shaderCode,
    const wchar_t* entryPoint,
    ShaderModel  model = ShaderModel::SM6_0 ,
    DefineList * pDefines = nullptr
)

Convenience function to build a compute shader build description.