pub enum WGSLResourceType {
UniformBuffer,
StorageBufferReadOnly,
StorageBufferReadWrite,
SampledTexture,
StorageTexture {
format: String,
},
Sampler,
ComparisonSampler,
}Expand description
What kind of resource occupies a binding slot.
Variants§
UniformBuffer
Uniform buffer.
StorageBufferReadOnly
Storage buffer (read-only).
StorageBufferReadWrite
Storage buffer (read-write).
SampledTexture
Sampled texture.
StorageTexture
Storage texture.
Sampler
Sampler.
ComparisonSampler
Comparison sampler.
Trait Implementations§
Source§impl Clone for WGSLResourceType
impl Clone for WGSLResourceType
Source§fn clone(&self) -> WGSLResourceType
fn clone(&self) -> WGSLResourceType
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 WGSLResourceType
impl Debug for WGSLResourceType
Source§impl PartialEq for WGSLResourceType
impl PartialEq for WGSLResourceType
impl Eq for WGSLResourceType
impl StructuralPartialEq for WGSLResourceType
Auto Trait Implementations§
impl Freeze for WGSLResourceType
impl RefUnwindSafe for WGSLResourceType
impl Send for WGSLResourceType
impl Sync for WGSLResourceType
impl Unpin for WGSLResourceType
impl UnsafeUnpin for WGSLResourceType
impl UnwindSafe for WGSLResourceType
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