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<BTreeMap<u32, BTreeMap<u32, DescriptorInfo>>, ReflectError>
pub fn get_descriptor_sets(
&self
) -> Result<BTreeMap<u32, BTreeMap<u32, DescriptorInfo>>, ReflectError>
Returns a nested mapping, where the first level maps descriptor set indices (register spaces) and the second level maps descriptor binding indices (registers) to descriptor information.
