![]() |
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 () | |
Public Member Functions inherited from xiiHashableStruct< xiiGALImmutableSamplerDescription > | |
| constexpr | xiiHashableStruct () noexcept |
| Default constructor. Initializes all bytes to zero. | |
| xiiHashableStruct (const xiiHashableStruct &other) noexcept | |
| Bitwise copy constructor. | |
| xiiHashableStruct & | operator= (const xiiHashableStruct &other) noexcept |
| Bitwise assignment operator. | |
| bool | operator== (const xiiHashableStruct &other) const noexcept |
| Compares equality via raw byte comparison. | |
| std::strong_ordering | operator<=> (const xiiHashableStruct &other) const noexcept |
| Compares ordering via raw byte comparison. | |
| xiiUInt32 | CalculateHash () const noexcept |
| Calculates a 32-bit hash from raw bytes of the struct. | |
| void | Clear () noexcept |
| Fills all bytes with zero. | |
| bool | IsZero () const noexcept |
| Returns true if all bytes are zero. | |
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.