-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add KHR_texture_astc extension #2369
base: main
Are you sure you want to change the base?
Conversation
extensions/2.0/Khronos/KHR_texture_astc/schema/texture.KHR_texture_basisu.schema.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I do think you'll need to address the fragmentation of ASTC implementations into LDR-only, LDR+HDR and LDR+HDR+3D possibly by having multiple extensions. I'm no glTF expert but perhaps you can just have different extension names in this single extension document. That's what the GL extensions did IIRC.
1d83f0e
to
6b6d872
Compare
6b6d872
to
94e4293
Compare
I am not sure why we need to make the distinction? If all of these can be specified from the vkFormat then why have multiple extensions? |
Because a glTF implementation says it supports the functionality by using it. If not supported it falls back to the alternative given in the glTF file. So if the implementation starts using the extension because it "supports ASTC" then finds it is an HDR image and the graphics API below it does not support HDR that's a problem. It may be too late to fall back. @lexaknyazev any comment on this? |
If the goal of this extension is to provide a drop-in replacement for JPEG/PNG images in the existing glTF ecosystem, then only LDR payloads should be supported. Besides, non-LDR textures cannot be used with the existing material properties in principle (see another comment above). |
Add an extension for native ASTC encoded ktx2 images. Extension only supports LDR, no HDR or 3D images supported yet.