MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ DescriptorRole

enum class MayaFlux::Portal::Graphics::DescriptorRole : uint8_t
strong

Semantic descriptor type — maps to Vulkan descriptor types internally.

Users declare what role a binding plays rather than which Vulkan type to use. The mapping is: UNIFORM → vk::DescriptorType::eUniformBuffer (small, frequently updated values) STORAGE → vk::DescriptorType::eStorageBuffer (large or write-capable arrays) TEXTURE → vk::DescriptorType::eCombinedImageSampler (sampled image + sampler) STORAGE_IMAGE → vk::DescriptorType::eStorageImage (compute read/write image)

Enumerator
UNIFORM 

Small, read-only, frequently updated (scalars, param structs)

STORAGE 

Large arrays or buffers the shader may write (SSBO)

TEXTURE 

Sampled image + sampler combined.

STORAGE_IMAGE 

Compute-writable image.

Definition at line 83 of file ShaderUtils.hpp.

83 : uint8_t {
84 UNIFORM, ///< Small, read-only, frequently updated (scalars, param structs)
85 STORAGE, ///< Large arrays or buffers the shader may write (SSBO)
86 TEXTURE, ///< Sampled image + sampler combined
87 STORAGE_IMAGE ///< Compute-writable image
88};
@ STORAGE_IMAGE
Compute-writable image.
@ TEXTURE
Sampled image + sampler combined.
@ STORAGE
Large arrays or buffers the shader may write (SSBO)