| 10145 | * @category GPU |
| 10146 | */ |
| 10147 | declare class GPUDevice extends EventTarget implements GPUObjectBase { |
| 10148 | label: string; |
| 10149 | |
| 10150 | readonly lost: Promise<GPUDeviceLostInfo>; |
| 10151 | pushErrorScope(filter: GPUErrorFilter): undefined; |
| 10152 | popErrorScope(): Promise<GPUError | null>; |
| 10153 | |
| 10154 | readonly features: GPUSupportedFeatures; |
| 10155 | readonly limits: GPUSupportedLimits; |
| 10156 | readonly adapterInfo: GPUAdapterInfo; |
| 10157 | readonly queue: GPUQueue; |
| 10158 | |
| 10159 | destroy(): undefined; |
| 10160 | |
| 10161 | createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer; |
| 10162 | createTexture(descriptor: GPUTextureDescriptor): GPUTexture; |
| 10163 | createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler; |
| 10164 | |
| 10165 | createBindGroupLayout( |
| 10166 | descriptor: GPUBindGroupLayoutDescriptor, |
| 10167 | ): GPUBindGroupLayout; |
| 10168 | createPipelineLayout( |
| 10169 | descriptor: GPUPipelineLayoutDescriptor, |
| 10170 | ): GPUPipelineLayout; |
| 10171 | createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup; |
| 10172 | |
| 10173 | createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule; |
| 10174 | createComputePipeline( |
| 10175 | descriptor: GPUComputePipelineDescriptor, |
| 10176 | ): GPUComputePipeline; |
| 10177 | createRenderPipeline( |
| 10178 | descriptor: GPURenderPipelineDescriptor, |
| 10179 | ): GPURenderPipeline; |
| 10180 | createComputePipelineAsync( |
| 10181 | descriptor: GPUComputePipelineDescriptor, |
| 10182 | ): Promise<GPUComputePipeline>; |
| 10183 | createRenderPipelineAsync( |
| 10184 | descriptor: GPURenderPipelineDescriptor, |
| 10185 | ): Promise<GPURenderPipeline>; |
| 10186 | |
| 10187 | createCommandEncoder( |
| 10188 | descriptor?: GPUCommandEncoderDescriptor, |
| 10189 | ): GPUCommandEncoder; |
| 10190 | createRenderBundleEncoder( |
| 10191 | descriptor: GPURenderBundleEncoderDescriptor, |
| 10192 | ): GPURenderBundleEncoder; |
| 10193 | |
| 10194 | createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet; |
| 10195 | } |
| 10196 | |
| 10197 | /** |
| 10198 | * Represents a block of memory allocated on the GPU. |
nothing calls this directly
no outgoing calls
no test coverage detected