@pmndrs/bvh
    Preparing search index...

    Type Alias SdfTarget

    SdfTarget: { texture: GPUTexture } | { buffer: GPUBuffer; offset?: number }

    Where SdfGenerator.encode writes.

    Type Declaration

    • { texture: GPUTexture }
      • Readonlytexture: GPUTexture

        r32float, dimension '3d', with STORAGE_BINDING, at least the grid's size (createSdfTexture).

    • { buffer: GPUBuffer; offset?: number }
      • Readonlybuffer: GPUBuffer

        STORAGE, at least 4 * x * y * z bytes past offset: voxel (x, y, z) at float (z * ny + y) * nx + x.

      • Optional Readonlyoffset?: number

        Bytes; a multiple of the device's minStorageBufferOffsetAlignment. Default 0.