![]() |
XII Release 0.1.0
|
This describes an immutable sampler used by a graphics pipeline. More...
#include <PipelineResourceSignature.h>
Public Member Functions | |
XII_DECLARE_POD_TYPE () | |
![]() | |
xiiHashableStruct (const xiiHashableStruct< xiiGALImmutableSamplerDescription > &other) | |
void | operator= (const xiiHashableStruct< xiiGALImmutableSamplerDescription > &other) |
XII_ALWAYS_INLINE constexpr bool | operator== (const xiiHashableStruct< xiiGALImmutableSamplerDescription > &rhs) const=default |
xiiUInt32 | CalculateHash () const |
Calculates the 32 bit hash of the struct and returns it. | |
Public Attributes | |
xiiHashedString | m_SamplerOrTextureName |
The name of the sampler itself or the name of the texture variable that this immutable sampler is assigned to if combined texture samplers are used. | |
xiiBitflags< xiiGALShaderType > | m_ShaderStages = xiiGALShaderType::Unknown |
The shader stages that this immutable sampler applies to. More than one shader stage can be specified. The default is xiiGALShaderType::Unknown. | |
xiiGALSamplerCreationDescription | m_SamplerDescription |
The sampler creation description. See xiiGALSamplerCreationDescription for details. | |
This describes an immutable sampler used by a graphics pipeline.
An immutable sampler is compiled into the pipeline state and cannot be modified. It is generally more efficient than a regular sampler and should be used whenever possible.