| |
| |
| dictionary GPUBindGroupLayoutEntry { |
| required GPUIndex32 binding; |
| required GPUShaderStageFlags visibility; |
| |
| GPUBufferBindingLayout buffer; |
| GPUSamplerBindingLayout sampler; |
| GPUTextureBindingLayout texture; |
| GPUStorageTextureBindingLayout storageTexture; |
| |
| // Deprecated BindGroupLayout members. |
| GPUBindingType type; |
| |
| boolean hasDynamicOffset = false; |
| |
| GPUSize64 minBufferBindingSize; |
| |
| GPUTextureViewDimension viewDimension = "2d"; |
| |
| GPUTextureComponentType textureComponentType = "float"; |
| |
| GPUTextureFormat storageTextureFormat; |
| }; |
| |
| enum GPUBindingType { |
| "uniform-buffer", |
| "storage-buffer", |
| "readonly-storage-buffer", |
| "sampler", |
| "comparison-sampler", |
| "sampled-texture", |
| "multisampled-texture", |
| "readonly-storage-texture", |
| "writeonly-storage-texture", |
| }; |
| |
| enum GPUTextureComponentType { |
| "float", |
| "sint", |
| "uint", |
| "depth-comparison" |
| }; |