Struct spirq::annotation::DecorationRegistry
source · pub struct DecorationRegistry<'a> { /* private fields */ }
Implementations§
source§impl<'a> DecorationRegistry<'a>
impl<'a> DecorationRegistry<'a>
pub fn set( &mut self, id: u32, deco: Decoration, operands: &'a [u32] ) -> Result<(), Error>
pub fn set_member( &mut self, id: u32, member_idx: u32, deco: Decoration, operands: &'a [u32] ) -> Result<(), Error>
pub fn get(&self, id: u32, deco: Decoration) -> Result<&'a [u32], Error>
pub fn get_member( &self, id: u32, member_idx: u32, deco: Decoration ) -> Result<&'a [u32], Error>
pub fn get_u32(&self, id: u32, deco: Decoration) -> Result<u32, Error>
pub fn get_member_u32( &self, id: u32, member_idx: u32, deco: Decoration ) -> Result<u32, Error>
pub fn contains(&self, id: u32, deco: Decoration) -> bool
pub fn contains_member( &self, id: u32, member_idx: u32, deco: Decoration ) -> bool
pub fn get_all(&self, deco: Decoration) -> impl Iterator<Item = (u32, &[u32])>
sourcepub fn get_var_location(&self, var_id: u32) -> Result<InterfaceLocation, Error>
pub fn get_var_location(&self, var_id: u32) -> Result<InterfaceLocation, Error>
Get the location-component pair of an interface variable.
sourcepub fn get_var_desc_bind(&self, var_id: u32) -> Result<DescriptorBinding, Error>
pub fn get_var_desc_bind(&self, var_id: u32) -> Result<DescriptorBinding, Error>
Get the set-binding pair of a descriptor resource.
sourcepub fn get_var_desc_bind_or_default(&self, var_id: u32) -> DescriptorBinding
pub fn get_var_desc_bind_or_default(&self, var_id: u32) -> DescriptorBinding
Get the set-binding pair of a descriptor resource, but the binding point is forced to 0 if it’s not specified in SPIR-V source.
sourcepub fn get_desc_access_ty(&self, id: u32, ty: &Type) -> Option<AccessType>
pub fn get_desc_access_ty(&self, id: u32, ty: &Type) -> Option<AccessType>
Get the access type of an memory object.
pub fn get_access_ty_from_deco(&self, id: u32) -> Option<AccessType>
pub fn get_member_access_ty_from_deco( &self, id: u32, member_idx: u32 ) -> Option<AccessType>
Trait Implementations§
source§impl<'a> Default for DecorationRegistry<'a>
impl<'a> Default for DecorationRegistry<'a>
source§fn default() -> DecorationRegistry<'a>
fn default() -> DecorationRegistry<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for DecorationRegistry<'a>
impl<'a> RefUnwindSafe for DecorationRegistry<'a>
impl<'a> Send for DecorationRegistry<'a>
impl<'a> Sync for DecorationRegistry<'a>
impl<'a> Unpin for DecorationRegistry<'a>
impl<'a> UnwindSafe for DecorationRegistry<'a>
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