webgpu-utils

    Function normalizeGPUExtent3D

    • Converts a GPUExtent3D into an array of numbers

      GPUExtent3D 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.

      Parameters

      • size: GPUExtent3D

      Returns number[]

      an array of 3 numbers, [width, height, depthOrArrayLayers]

    MMNEPVFCICPMFPCPTTAAATR