Skip to content
Open
Changes from 1 commit
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
7 changes: 5 additions & 2 deletions proposals/compatibility-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,18 @@ During `createRenderPipeline()` and `createRenderPipelineAsync()`, `GPUDepthSten
The differences in limits between compatibility mode and standard WebGPU
are as follows


| limit | compat | standard | gl limit |
| :---------------------------------- | ------: | --------: | :------------------------------------------- |
| `maxColorAttachments` | 4 | 8 | min(MAX_COLOR_ATTACHMENTS, MAX_DRAW_BUFFERS) |
| `maxComputeInvocationsPerWorkgroup` | 128 | 256 | MAX_COMPUTE_WORK_GROUP_INVOCATIONS |
| `maxComputeWorkgroupSizeX` | 128 | 256 | MAX_COMPUTE_WORK_GROUP_SIZE |
| `maxComputeWorkgroupSizeY` | 128 | 256 | MAX_COMPUTE_WORK_GROUP_SIZE |
| `maxInterStageShaderVariables` | 15 | 16 | MAX_VARYING_VECTORS |
| `maxStorageBuffersPerShaderStage` | 4 | 8 | min(GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS, GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS, GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS, GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS) |
| `maxStorageBuffersPerShaderStage` | 4 | 8 | min(MAX_SHADER_STORAGE_BUFFER_BINDINGS, MAX_COMPUTE_SHADER_STORAGE_BLOCKS) |
| `maxStorageBuffersInVertexStage` | 0 | (ignored) | min(MAX_SHADER_STORAGE_BUFFER_BINDINGS, MAX_VERTEX_SHADER_STORAGE_BLOCKS) (see restriction 18) |
| `maxStorageBuffersInFragmentStage` | 0 | (ignored) | min(MAX_SHADER_STORAGE_BUFFER_BINDINGS, MAX_FRAGMENT_SHADER_STORAGE_BLOCKS) (see restriction 19) |
Comment thread
kainino0x marked this conversation as resolved.
| `maxStorageTexturesInVertexStage` | 0 | (ignored) | TODO (see restriction 18) |
| `maxStorageTexturesInFragmentStage` | 0 | (ignored) | TODO (see restriction 19) |
Comment thread
kainino0x marked this conversation as resolved.
Outdated
| `maxTextureDimension1D` | 4096 | 8192 | MAX_TEXTURE_SIZE |
| `maxTextureDimension2D` | 4096 | 8192 | MAX_TEXTURE_SIZE |
| `maxUniformBufferBindingSize` | 16384 | 65536 | MAX_UNIFORM_BLOCK_SIZE |
Expand Down