pub struct DecorationRegistry<'a> { /* private fields */ }

Implementations§

source§

impl<'a> DecorationRegistry<'a>

source

pub fn set( &mut self, id: u32, deco: Decoration, operands: &'a [u32] ) -> Result<(), Error>

source

pub fn set_member( &mut self, id: u32, member_idx: u32, deco: Decoration, operands: &'a [u32] ) -> Result<(), Error>

source

pub fn get(&self, id: u32, deco: Decoration) -> Result<&'a [u32], Error>

source

pub fn get_member( &self, id: u32, member_idx: u32, deco: Decoration ) -> Result<&'a [u32], Error>

source

pub fn get_u32(&self, id: u32, deco: Decoration) -> Result<u32, Error>

source

pub fn get_member_u32( &self, id: u32, member_idx: u32, deco: Decoration ) -> Result<u32, Error>

source

pub fn contains(&self, id: u32, deco: Decoration) -> bool

source

pub fn contains_member( &self, id: u32, member_idx: u32, deco: Decoration ) -> bool

source

pub fn get_all(&self, deco: Decoration) -> impl Iterator<Item = (u32, &[u32])>

source

pub fn get_var_location(&self, var_id: u32) -> Result<InterfaceLocation, Error>

Get the location-component pair of an interface variable.

source

pub fn get_var_desc_bind(&self, var_id: u32) -> Result<DescriptorBinding, Error>

Get the set-binding pair of a descriptor resource.

source

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.

source

pub fn get_desc_access_ty(&self, id: u32, ty: &Type) -> Option<AccessType>

Get the access type of an memory object.

source

pub fn get_access_ty_from_deco(&self, id: u32) -> Option<AccessType>

source

pub fn get_member_access_ty_from_deco( &self, id: u32, member_idx: u32 ) -> Option<AccessType>

source

pub fn get_var_input_attm_idx(&self, var_id: u32) -> Result<u32, Error>

Get the input attachment index of the variable.

Trait Implementations§

source§

impl<'a> Default for DecorationRegistry<'a>

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.