Enum shaderc::ResourceKind
source · [−]#[repr(C)]
pub enum ResourceKind {
Image,
Sampler,
Texture,
Buffer,
StorageBuffer,
UnorderedAccessView,
}
Expand description
Resource kinds.
In Vulkan, resources are bound to the pipeline via descriptors with numbered bindings and sets.
Variants
Image
Image and image buffer.
Sampler
Pure sampler.
Texture
Sampled texture in GLSL, and Shader Resource View in HLSL.
Buffer
Uniform Buffer Object (UBO) in GLSL. cbuffer in HLSL.
StorageBuffer
Shader Storage Buffer Object (SSBO) in GLSL.
UnorderedAccessView
Unordered Access View in HLSL. (Writable storage image or storage buffer.)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ResourceKind
impl Send for ResourceKind
impl Sync for ResourceKind
impl Unpin for ResourceKind
impl UnwindSafe for ResourceKind
Blanket Implementations
Mutably borrows from an owned value. Read more