LiteFX::Rendering::IDescriptorLayout::staticSampler¶
If the descriptor describes a static sampler, this method returns the state of the sampler. Otherwise, it returns nullptr.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, dllexport]] virtual ISampler const* staticSampler() const noexcept = 0;
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.