GPUBuffer

  • GPUDevice.createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer

    GPUBufferDescriptor

    • label: USVString
    • size: GPUSize64required
    • usage: GPUBufferUsageFlagsrequired
    • mappedAtCreation: boolean

    GPUSize64

    typedef GPUSize64 = unsigned long long

    GPUBufferUsageFlags

  • label: USVString
  • size: GPUSize64
  • usage: GPUBufferUsageFlags
  • mapAsync(mode: GPUMapModeFlags, offset: GPUSize64, size: GPUSize64): Promise<void>

    GPUMapModeFlags

    GPUSize64

    typedef GPUSize64 = unsigned long long
  • getMappedRange(offset: GPUSize64, size: GPUSize64): ArrayBuffer

    GPUSize64

    typedef GPUSize64 = unsigned long long
  • unmap(): void
  • destroy(): void