mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://gpuweb.github.io/gpuweb/#gpubindgrouplayout
|
|
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
|
|
interface GPUBindGroupLayout {
|
|
};
|
|
GPUBindGroupLayout includes GPUObjectBase;
|
|
|
|
dictionary GPUBindGroupLayoutDescriptor : GPUObjectDescriptorBase {
|
|
required sequence<GPUBindGroupLayoutEntry> entries;
|
|
};
|
|
|
|
dictionary GPUBindGroupLayoutEntry {
|
|
required GPUIndex32 binding;
|
|
required GPUShaderStageFlags visibility;
|
|
required GPUBindingType type;
|
|
boolean hasDynamicOffset;
|
|
GPUSize64 minBufferBindingSize;
|
|
GPUTextureViewDimension viewDimension;
|
|
GPUTextureComponentType textureComponentType;
|
|
GPUTextureFormat storageTextureFormat;
|
|
};
|
|
|
|
enum GPUBindingType {
|
|
"uniform-buffer",
|
|
"storage-buffer",
|
|
"readonly-storage-buffer",
|
|
"sampler",
|
|
"comparison-sampler",
|
|
"sampled-texture",
|
|
"multisampled-texture",
|
|
"readonly-storage-texture",
|
|
"writeonly-storage-texture"
|
|
};
|