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