[−][src]Struct rspirv_reflect::Reflection
Implementations
impl Reflection[src]
pub fn new(module: Module) -> Self[src]
pub fn new_from_spirv(code: &[u8]) -> Result<Self, ReflectError>[src]
pub fn find_annotations_for_id(
annotations: &[Instruction],
id: u32
) -> Result<Vec<&Instruction>, ReflectError>[src]
annotations: &[Instruction],
id: u32
) -> Result<Vec<&Instruction>, ReflectError>
Returns all instructions where the first operand (Instruction::operands[0]) equals IdRef(id)
pub fn find_assignment_for(
instructions: &[Instruction],
id: u32
) -> Result<&Instruction, ReflectError>[src]
instructions: &[Instruction],
id: u32
) -> Result<&Instruction, ReflectError>
Returns the first Instruction assigning to id (ie. result_id == Some(id))
pub fn get_descriptor_sets(
&self
) -> Result<HashMap<u32, HashMap<u32, DescriptorInfo>>, ReflectError>[src]
&self
) -> Result<HashMap<u32, HashMap<u32, DescriptorInfo>>, ReflectError>
Return a nested HashMap, the first HashMap is key'd off of the descriptor set, the second HashMap is key'd off of the descriptor index.
pub fn disassemble(&self) -> String[src]
Auto Trait Implementations
impl RefUnwindSafe for Reflection
impl Send for Reflection
impl Sync for Reflection
impl Unpin for Reflection
impl UnwindSafe for Reflection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,