class
TShader
template<bool IsRenderProxy>Templated version of Shader used for implementing both main and render thread counterparts.
Public
Constructors
TShader<IsRenderProxy>
TShader<IsRenderProxy>
Methods
~TShader<IsRenderProxy>
GetVariationCount
Returns the total number of variations in this shader.
GetCompatibleVariations
Returns the list of all supported variations based on current render API and renderer.
GetCompatibleVariations
Returns the list of all supported variations based on current render API and renderer, and limits the variations to only those implementing the specified variation parameters.
- variationParameters
- Object containing variation parameters to compare to check.
- exact
- When true the variation needs to have the exact number of parameters with identical contents to the provided parameters. When false, only the provided subset of parameters is used for comparison, while any extra parameters present in the variation are not compared.
GetVariations
Returns a list of all variations in this shader.
GetVariationParameters
Returns the list of all variation parameters supported by this shader, possible values of each parameter and other meta-data.
GetQueuePriority
Returns currently active queue priority.
GetAllowSeparablePasses
Returns if separable passes are allowed.
GetFlags
Returns flags that control how the renderer interprets the shader.
Actual interpretation of the flags depends on the active renderer.
GetDataParameterDescription
Returns description for a data parameter with the specified name.
Returns null if it doesn't exist.
GetTextureParameterDescription
Returns description for a texture parameter with the specified name.
Returns null if it doesn't exist.
GetSamplerParameterDescription
Returns description for a sampler parameter with the specified name.
Returns null if it doesn't exist.
GetBufferParameterInformation
Returns description for a buffer parameter with the specified name.
Returns null if it doesn't exist.
HasDataParameter
Checks if the parameter with the specified name exists, and is a data parameter.
HasTextureParameter
Checks if the parameter with the specified name exists, and is a texture parameter.
HasSamplerParameter
Checks if the parameter with the specified name exists, and is a sampler parameter.
HasBufferParameter
Checks if the parameter with the specified name exists, and is a buffer parameter.
HasUniformBuffer
Checks if the uniform buffer with the specified name exists.
GetDataParameters
Returns a map of all data parameters in the shader.
GetTextureParameters
Returns a map of all texture parameters in the shader.
GetBufferParameters
Returns a map of all buffer parameters in the shader.
GetSamplerParameters
Returns a map of all sampler parameters in the shader.
GetUniformBuffers
Returns a map of all uniform buffers.
GetParameterAttributes
Returns a list of all parameter attributes, as referenced by individual parameters.
GetDefault2DTexture
Returns a default 2D texture for a parameter that has the specified default value index (retrieved from the parameters descriptor).
GetDefault3DTexture
Returns a default 3D texture for a parameter that has the specified default value index (retrieved from the parameters descriptor).
GetDefaultSampler
Returns a default sampler state for a parameter that has the specified default value index (retrieved from the parameters descriptor).
GetDefaultValue
Returns a pointer to the internal buffer containing the default value for a data parameter that has the specified default value index (retrieved from the parameters descriptor).
GetShaderId
Returns the unique shader ID.
Internal
Methods
GetCompilerMetaData
Returns the meta-data required by the shader compiler to compile individual shader variations.