mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Validate copybuffertobuffer() + some spec update
The spec update includes renaming bindings to entries and adding CommandEncoderState.
This commit is contained in:
parent
e1cc38bea8
commit
1aeae47299
11 changed files with 136 additions and 45 deletions
|
@ -10,14 +10,12 @@ GPUBindGroup includes GPUObjectBase;
|
|||
|
||||
dictionary GPUBindGroupDescriptor : GPUObjectDescriptorBase {
|
||||
required GPUBindGroupLayout layout;
|
||||
required sequence<GPUBindGroupBindings> bindings;
|
||||
required sequence<GPUBindGroupEntry> entries;
|
||||
};
|
||||
|
||||
typedef /*(GPUSampler or GPUTextureView or*/ GPUBufferBindings/*)*/ GPUBindingResource;
|
||||
|
||||
// Note: Servo codegen doesn't like the name `GPUBindGroupBinding` because it's already occupied
|
||||
// dictionary GPUBindGroupBinding {
|
||||
dictionary GPUBindGroupBindings {
|
||||
dictionary GPUBindGroupEntry {
|
||||
required unsigned long binding;
|
||||
required GPUBindingResource resource;
|
||||
};
|
||||
|
@ -26,6 +24,6 @@ dictionary GPUBindGroupBindings {
|
|||
// dictionary GPUBufferBinding {
|
||||
dictionary GPUBufferBindings {
|
||||
required GPUBuffer buffer;
|
||||
GPUBufferSize offset = 0;
|
||||
GPUBufferSize size;
|
||||
GPUSize64 offset = 0;
|
||||
GPUSize64 size;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue