Interface GPUBindGroupLayoutEntry

    interface GPUBindGroupLayoutEntry {
        binding: number;
        buffer?: GPUBufferBindingLayout;
        externalTexture?: GPUExternalTextureBindingLayout;
        sampler?: GPUSamplerBindingLayout;
        storageTexture?: GPUStorageTextureBindingLayout;
        texture?: GPUTextureBindingLayout;
        visibility: number;
    }

    Properties

    binding: number

    A unique identifier for a resource binding within the GPUBindGroupLayout, corresponding to a GPUBindGroupEntry.binding and a

    attribute in the GPUShaderModule.

    When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUBufferBinding.

    When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUExternalTexture.

    When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUSampler.

    When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUTextureView.

    When map/exist|provided, indicates the binding resource type for this GPUBindGroupLayoutEntry is GPUTextureView.

    visibility: number

    A bitset of the members of GPUShaderStage. Each set bit indicates that a GPUBindGroupLayoutEntry's resource will be accessible from the associated shader stage.