From 1af70a30b3a3bd8cb501dac1a01e04dbbf15d99e Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Tue, 14 Jan 2025 13:28:59 -0800 Subject: [PATCH] Add proposed textureBindingViewDimension This is not standardized, but there is no harm in the types allowing it because standard implementations will simply ignore it. --- README.md | 1 + dist/index.d.ts | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index ebd919e..ee63dc6 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/dist/index.d.ts b/dist/index.d.ts index 93d113b..e91d098 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1619,6 +1619,17 @@ interface GPUTextureDescriptor * */ viewFormats?: Iterable; + /** + * **PROPOSED** addition for Compatibility Mode: + * + * + * > [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