mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Update wgpu-core and wgpu-types
This commit is contained in:
parent
00b3f785c4
commit
48ef306bd3
13 changed files with 244 additions and 366 deletions
|
@ -16,18 +16,11 @@ dictionary GPUBindGroupLayoutEntry {
|
|||
required GPUIndex32 binding;
|
||||
required GPUShaderStageFlags visibility;
|
||||
required GPUBindingType type;
|
||||
|
||||
// Used for uniform buffer and storage buffer bindings.
|
||||
boolean hasDynamicOffset = false;
|
||||
|
||||
// Used for sampled texture and storage texture bindings.
|
||||
GPUSize64 minBufferBindingSize = 0;
|
||||
GPUTextureViewDimension viewDimension;
|
||||
|
||||
// Used for sampled texture bindings.
|
||||
GPUTextureComponentType textureComponentType;
|
||||
boolean multisampled = false;
|
||||
|
||||
// Used for storage texture bindings.
|
||||
GPUTextureFormat storageTextureFormat;
|
||||
};
|
||||
|
||||
|
@ -36,8 +29,8 @@ enum GPUBindingType {
|
|||
"storage-buffer",
|
||||
"readonly-storage-buffer",
|
||||
"sampler",
|
||||
"comparison-sampler",
|
||||
"sampled-texture",
|
||||
"readonly-storage-texture",
|
||||
"writeonly-storage-texture",
|
||||
"comparison-sampler",
|
||||
"writeonly-storage-texture"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue