pub struct DescriptorBinding {
pub visibility: ShaderVisibility,
pub shader_register: u32,
pub register_space: u32,
pub binding_type: DescriptorType,
pub num_descriptors: Option<u32>,
}Expand description
Describes a range of resources for access on the GPU.
Fields§
§visibility: ShaderVisibilityThe shader stage the resources will be accessible to.
shader_register: u32Register index to bind to (supplied in shader).
register_space: u32Register space to bind to (supplied in shader).
binding_type: DescriptorTypeType of resources in this descriptor binding.
num_descriptors: Option<u32>Number of descriptors in this table, use None for unbounded.
Trait Implementations§
Source§impl Clone for DescriptorBinding
impl Clone for DescriptorBinding
Source§fn clone(&self) -> DescriptorBinding
fn clone(&self) -> DescriptorBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for DescriptorBinding
impl<'de> Deserialize<'de> for DescriptorBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DescriptorBinding
impl RefUnwindSafe for DescriptorBinding
impl Send for DescriptorBinding
impl Sync for DescriptorBinding
impl Unpin for DescriptorBinding
impl UnsafeUnpin for DescriptorBinding
impl UnwindSafe for DescriptorBinding
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