Shader description. More...
#include <Shader.h>
Public Member Functions | |
bool | operator== (const ShaderDesc &RHS) const noexcept |
Tests if two shader descriptions are equal. | |
Public Attributes | |
SHADER_TYPE | ShaderType = SHADER_TYPE_UNKNOWN |
Shader type. See Diligent::SHADER_TYPE. | |
Bool | UseCombinedTextureSamplers = false |
Whether to use combined texture samplers. | |
const Char * | CombinedSamplerSuffix = "_sampler" |
Combined sampler suffix. | |
![]() | |
const Char * | Name = nullptr |
Object name. | |
Shader description.
|
inlinenoexcept |
Tests if two shader descriptions are equal.
[in] | RHS | - reference to the structure to compare with. |
const Char* Diligent::ShaderDesc::CombinedSamplerSuffix = "_sampler" |
Combined sampler suffix.
If UseCombinedTextureSamplers
is true
, defines the suffix added to the texture variable name to get corresponding sampler name. For example, for default value "_sampler"
, a texture named "tex"
will be combined with the sampler named "tex_sampler"
. If UseCombinedTextureSamplers
is false
, this member is ignored.
This member has no effect if the shader is used in the PSO that uses pipeline resource signature(s).
Bool Diligent::ShaderDesc::UseCombinedTextureSamplers = false |
Whether to use combined texture samplers.
If set to true
, textures will be combined with texture samplers. The CombinedSamplerSuffix
member defines the suffix added to the texture variable name to get corresponding sampler name. When using combined samplers, the sampler assigned to the shader resource view is automatically set when the view is bound. Otherwise, samplers need to be explicitly set similar to other shader variables.
This member has no effect if the shader is used in the PSO that uses pipeline resource signature(s).