Enum
VkSamplerCreateFlagBits
Bitmask specifying additional parameters of sampler
Bits which can be set in VkSamplerCreateInfo::flags, specifying
additional parameters of a sampler, are:
typedef enum VkSamplerCreateFlagBits {
// Provided by extensions
VK_SAMPLER_CREATE_SUBSAMPLED_BIT_EXT = 0x00000001,
VK_SAMPLER_CREATE_SUBSAMPLED_COARSE_RECONSTRUCTION_BIT_EXT = 0x00000002,
VK_SAMPLER_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT = 0x00000008,
VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT = 0x00000004,
VK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM = 0x00000010,
} VkSamplerCreateFlagBits;
pub struct SamplerCreateFlagBits(u32);
impl SamplerCreateFlagBits {
pub const SUBSAMPLED_EXT: Self = 0x00000001;
pub const SUBSAMPLED_COARSE_RECONSTRUCTION_EXT: Self = 0x00000002;
pub const DESCRIPTOR_BUFFER_CAPTURE_REPLAY_EXT: Self = 0x00000008;
pub const NON_SEAMLESS_CUBE_MAP_EXT: Self = 0x00000004;
pub const IMAGE_PROCESSING_QCOM: Self = 0x00000010;
}
VK_SAMPLER_CREATE_SUBSAMPLED_BIT_EXTspecifies that the sampler will read from an image created withflagscontainingVK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT.VK_SAMPLER_CREATE_SUBSAMPLED_COARSE_RECONSTRUCTION_BIT_EXTspecifies that the implementation may use approximations when reconstructing a full color value for texture access from a subsampled image.VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXTspecifies that cube map edge handling is not performed.VK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOMspecifies that the sampler will read from images using onlyOpImageSampleWeightedQCOM,OpImageBoxFilterQCOM,OpImageBlockMatchGatherSSDQCOM,OpImageBlockMatchGatherSADQCOM,OpImageBlockMatchWindowSSDQCOM,OpImageBlockMatchWindowSADQCOM,OpImageBlockMatchSSDQCOM, orOpImageBlockMatchSADQCOM.
The approximations used when
VK_SAMPLER_CREATE_SUBSAMPLED_COARSE_RECONSTRUCTION_BIT_EXT is
specified are implementation defined.
Some implementations may interpolate between fragment density levels in a
subsampled image.
In that case, this bit may be used to decide whether the interpolation
factors are calculated per fragment or at a coarser granularity.VK_SAMPLER_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXTspecifies that the sampler can be used with descriptor buffers when capturing and replaying (e.g. for trace capture and replay), see VkOpaqueCaptureDescriptorDataCreateInfoEXT for more detail.
Parent
VK_VERSION_1_0Type
Enum