Struct librashader_reflect::reflect::cross::CompiledAst
source · pub struct CompiledAst<T: Target>(_);Expand description
The output of the SPIR-V AST after compilation.
This output is immutable and can not be recompiled later.
Methods from Deref<Target = Ast<T>>§
sourcepub fn get_decoration(
&self,
id: u32,
decoration: Decoration
) -> Result<u32, ErrorCode>
pub fn get_decoration( &self, id: u32, decoration: Decoration ) -> Result<u32, ErrorCode>
Gets a decoration.
sourcepub fn get_entry_points(&self) -> Result<Vec<EntryPoint, Global>, ErrorCode>
pub fn get_entry_points(&self) -> Result<Vec<EntryPoint, Global>, ErrorCode>
Gets entry points.
sourcepub fn get_cleansed_entry_point_name(
&self,
entry_point_name: &str,
execution_model: ExecutionModel
) -> Result<String, ErrorCode>
pub fn get_cleansed_entry_point_name( &self, entry_point_name: &str, execution_model: ExecutionModel ) -> Result<String, ErrorCode>
Gets cleansed entry point names. compile must be called first.
sourcepub fn get_active_buffer_ranges(
&self,
id: u32
) -> Result<Vec<BufferRange, Global>, ErrorCode>
pub fn get_active_buffer_ranges( &self, id: u32 ) -> Result<Vec<BufferRange, Global>, ErrorCode>
Gets active buffer ragnes. Useful for push constants.
sourcepub fn get_specialization_constants(
&self
) -> Result<Vec<SpecializationConstant, Global>, ErrorCode>
pub fn get_specialization_constants( &self ) -> Result<Vec<SpecializationConstant, Global>, ErrorCode>
Gets all specialization constants.
sourcepub fn get_shader_resources(&self) -> Result<ShaderResources, ErrorCode>
pub fn get_shader_resources(&self) -> Result<ShaderResources, ErrorCode>
Gets shader resources.
sourcepub fn get_type(&self, id: u32) -> Result<Type, ErrorCode>
pub fn get_type(&self, id: u32) -> Result<Type, ErrorCode>
Gets the SPIR-V type associated with an ID.
sourcepub fn get_member_name(&self, id: u32, index: u32) -> Result<String, ErrorCode>
pub fn get_member_name(&self, id: u32, index: u32) -> Result<String, ErrorCode>
Gets the identifier for a member located at index within an OpTypeStruct.
sourcepub fn get_member_decoration(
&self,
id: u32,
index: u32,
decoration: Decoration
) -> Result<u32, ErrorCode>
pub fn get_member_decoration( &self, id: u32, index: u32, decoration: Decoration ) -> Result<u32, ErrorCode>
Gets a decoration for a member located at index within an OpTypeStruct.
sourcepub fn get_declared_struct_size(&self, id: u32) -> Result<u32, ErrorCode>
pub fn get_declared_struct_size(&self, id: u32) -> Result<u32, ErrorCode>
Gets the effective size of a buffer block.
sourcepub fn get_declared_struct_member_size(
&self,
id: u32,
index: u32
) -> Result<u32, ErrorCode>
pub fn get_declared_struct_member_size( &self, id: u32, index: u32 ) -> Result<u32, ErrorCode>
Gets the effective size of a buffer block struct member.
sourcepub fn get_work_group_size_specialization_constants(
&self
) -> Result<WorkGroupSizeSpecializationConstants, ErrorCode>
pub fn get_work_group_size_specialization_constants( &self ) -> Result<WorkGroupSizeSpecializationConstants, ErrorCode>
Gets work group size specialization constants.