-
Notifications
You must be signed in to change notification settings - Fork 344
Add bc4-r-unorm and astc-12x12-unorm brain images #501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
FYI @mehmetoguzderin |
@mwyrzykowski I've noticed using the bc4-safari.mov |
Ah looks like we were rejecting 3D compressed texture creation even when the extension was enabled, thanks for catching @beaufortfrancois I suppose the sample could detect the validation error we generated but I addressed it with https://bugs.webkit.org/show_bug.cgi?id=291690: Screen.Recording.2025-04-17.at.10.55.29.AM.mov |
These errors aren't supposed to happen in the samples, but if they do, we want them to be visible. Otherwise they can only be seen in the dev tools console, and sometimes you can't tell that the sample is misbehaving, e.g.: webgpu#501 (comment)
These errors aren't supposed to happen in the samples, but if they do, we want them to be visible. Otherwise they can only be seen in the dev tools console, and sometimes you can't tell that the sample is misbehaving, e.g.: webgpu#501 (comment)
@mwyrzykowski Is it firing the GPUDevice |
@kainino0x it appears the related CTS tests https://gpuweb.github.io/cts/standalone/?q=webgpu:api,validation,error_scope:* and https://gpuweb.github.io/cts/standalone/?q=webgpu:api,operation,uncapturederror:* are passing in WebKit as the pattern from https://www.w3.org/TR/webgpu/#example-bf3af559 works in WebKit But the method used in the samples:
does not. Replacing that with:
|
@mwyrzykowski My understanding is that both |
Thank you for investigating, Mike! Filed CTS bug gpuweb/cts#4361 |
These errors aren't supposed to happen in the samples, but if they do, we want them to be visible. Otherwise they can only be seen in the dev tools console, and sometimes you can't tell that the sample is misbehaving, e.g.: #501 (comment)
@kainino0x I've added astc-12x12-unorm brain image as well in this PR. |
Yes, presumably so |
@mwyrzykowski I've tried https://red-triangle-webgpu.glitch.me/uncapturederror.html in Chrome, Firefox Nightly, and Safari Tech Preview. |
FYI whatwg/compression#34 shows that chrome won't
have brotli support soon sadly.
…On Tue, Apr 22, 2025, 03:00 Kai Ninomiya ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In sample/volumeRenderingTexture3D/main.ts
<#501 (comment)>
:
>
const gui = new GUI();
+const brainImages = {
+ r8unorm: {
+ bytesPerBlock: 1,
+ blockLength: 1,
+ feature: undefined,
+ dataPath:
+ '../../assets/img/volume/t1_icbm_normal_1mm_pn0_rf0_180x216x180_uint8_1x1.bin.gz',
update: Since we realized we need to use DecompressionStream, we are stuck
with gzip (or deflate).
—
Reply to this email directly, view it on GitHub
<#501 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE243QRKTJLJPUYT4DO2VT22WIDDAVCNFSM6AAAAAB3KSX44WVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDOOBSGQ4TEOBSG4>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
The concerns there seem to be about brotli compression, but we only need decompression. |
According to whatwg/compression#34 (comment), Safari has Brotli support to Compression Streams by using Apple's Compression Framework. See WebKit/WebKit@0d3451c |
This is the most important part of the best interest way |
This PR adds the possibility for users to pick bc4-r-unorm and astc-12x12-unorm brain images in the "Volume Rendering - Texture 3D" sample.