Struct vulkano::shader::DescriptorRequirements
source · pub struct DescriptorRequirements {
pub memory_read: ShaderStages,
pub memory_write: ShaderStages,
pub sampler_compare: bool,
pub sampler_no_unnormalized_coordinates: bool,
pub sampler_no_ycbcr_conversion: bool,
pub sampler_with_images: HashSet<DescriptorIdentifier>,
pub storage_image_atomic: bool,
}
Expand description
The requirements imposed by a shader on resources bound to a descriptor.
Fields§
§memory_read: ShaderStages
For buffers and images, which shader stages perform read operations.
memory_write: ShaderStages
For buffers and images, which shader stages perform write operations.
sampler_compare: bool
For sampler bindings, whether the shader performs depth comparison operations.
sampler_no_unnormalized_coordinates: bool
For sampler bindings, whether the shader performs sampling operations that are not
permitted with unnormalized coordinates. This includes sampling with ImplicitLod
,
Dref
or Proj
SPIR-V instructions or with an LOD bias or offset.
sampler_no_ycbcr_conversion: bool
For sampler bindings, whether the shader performs sampling operations that are not
permitted with a sampler YCbCr conversion. This includes sampling with Gather
SPIR-V
instructions or with an offset.
sampler_with_images: HashSet<DescriptorIdentifier>
For sampler bindings, the sampled image descriptors that are used in combination with this sampler.
storage_image_atomic: bool
For storage image bindings, whether the shader performs atomic operations.
Implementations§
Trait Implementations§
source§impl Clone for DescriptorRequirements
impl Clone for DescriptorRequirements
source§fn clone(&self) -> DescriptorRequirements
fn clone(&self) -> DescriptorRequirements
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more