Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proposed textureBindingViewDimension #164

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading