Skip to content

Conversation

@kenrussell
Copy link
Member

@kenrussell kenrussell commented Aug 10, 2020

Revise conformance2/extensions/ext-texture-norm16.html to mandate that
16-bit signed normalized textures are not color renderable. That
functionality is covered under EXT_render_snorm, not currently exposed
to WebGL.

Partially addresses #3114.

@kenrussell kenrussell requested review from kdashg and shrekshao August 10, 2020 21:20
@kenrussell
Copy link
Member Author

Note that earlier change #3116 also promoted this to community approved but let's hold off on that until we have agreement on all of the details of this extension spec.

Revise conformance2/extensions/ext-texture-norm16.html to mandate that
16-bit signed normalized textures are not color renderable. That
functionality is covered under EXT_render_snorm, not currently exposed
to WebGL.

Partially addresses KhronosGroup#3114.
@kenrussell kenrussell force-pushed the ext-texture-norm16-is-webgl-2-specific branch from 977cef2 to 96b072b Compare August 10, 2020 21:58
@kenrussell
Copy link
Member Author

Revised to remove the EXT_render_snorm dependence, and added negative tests forbidding the SNORM16 texture formats from being advertised as color-renderable.

Copy link
Member

@shrekshao shrekshao left a comment

Choose a reason for hiding this comment

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

LGTM.


testSnorm16Unrenderable(ext.R16_SNORM_EXT, gl.RED, gl.SHORT);
testSnorm16Unrenderable(ext.RG16_SNORM_EXT, gl.RG, gl.SHORT);
testSnorm16Unrenderable(ext.RGB16_SNORM_EXT, gl.RGB, gl.SHORT);
Copy link
Member

Choose a reason for hiding this comment

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

https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_render_snorm.txt doesn't include RGB16_SNORM
But since it's negtive test, I think it be okay as long as this wouldn't lead to crash.

Copy link
Contributor

Choose a reason for hiding this comment

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

If it crashes, that would make this an essential negative test! :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing that out. It's probably an oversight in EXT_render_snorm; there is a reference to RGB16_SNORM_EXT in the section "Interactions with EXT_texture_norm16".


var wtu = WebGLTestUtils;
var gl = wtu.create3DContext();
var gl = wtu.create3DContext(null, null, 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need this, since this is in conformance2/*.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's needed to support navigating directly to this test rather than running it inside the harness, which makes debugging simpler. Most of the other tests under conformance2/ do this; it was an oversight that this test didn't.

@kenrussell
Copy link
Member Author

Thanks @shrekshao @jdashg for your reviews. Merging now.

@kenrussell kenrussell merged commit 5d33e2f into KhronosGroup:master Aug 11, 2020
@kenrussell kenrussell deleted the ext-texture-norm16-is-webgl-2-specific branch August 11, 2020 00:39
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.

3 participants