LiteFX::Rendering::Backends::DirectX12DescriptorLayout::staticSampler¶
If the descriptor describes a static sampler, this method returns the state of the sampler. Otherwise, it returns nullptr.
Synopsis¶
Declared in <litefx/backends/dx12.hpp>
[[dllimport, dllexport]] virtual IDirectX12Sampler const* staticSampler() const noexcept override;
Description¶
Static samplers are called immutable samplers in Vulkan and describe sampler states, that are defined along the pipeline layout. While they do occupy a descriptor, they must not be bound explicitly. Instead, static samplers are automatically bound if the pipeline gets used. If a static sampler is set, the descriptorType must be set to DescriptorType::Sampler.
Return Value¶
The state of the static sampler, or nullptr, if the descriptor is not a static sampler.