Skip to main content

GPUTextureMethods

Trait GPUTextureMethods 

Source
pub trait GPUTextureMethods<D>
where D: DomTypes,
{ // Required methods fn CreateView( &self, cx: &mut JSContext, descriptor: &GPUTextureViewDescriptor, ) -> Result<Root<Dom<<D as DomTypes>::GPUTextureView>>, Error>; fn Destroy(&self); fn Width(&self) -> u32; fn Height(&self) -> u32; fn DepthOrArrayLayers(&self) -> u32; fn MipLevelCount(&self) -> u32; fn SampleCount(&self) -> u32; fn Dimension(&self) -> GPUTextureDimension; fn Format(&self) -> GPUTextureFormat; fn Usage(&self) -> u32; fn Label(&self) -> USVString; fn SetLabel(&self, value: USVString); }

Required Methods§

Source

fn CreateView( &self, cx: &mut JSContext, descriptor: &GPUTextureViewDescriptor, ) -> Result<Root<Dom<<D as DomTypes>::GPUTextureView>>, Error>

Source

fn Destroy(&self)

Source

fn Width(&self) -> u32

Source

fn Height(&self) -> u32

Source

fn DepthOrArrayLayers(&self) -> u32

Source

fn MipLevelCount(&self) -> u32

Source

fn SampleCount(&self) -> u32

Source

fn Dimension(&self) -> GPUTextureDimension

Source

fn Format(&self) -> GPUTextureFormat

Source

fn Usage(&self) -> u32

Source

fn Label(&self) -> USVString

Source

fn SetLabel(&self, value: USVString)

Implementors§