#[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 duplicate 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
impl Copy for ResourceKind
impl Eq for ResourceKind
impl StructuralPartialEq for ResourceKind
Auto Trait Implementations§
impl Freeze for ResourceKind
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