Aller au contenu

GPUExtent3D

interface GPUExtent3D
A three-dimensional extent represented by width, height, and depth or array-layer count.

Properties

depthOrArrayLayers

The depth of the extent or the number of array layers it contains. If used with a GPUTexture with a GPUTextureDimension of "3d" defines the depth of the texture. If used with a GPUTexture with a GPUTextureDimension of "2d" defines the number of array layers in the texture.

height

The height of the extent. See [GPUExtent3D.height in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpuextent3ddict-height).

width

The width of the extent. See [GPUExtent3D.width in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpuextent3ddict-width).