Trait rspirv::binary::Assemble[][src]

pub trait Assemble {
    fn assemble_into(&self, result: &mut Vec<u32>);

    fn assemble(&self) -> Vec<u32> { ... }
}
Expand description

Trait for assembling functionalities.

Required methods

Assembles the current object into the result vector, reducing the need for lots of allocations

Provided methods

Assembles the current object and returns the binary code. Helper method to remain backwards compatible, calls assemble_into

Implementors