pub trait GPUDeviceMethods<D: DomTypes> {
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, ) -> Result<Root<Dom<GPUBindGroupLayout>>, Error>; fn CreatePipelineLayout( &self, descriptor: &GPUPipelineLayoutDescriptor, ) -> Root<Dom<GPUPipelineLayout>>; fn CreateBindGroup( &self, descriptor: &GPUBindGroupDescriptor, ) -> Root<Dom<GPUBindGroup>>; fn CreateShaderModule( &self, descriptor: RootedTraceableBox<GPUShaderModuleDescriptor>, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Root<Dom<GPUShaderModule>>; fn CreateComputePipeline( &self, descriptor: &GPUComputePipelineDescriptor, ) -> Root<Dom<GPUComputePipeline>>; fn CreateRenderPipeline( &self, descriptor: &GPURenderPipelineDescriptor, ) -> Result<Root<Dom<GPURenderPipeline>>, Error>; fn CreateComputePipelineAsync( &self, descriptor: &GPUComputePipelineDescriptor, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>; fn CreateRenderPipelineAsync( &self, descriptor: &GPURenderPipelineDescriptor, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Result<Rc<Promise>, Error>; fn CreateCommandEncoder( &self, descriptor: &GPUCommandEncoderDescriptor, ) -> Root<Dom<GPUCommandEncoder>>; fn CreateRenderBundleEncoder( &self, descriptor: &GPURenderBundleEncoderDescriptor, ) -> Result<Root<Dom<GPURenderBundleEncoder>>, Error>; fn Lost(&self) -> Rc<Promise>; fn PushErrorScope(&self, filter: GPUErrorFilter); fn PopErrorScope(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> 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, ) -> Result<Root<Dom<GPUBindGroupLayout>>, Error>

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>, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Root<Dom<GPUShaderModule>>

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

fn PushErrorScope(&self, filter: GPUErrorFilter)

source

fn PopErrorScope(&self, _comp: InRealm<'_>, _can_gc: CanGc) -> 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§