Skip to main content

DecorationRegistry

Struct DecorationRegistry 

Source
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§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

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>,

Source§

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.