Struct librashader_reflect::reflect::cross::CompiledAst
source · pub struct CompiledAst<T: Target>(/* private fields */);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>>§
pub fn is_rasterization_enabled(&self) -> Result<bool, ErrorCode>
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>, ErrorCode>
pub fn get_entry_points(&self) -> Result<Vec<EntryPoint>, 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>, ErrorCode>
pub fn get_active_buffer_ranges( &self, id: u32 ) -> Result<Vec<BufferRange>, ErrorCode>
Gets active buffer ragnes. Useful for push constants.
sourcepub fn get_specialization_constants(
&self
) -> Result<Vec<SpecializationConstant>, ErrorCode>
pub fn get_specialization_constants( &self ) -> Result<Vec<SpecializationConstant>, 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.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for CompiledAst<T>
impl<T> !Send for CompiledAst<T>
impl<T> !Sync for CompiledAst<T>
impl<T> Unpin for CompiledAst<T>
impl<T> UnwindSafe for CompiledAst<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more