web: the page's device keeps WebGPU's default texture and compute limits for now

e204fa1b asked for GL 4.1's and 4.3's limits, and the page context became
GL 4.6 -- and Unity's 4.x shader variants then drew Muck's 3D scene as
black silhouettes (U, mp26 on edger; sky, clouds and UI right). Back to
the defaults (GL 4.0, with 707e84b8's version fit for 4.1-4.6 sources)
until the 4.x path is fixed. The decoder's full 4.1-4.6 requirement report
stays.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_d2453757b8a84fdbb4ee7c9e093141df
This commit is contained in:
velzieandClaude Opus 5.5 committed 2026-10-08 11:17:12 -04:00
1 parent 228c5689c7
commit 32f58c4efe
2 files changed
+8 -30

No files matched your search

+4 -15
View File
@@ -98,21 +98,10 @@
// sample, so any wider attachment set fails on it -- GL 3.2 wants
// eight draw buffers of whatever format the application chose.
maxColorAttachmentBytesPerSample: 64,
// GL 4.1 wants 16384 texels a side and 2048 array layers
// (compute_version), and WebGPU's defaults are 8192 and 256: without
// asking, every context settled at 4.0 and GLSL 4.00, and Unity's
// #version 410 geometry stages (Muck's grass) failed to compile. GL
// 4.3's compute shaders want 1024 invocations a workgroup and 32 KiB
// of shared memory (WebGPU: 256 and 16 KiB). All clamped to the adapter.
maxTextureDimension1D: 16384,
maxTextureDimension2D: 16384,
maxTextureDimension3D: 2048,
maxTextureArrayLayers: 2048,
maxComputeInvocationsPerWorkgroup: 1024,
maxComputeWorkgroupSizeX: 1024,
maxComputeWorkgroupSizeY: 1024,
maxComputeWorkgroupSizeZ: 64,
maxComputeWorkgroupStorageSize: 32768,
// Not yet: asking for GL 4.1's texture limits (16384 texels, 2048
// layers) and GL 4.3's compute ones makes the context GL 4.6, and then
// Unity's 4.x shader variants draw Muck's 3D scene black (U, mp26).
// Back once that is fixed; see docs/gl-path.md.
};
const requiredLimits = {};
for (const [limit, wanted] of Object.entries(want)) {
+4 -15
View File
@@ -44,21 +44,10 @@ export function requestGexDevice() {
maxStorageBuffersInVertexStage: 16,
maxStorageBuffersInFragmentStage: 16,
maxColorAttachmentBytesPerSample: 64,
// GL 4.1 wants 16384 texels a side and 2048 array layers
// (compute_version), and WebGPU's defaults are 8192 and 256: without
// asking, every context settled at 4.0 and GLSL 4.00, and Unity's
// #version 410 geometry stages (Muck's grass) failed to compile. GL
// 4.3's compute shaders want 1024 invocations a workgroup and 32 KiB
// of shared memory (WebGPU: 256 and 16 KiB). All clamped to the adapter.
maxTextureDimension1D: 16384,
maxTextureDimension2D: 16384,
maxTextureDimension3D: 2048,
maxTextureArrayLayers: 2048,
maxComputeInvocationsPerWorkgroup: 1024,
maxComputeWorkgroupSizeX: 1024,
maxComputeWorkgroupSizeY: 1024,
maxComputeWorkgroupSizeZ: 64,
maxComputeWorkgroupStorageSize: 32768,
// Not yet: asking for GL 4.1's texture limits (16384 texels, 2048
// layers) and GL 4.3's compute ones makes the context GL 4.6, and then
// Unity's 4.x shader variants draw Muck's 3D scene black (U, mp26).
// Back once that is fixed; see docs/gl-path.md.
};
const requiredLimits = {};
for (const [limit, wanted] of Object.entries(want)) {