pub trait GPUTextureMethods<D: DomTypes> {
// Required methods
fn CreateView(
&self,
descriptor: &GPUTextureViewDescriptor,
) -> Result<Root<Dom<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);
}