W3cubDocs

/Deno

GPUDevice

class GPUDevice extends EventTarget implements GPUObjectBase {
readonly features: ReadonlyArray<GPUFeatureName>;
label: string | null;
readonly limits: Record<string, number>;
readonly lost: Promise<GPUDeviceLostInfo>;
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
readonly queue: GPUQueue;
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
destroy(): undefined;
popErrorScope(): Promise<GPUError | null>;
pushErrorScope(filter: GPUErrorFilter): undefined;
}

Extends

EventTarget

Implements

Properties

features: ReadonlyArray<GPUFeatureName>
label: string | null
limits: Record<string, number>
lost: Promise<GPUDeviceLostInfo>
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null
queue: GPUQueue

Methods

createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule
createTexture(descriptor: GPUTextureDescriptor): GPUTexture
destroy(): undefined
popErrorScope(): Promise<GPUError | null>
pushErrorScope(filter: GPUErrorFilter): undefined

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/GPUDevice