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

Test uploading individual LOD levels to 3D textures from images #3699

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jimbly
Copy link

@Jimbly Jimbly commented Oct 18, 2024

@CLAassistant
Copy link

CLAassistant commented Oct 18, 2024

CLA assistant check
All committers have signed the CLA.

@Jimbly
Copy link
Author

Jimbly commented Oct 18, 2024

Notes:

  • (expected) Currently fails on Chrome on all platforms when uploading mipmaps of larger (128x128) 3D textures (see linked bug)
  • (unsure) The R[GBA]_INTEGER/UNSIGNED_BYTE for TEXTURE_3D (not TEXTURE_2D_ARRAY) tests fail for me (on any browser), where it seems the sampling is wrapping around, or something similar - not sure if this is indicating I have something wrong with my tests, or if this is a GPU or implementation bug

if (useMinMax) {
// Note: this seems like it should work, but fails on uint textures,
// bug in test / test author, or bug in implementations?
gl.texParameterf(bindingTarget, gl.TEXTURE_MIN_LOD, lod);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using TEXTURE_MIN/MAX_LOD here works in all tests except for the unsigned integer formats (where it appears to sample from the wrong level). I'm not sure if that means there's something I don't understand, or if I've stumbled upon a bug. I'd be happy to change this code to also test the alternative way to choose which lod levels are sampled from, or to remove this (currently unreachable) branch if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants