Struct rspirv_reflect::Reflection [−][src]
pub struct Reflection(pub Module);Tuple Fields
0: ModuleImplementations
pub fn find_annotations_for_id(
annotations: &[Instruction],
id: u32
) -> Result<Vec<&Instruction>, ReflectError>
pub fn find_annotations_for_id(
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>
pub fn find_assignment_for(
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>
pub fn get_descriptor_sets(
&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.