Skip to content

Clarify GLES/WebGL difference with uninitialized compressed textures. - #3688

Merged
kenrussell merged 2 commits into
KhronosGroup:mainfrom
kenrussell:clarify-uninit-compressed-tex
Sep 5, 2024
Merged

kenrussell merged 2 commits into
KhronosGroup:mainfrom
kenrussell:clarify-uninit-compressed-tex

Conversation

@kenrussell

Copy link
Copy Markdown
Member

Fixes #3686.

@kenrussell
kenrussell requested a review from kdashg September 5, 2024 05:31
@kenrussell

Copy link
Copy Markdown
Member Author

@juj any feedback welcome. This seemed most appropriate to add to the WebGL 2.0 spec because this has always been disallowed in WebGL 1.0.

@lexaknyazev

Copy link
Copy Markdown
Member

Using texStorage is not a functional replacement because it would prevent potential texture redefinitions. Assuming that we cannot retroactively allow null, the only option is to use new Uint8Array(n) with an appropriate size.

@kenrussell

Copy link
Copy Markdown
Member Author

Fair point; I've rewritten this paragraph. Would you please take another look?

@juj juj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks for the update!

@kenrussell
kenrussell merged commit de50dfc into KhronosGroup:main Sep 5, 2024
@kenrussell
kenrussell deleted the clarify-uninit-compressed-tex branch September 5, 2024 17:14
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.

There is no way to initialize a compressed 2D or 3D texture with uninitialized contents

4 participants