pub trait GPUDeviceMethods {
Show 24 methods // Required methods fn Features(&self) -> Root<Dom<GPUSupportedFeatures>>; fn Limits(&self) -> Root<Dom<GPUSupportedLimits>>; fn GetQueue(&self) -> Root<Dom<GPUQueue>>; fn Destroy(&self); fn CreateBuffer( &self, descriptor: &GPUBufferDescriptor ) -> Result<Root<Dom<GPUBuffer>>, Error>; fn CreateTexture( &self, descriptor: &GPUTextureDescriptor ) -> Result<Root<Dom<GPUTexture>>, Error>; fn CreateSampler( &self, descriptor: &GPUSamplerDescriptor ) -> Root<Dom<GPUSampler>>; fn CreateBindGroupLayout( &self, descriptor: &GPUBindGroupLayoutDescriptor ) -> Root<Dom<GPUBindGroupLayout>>; fn CreatePipelineLayout( &self, descriptor: &GPUPipelineLayoutDescriptor ) -> Root<Dom<GPUPipelineLayout>>; fn CreateBindGroup( &self, descriptor: &GPUBindGroupDescriptor ) -> Root<Dom<GPUBindGroup>>; fn CreateShaderModule( &self, descriptor: RootedTraceableBox<GPUShaderModuleDescriptor> ) -> Root<Dom<GPUShaderModule>>; fn CreateComputePipeline( &self, descriptor: &GPUComputePipelineDescriptor ) -> Root<Dom<GPUComputePipeline>>; fn CreateRenderPipeline( &self, descriptor: &GPURenderPipelineDescriptor ) -> Root<Dom<GPURenderPipeline>>; fn CreateComputePipelineAsync( &self, descriptor: &GPUComputePipelineDescriptor, _comp: InRealm<'_> ) -> Rc<Promise>; fn CreateRenderPipelineAsync( &self, descriptor: &GPURenderPipelineDescriptor, _comp: InRealm<'_> ) -> Rc<Promise>; fn CreateCommandEncoder( &self, descriptor: &GPUCommandEncoderDescriptor ) -> Root<Dom<GPUCommandEncoder>>; fn CreateRenderBundleEncoder( &self, descriptor: &GPURenderBundleEncoderDescriptor ) -> Root<Dom<GPURenderBundleEncoder>>; fn Lost(&self) -> Rc<Promise>; fn PushErrorScope(&self, filter: GPUErrorFilter); fn PopErrorScope(&self, _comp: InRealm<'_>) -> Rc<Promise>; fn GetOnuncapturederror(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOnuncapturederror(&self, value: Option<Rc<EventHandlerNonNull>>); fn Label(&self) -> USVString; fn SetLabel(&self, value: USVString);
}

Required Methods§

source

fn Features(&self) -> Root<Dom<GPUSupportedFeatures>>

source

fn Limits(&self) -> Root<Dom<GPUSupportedLimits>>

source

fn GetQueue(&self) -> Root<Dom<GPUQueue>>

source

fn Destroy(&self)

source

fn CreateBuffer( &self, descriptor: &GPUBufferDescriptor ) -> Result<Root<Dom<GPUBuffer>>, Error>

source

fn CreateTexture( &self, descriptor: &GPUTextureDescriptor ) -> Result<Root<Dom<GPUTexture>>, Error>

source

fn CreateSampler( &self, descriptor: &GPUSamplerDescriptor ) -> Root<Dom<GPUSampler>>

source

fn CreateBindGroupLayout( &self, descriptor: &GPUBindGroupLayoutDescriptor ) -> Root<Dom<GPUBindGroupLayout>>

source

fn CreatePipelineLayout( &self, descriptor: &GPUPipelineLayoutDescriptor ) -> Root<Dom<GPUPipelineLayout>>

source

fn CreateBindGroup( &self, descriptor: &GPUBindGroupDescriptor ) -> Root<Dom<GPUBindGroup>>

source

fn CreateShaderModule( &self, descriptor: RootedTraceableBox<GPUShaderModuleDescriptor> ) -> Root<Dom<GPUShaderModule>>

source

fn CreateComputePipeline( &self, descriptor: &GPUComputePipelineDescriptor ) -> Root<Dom<GPUComputePipeline>>

source

fn CreateRenderPipeline( &self, descriptor: &GPURenderPipelineDescriptor ) -> Root<Dom<GPURenderPipeline>>

source

fn CreateComputePipelineAsync( &self, descriptor: &GPUComputePipelineDescriptor, _comp: InRealm<'_> ) -> Rc<Promise>

source

fn CreateRenderPipelineAsync( &self, descriptor: &GPURenderPipelineDescriptor, _comp: InRealm<'_> ) -> Rc<Promise>

source

fn CreateCommandEncoder( &self, descriptor: &GPUCommandEncoderDescriptor ) -> Root<Dom<GPUCommandEncoder>>

source

fn CreateRenderBundleEncoder( &self, descriptor: &GPURenderBundleEncoderDescriptor ) -> Root<Dom<GPURenderBundleEncoder>>

source

fn Lost(&self) -> Rc<Promise>

source

fn PushErrorScope(&self, filter: GPUErrorFilter)

source

fn PopErrorScope(&self, _comp: InRealm<'_>) -> Rc<Promise>

source

fn GetOnuncapturederror(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnuncapturederror(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn Label(&self) -> USVString

source

fn SetLabel(&self, value: USVString)

Implementors§