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