Struct rspirv_reflect::Reflection [−][src]
pub struct Reflection(pub Module);
Implementations
impl Reflection
[src]
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]
pub fn find_annotations_for_id(
annotations: &[Instruction],
id: u32
) -> Result<Vec<&Instruction>, ReflectError>
[src]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]
pub fn find_assignment_for(
instructions: &[Instruction],
id: u32
) -> Result<&Instruction, ReflectError>
[src]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]
pub fn get_descriptor_sets(
&self
) -> Result<HashMap<u32, HashMap<u32, DescriptorInfo>>, ReflectError>
[src]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 get_push_constant_range(
&self
) -> Result<Option<PushConstantInfo>, ReflectError>
[src]
&self
) -> Result<Option<PushConstantInfo>, ReflectError>