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§
source§impl Clone for ResourceKind
impl Clone for ResourceKind
source§fn clone(&self) -> ResourceKind
fn clone(&self) -> ResourceKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResourceKind
impl Debug for ResourceKind
source§impl PartialEq<ResourceKind> for ResourceKind
impl PartialEq<ResourceKind> for ResourceKind
source§fn eq(&self, other: &ResourceKind) -> bool
fn eq(&self, other: &ResourceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.