pub struct Writer { /* private fields */ }
Implementations§
source§impl Writer
impl Writer
pub fn new(options: &Options<'_>) -> Result<Writer, Error>
pub fn write( &mut self, ir_module: &Module, info: &ModuleInfo, pipeline_options: Option<&PipelineOptions>, debug_info: &Option<DebugInfo<'_>>, words: &mut Vec<u32> ) -> Result<(), Error>
sourcepub const fn get_capabilities_used(
&self
) -> &IndexSet<Capability, BuildHasherDefault<FxHasher>>
pub const fn get_capabilities_used( &self ) -> &IndexSet<Capability, BuildHasherDefault<FxHasher>>
Return the set of capabilities the last module written used.
pub fn decorate_non_uniform_binding_array_access( &mut self, id: u32 ) -> Result<(), Error>
Auto Trait Implementations§
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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