Skip to content
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

[Pico][OpenXR][XRLayers] Cannot create cubemap layers from compressed textures #376

Open
svillar opened this issue Dec 7, 2022 · 2 comments
Labels
bug Something isn't working third party Bug cause by third party software

Comments

@svillar
Copy link
Member

svillar commented Dec 7, 2022

So the Pico's OpenXR implementation does support the following swapchain formats

E/PxrRuntime: createInfo->format = 0x00008c43,c->info.formats[0] = 0x00008058
E/PxrRuntime: createInfo->format = 0x00008c43,c->info.formats[1] = 0x00008d62
E/PxrRuntime: createInfo->format = 0x00008c43,c->info.formats[2] = 0x00008059
E/PxrRuntime: createInfo->format = 0x00008c43,c->info.formats[3] = 0x0000881a
E/PxrRuntime: createInfo->format = 0x00008c43,c->info.formats[4] = 0x00008c43

which are the hex representation of

GL_RGBA8
GL_RGB565
GL_RGB10_A2_EXT
GL_RGBA16F_ARB
GL_SRGB8_ALPHA8_EXT

Out cubemap textures are using the KTX's COMPRESSED_RGB8_ETC2 format. This basically means that we cannot create the cubemap layer using the same textures we use for Meta devices for example.

As this depends on the SDK, we could perhaps provide non-compressed versions to be used by Pico's devices

@svillar svillar added bug Something isn't working third party Bug cause by third party software labels Dec 7, 2022
@svillar
Copy link
Member Author

svillar commented Dec 8, 2022

Would love to file the bug against Pico's SDK, but in the meantime we should look for alternatives.

@svillar
Copy link
Member Author

svillar commented Feb 25, 2023

Pico OS 5.4.0 brings support for compressed textures so we can resume this work and get rid of the PNGs,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working third party Bug cause by third party software
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant