@pmndrs/bvh
    Preparing search index...

    Function gpuBufferToDataBuffer

    • A Babylon DataBuffer over buffer, for ComputeShader.setStorageBuffer (and setUniformBuffer). The same wrapper comes back for the same buffer. The buffer must belong to the engine's device and carry the usage the binding needs (STORAGE, UNIFORM).

      Parameters

      • buffer: GPUBuffer

      Returns DataBuffer