WebGPU.rocks Logo

GPUBindGroup

  • GPUDevice.createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup

    GPUBindGroupDescriptor

    • label: USVString
    • layout: GPUBindGroupLayoutrequired
    • entries: sequence<GPUBindGroupEntry>required

    GPUBindGroupEntry

    • binding: GPUIndex32required
    • resource: GPUBindingResourcerequired

    GPUIndex32

    typedef GPUIndex32 = unsigned long

    GPUBindingResource

    typedef GPUBindingResource = GPUSampler | GPUTextureView | GPUBufferBinding | GPUExternalTexture

    GPUSampler

    • label: USVString

    GPUTextureView

    • label: USVString

    GPUBufferBinding

    • buffer: GPUBufferrequired
    • offset: GPUSize64= 0
    • size: GPUSize64

    GPUSize64

    typedef GPUSize64 = unsigned long long

    GPUExternalTexture

    • label: USVString
    • expired: boolean
  • label: USVString