Examples: Add WebGPU KTX2 test demo.#31714
Conversation
| // { path: '2d_bc1.ktx2' }, TODO: Add support for WebGPU | ||
| { path: '2d_bc3.ktx2' }, | ||
| // { path: '2d_bc5.ktx2' }, | ||
| // { path: '2d_bc7.ktx2' }, TODO: Add support for WebGPU |
There was a problem hiding this comment.
@donmccurdy I'll add TODOs here for #31690 (comment).
|
Thanks for adding this!
That's a visually jarring change. Shouldn't the viewport/scissor values be clamped to the window instead, so that the visual result stays the same? |
|
It's great that so many formats already work again in WebGPU now! Maybe you can add this test file (which works in WebGL but doesn't yet in WebGPU) as well: |
I must focus on other things right now so I would appreciate if you could give it a try. Otherwise I'll revisit this later. |
We can do that when #31689 is merged 👍 . |
Related issue: #31690
Description
The PR adds
webgl_loader_texture_ktx2aswebgpu_loader_texture_ktx2so it's easier to test KTX2 textures withWebGPURenderer.The example also demonstrates the differences between viewport/scissor handling to
WebGLRenderer. WebGPU does not allow negative viewport values so the textures views can only be rendered when their are full in view.