Struct rspirv::sr::Context[][src]

pub struct Context { /* fields omitted */ }

The context class for SPIR-V structured representation.

This class holds all allocations for types, constants, decorations, instructions, etc. in structured representation. Thus, those objects are created using methods of this class. Tokens are returned for the object to be created, which can then be used to access the real object using the context again. Tokens are indeed indices into the vectors of objects inside the context. The context serves as the memory arena.

Methods

impl Context
[src]

impl Context
[src]

impl Context
[src]

Returns the reference to the real type represented by the given token.

impl Context
[src]

Returns the reference to the real constant represented by the given token.

Trait Implementations

impl Debug for Context
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Context

impl Sync for Context