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>>§

source

pub fn is_rasterization_enabled(&self) -> Result<bool, ErrorCode>

source

pub fn get_decoration( &self, id: u32, decoration: Decoration ) -> Result<u32, ErrorCode>

Gets a decoration.

source

pub fn get_entry_points(&self) -> Result<Vec<EntryPoint>, ErrorCode>

Gets entry points.

source

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.

source

pub fn get_active_buffer_ranges( &self, id: u32 ) -> Result<Vec<BufferRange>, ErrorCode>

Gets active buffer ragnes. Useful for push constants.

source

pub fn get_specialization_constants( &self ) -> Result<Vec<SpecializationConstant>, ErrorCode>

Gets all specialization constants.

source

pub fn get_shader_resources(&self) -> Result<ShaderResources, ErrorCode>

Gets shader resources.

source

pub fn get_type(&self, id: u32) -> Result<Type, ErrorCode>

Gets the SPIR-V type associated with an ID.

source

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.

source

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.

source

pub fn get_declared_struct_size(&self, id: u32) -> Result<u32, ErrorCode>

Gets the effective size of a buffer block.

source

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.

source

pub fn get_work_group_size_specialization_constants( &self ) -> Result<WorkGroupSizeSpecializationConstants, ErrorCode>

Gets work group size specialization constants.

Trait Implementations§

source§

impl<T: Target> Deref for CompiledAst<T>

§

type Target = Ast<T>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.

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>
where T: Unpin, <T as Target>::Data: Unpin,

§

impl<T> UnwindSafe for CompiledAst<T>
where T: UnwindSafe, <T as Target>::Data: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.