-
Notifications
You must be signed in to change notification settings - Fork 172
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
Inspecting Immutable Textures #227
Comments
I quickly skimmed over the related Spector.js code and this looks like your use-case should be supported:
I assume that hook isn't called or it's called incorrectly / rejects your call. It looks like the texture is then being read here:
So it's probably not displayed due to missing information. However, there shouldn't be any need to have explicit support for the |
Thanks for the pointers. I'll update this thread when I get around to looking at the problem again. This wasn't a terribly high priority for me so it may be a little while. Cheers! |
I ll try to check later tonight, thanks for the repro !!! |
Hey! First of all, thanks for putting together this tool; it's been extremely helpful so far! However, it appears that immutable textures can't be viewed in the draw call inspector.
MWE: https://github.com/Descryant/immutable-texture-spector-mwe
The lines in question are part of main.js. When uploading the image data with
texImage2D
(mutable storage), everything works fine:Now for the problem: If the texture storage is immutable (
texStorage2D
+texSubImage2D
) with the exact same parameters, the render output remains the same but the propertiestextureType
,format
,internalformat
,width
andheight
are missing and no image shows up in the inspector:To reproduce, comment out line 65 and uncomment lines 68 and 69.
Is this a usage error on my part or a bug / missing feature?
Cheers!
The text was updated successfully, but these errors were encountered: