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
[src]

§Implements

§Properties

§
features: ReadonlyArray<GPUFeatureName>
[src]
§
label: string | null
[src]
§
limits: Record<string, number>
[src]
§
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null
[src]

§Methods

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