-
Notifications
You must be signed in to change notification settings - Fork 329
Closed
Labels
compatWebGPU Compatibility ModeWebGPU Compatibility Mode
Milestone
Description
In WebGPU you can create a texture and request compatible viewFormats.
const tex = device.createTexture({
...
format: 'rgba8unorm',
viewFormats: ['rgba8unorm', 'rgba8norm-srgb'],
});
OpenGL ES 3.1 has no such facility.
We'd like to validate this out in compatibility mode. 2 options
-
Require the formats in
viewFormats
to be the same format{ ... format: 'rgba8unorm', viewFormats: ['rgba8unorm', 'rgba8norm-srgb'], } // bad { ... format: 'rgba8unorm', viewFormats: ['rgba8unorm'], } // ok
-
Require
viewFormats
to be unset{ ... format: 'rgba8unorm', viewFormats: ['rgba8unorm'], } // bad { ... format: 'rgba8unorm' } // ok
Metadata
Metadata
Assignees
Labels
compatWebGPU Compatibility ModeWebGPU Compatibility Mode