Class Shader::CompileInfo

Nested Relationships

This class is a nested type of Class Shader.

Class Documentation

class CompileInfo

Compilation parameters for a Shader.

Public Members

Stage stage = {Stage::kInvalid}

The stage of the Shader to compile.

api_types::ManagedShaderSource sourceCode

Source code of the Shader to compile (optional)

std::vector<uint8_t> byteCode

A byte code of the Shader to compile (optional)

std::string shaderProfile

For HLSL, a shader profile string of the Shader to compile (optional)

void *shaderData = {nullptr}

A pipeline state (optional) Valid strings: https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-models