Skip to content

Commit

Permalink
Add proposed textureBindingViewDimension
Browse files Browse the repository at this point in the history
This is not standardized, but there is no harm in the types allowing it
because standard implementations will simply ignore it.
  • Loading branch information
kainino0x committed Jan 14, 2025
1 parent d699422 commit 1af70a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Most or all of these should be fixed in the generator over time.
The following differences are TODO: should be changed in the final result.

- Deprecated items should be removed.
- Addition of Compatibility Mode items like `textureBindingViewDimension`.

The following differences will remain.

Expand Down
11 changes: 11 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,17 @@ interface GPUTextureDescriptor
* </div>
*/
viewFormats?: Iterable<GPUTextureFormat>;
/**
* **PROPOSED** addition for Compatibility Mode:
* <https://github.com/gpuweb/gpuweb/blob/main/proposals/compatibility-mode.md#1-texture-view-dimension-may-be-specified>
*
* > [In compatibility mode,]
* > When specifying a texture, a textureBindingViewDimension property
* > determines the views which can be bound from that texture for sampling.
* > Binding a view of a different dimension for sampling than specified at
* > texture creation time will cause a validation error.
*/
textureBindingViewDimension?: GPUTextureViewDimension;
}

interface GPUTextureViewDescriptor
Expand Down

0 comments on commit 1af70a3

Please sign in to comment.