Skip to main content

GPUTextureMethods

pub trait GPUTextureMethods<D: DomTypes> {
    // Required methods
    fn CreateView(
        &self,
        cx: &mut JSContext,
        descriptor: &GPUTextureViewDescriptor,
    ) -> Fallible<DomRoot<D::GPUTextureView>>;
    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, cx: &NoGC, value: USVString);
}

Required Methods§

Source

fn CreateView( &self, cx: &mut JSContext, descriptor: &GPUTextureViewDescriptor, ) -> Fallible<DomRoot<D::GPUTextureView>>

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, cx: &NoGC, value: USVString)

Implementors§