Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aab57bf

Browse files
committed
Compat mode: make f16 and f32 rendering optional.
Introduce float16-renderable and float32-renderable as optional features in Compatibility mode, and required in Core.
1 parent 6738a8a commit aab57bf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

proposals/compatibility-mode.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,19 @@ generate a validation error.
197197
other APIs only support the first vertex so only `@interpolation(flat, either)` is supported in
198198
compatibility mode.
199199

200-
## 18. Introduce new `maxStorageBuffersInVertexStage` and `maxStorageTexturesInVertexStage` limits.
200+
## 18. Introduce new `float16-renderable` and `float32-renderable` features.
201+
202+
When supported, `float16-renderable` allows the `RENDER_ATTACHMENT` usage on textures with format `"r16float"`, `"rg16float"`, and `"rgba16float"`.
203+
204+
When supported, `float32-renderable` allows the `RENDER_ATTACHMENT` usage on textures with format `"r32float"`, `"rg32float"`, and `"rgba32float"`.
205+
206+
Without support, an error will occur at texture creation time as described in section 6.1.3.
207+
208+
Support for both features is mandatory in core WebGPU.
209+
210+
**Justification**: OpenGL ES 3.1 does not require the relevant f16- or f32-based texture formats (`R16F`, `RG16F`, `RGBA16F`, `R32F`, `RG32F`, and `RGBA32F`) to be color-renderable. While there exist OpenGL ES extensions to enable renderability (`GL_EXT_COLOR_BUFFER_HALF_FLOAT` and `GL_EXT_COLOR_BUFFER_FLOAT`), there are a significant number of devices which lack support for these extensions.
211+
212+
## 19. Introduce new `maxStorageBuffersInVertexStage` and `maxStorageTexturesInVertexStage` limits.
201213

202214
If the number of shader variables of type `storage_buffer` in a vertex shader exceeds the `maxStorageBuffersInVertexStage` limit, a validation error will occur at pipeline creation time.
203215

0 commit comments

Comments
 (0)