Struct spirv_cross::spirv::Ast[][src]

pub struct Ast<TTarget> where
    TTarget: Target
{ /* fields omitted */ }

An abstract syntax tree that corresponds to a SPIR-V module.

Methods

impl Ast<Target>
[src]

impl Ast<Target>
[src]

impl<TTarget> Ast<TTarget> where
    Self: Parse<TTarget> + Compile<TTarget>,
    TTarget: Target
[src]

Gets a decoration.

Sets a name.

Unsets a decoration.

Sets a decoration.

Gets entry points.

Gets cleansed entry point names. compile must be called first.

Gets all specialization constants.

Set reference of a scalar constant to a value, overriding the default.

Can be used to override specialization constants.

Gets shader resources.

Gets the SPIR-V type associated with an ID.

Gets the identifier for a member located at index within an OpTypeStruct.

Gets a decoration for a member located at index within an OpTypeStruct.

Sets a decoration for a member located at index within an OpTypeStruct.

Gets the effective size of a buffer block.

Gets the effective size of a buffer block struct member.

Renames an interface variable.

Gets work group size specialization constants.

Parses a module into Ast.

Sets compile options.

Compiles an abstract syntax tree to a String in the specified TTarget language.

Trait Implementations

impl Parse<Target> for Ast<Target>
[src]

impl Compile<Target> for Ast<Target>
[src]

Set GLSL compiler specific compilation settings.

Generate GLSL shader from the AST.

impl Parse<Target> for Ast<Target>
[src]

impl Compile<Target> for Ast<Target>
[src]

Set HLSL compiler specific compilation settings.

Generate HLSL shader from the AST.

impl<'a> Parse<Target> for Ast<Target>
[src]

impl Compile<Target> for Ast<Target>
[src]

Set MSL compiler specific compilation settings.

Generate MSL shader from the AST.

Auto Trait Implementations

impl<TTarget> !Send for Ast<TTarget>

impl<TTarget> !Sync for Ast<TTarget>