Enum shaderc::ResourceKind
source · #[repr(C)]pub enum ResourceKind {
Image = 0,
Sampler = 1,
Texture = 2,
Buffer = 3,
StorageBuffer = 4,
UnorderedAccessView = 5,
}
Expand description
Resource kinds.
In Vulkan, resources are bound to the pipeline via descriptors with numbered bindings and sets.
Variants§
Image = 0
Image and image buffer.
Sampler = 1
Pure sampler.
Texture = 2
Sampled texture in GLSL, and Shader Resource View in HLSL.
Buffer = 3
Uniform Buffer Object (UBO) in GLSL. cbuffer in HLSL.
StorageBuffer = 4
Shader Storage Buffer Object (SSBO) in GLSL.
UnorderedAccessView = 5
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 for ResourceKind
impl PartialEq 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 ==
.impl Copy for ResourceKind
impl Eq for ResourceKind
impl StructuralEq for ResourceKind
impl StructuralPartialEq for ResourceKind
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more