Converts a GPUExtent3D into an array of numbers
GPUExtent3D
GPUExtent3D has two forms [width, height?, depth?] or {width: number, height?: number, depthOrArrayLayers?: number}
[width, height?, depth?]
{width: number, height?: number, depthOrArrayLayers?: number}
You pass one of those in here and it returns an array of 3 numbers so that your code doesn't have to deal with multiple forms.
an array of 3 numbers, [width, height, depthOrArrayLayers]
Generated using TypeDoc
Converts a
GPUExtent3D
into an array of numbersGPUExtent3D
has two forms[width, height?, depth?]
or{width: number, height?: number, depthOrArrayLayers?: number}
You pass one of those in here and it returns an array of 3 numbers so that your code doesn't have to deal with multiple forms.