File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,8 @@ var LibraryWebGPU = {
491
491
StorageTextureAccess : [
492
492
undefined ,
493
493
'write-only' ,
494
+ 'read-only' ,
495
+ 'read-write' ,
494
496
] ,
495
497
StoreOp : [
496
498
undefined ,
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ Dawn additionally autogenerates two "snippets" that are used in Emscripten:
19
19
Once that's done, you need to update the auto-generated files with the commands below:
20
20
21
21
```
22
- ./tools/gen_struct_info.py
23
- ./tools/gen_struct_info.py --wasm64
24
- ./tools/gen_sig_info.py
22
+ ./tools/maint/ gen_struct_info.py
23
+ ./tools/maint/ gen_struct_info.py --wasm64
24
+ ./tools/maint/ gen_sig_info.py
25
25
```
26
26
27
27
## Testing
Original file line number Diff line number Diff line change @@ -451,6 +451,8 @@ typedef enum WGPUStencilOperation {
451
451
typedef enum WGPUStorageTextureAccess {
452
452
WGPUStorageTextureAccess_Undefined = 0x00000000 ,
453
453
WGPUStorageTextureAccess_WriteOnly = 0x00000001 ,
454
+ WGPUStorageTextureAccess_ReadOnly = 0x00000002 ,
455
+ WGPUStorageTextureAccess_ReadWrite = 0x00000003 ,
454
456
WGPUStorageTextureAccess_Force32 = 0x7FFFFFFF
455
457
} WGPUStorageTextureAccess WGPU_ENUM_ATTRIBUTE ;
456
458
Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ namespace wgpu {
394
394
enum class StorageTextureAccess : uint32_t {
395
395
Undefined = 0x00000000 ,
396
396
WriteOnly = 0x00000001 ,
397
+ ReadOnly = 0x00000002 ,
398
+ ReadWrite = 0x00000003 ,
397
399
};
398
400
399
401
enum class StoreOp : uint32_t {
Original file line number Diff line number Diff line change @@ -358,6 +358,8 @@ namespace wgpu {
358
358
359
359
static_assert (static_cast <uint32_t >(StorageTextureAccess::Undefined) == WGPUStorageTextureAccess_Undefined, " value mismatch for StorageTextureAccess::Undefined" );
360
360
static_assert (static_cast <uint32_t >(StorageTextureAccess::WriteOnly) == WGPUStorageTextureAccess_WriteOnly, " value mismatch for StorageTextureAccess::WriteOnly" );
361
+ static_assert (static_cast <uint32_t >(StorageTextureAccess::ReadOnly) == WGPUStorageTextureAccess_ReadOnly, " value mismatch for StorageTextureAccess::ReadOnly" );
362
+ static_assert (static_cast <uint32_t >(StorageTextureAccess::ReadWrite) == WGPUStorageTextureAccess_ReadWrite, " value mismatch for StorageTextureAccess::ReadWrite" );
361
363
362
364
// StoreOp
363
365
You can’t perform that action at this time.
0 commit comments