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);
}