Skip to content

Remove ETC2/EAC compressed texture formats from WebGL 2.0 core - #2053

Merged
zhenyao merged 4 commits into
KhronosGroup:masterfrom
kainino0x:etc2-removed
Oct 14, 2016
Merged

zhenyao merged 4 commits into
KhronosGroup:masterfrom
kainino0x:etc2-removed

Conversation

@kainino0x

@kainino0x kainino0x commented Sep 21, 2016 •

Copy link
Copy Markdown
Contributor

@kainino0x

Copy link
Copy Markdown
Contributor Author

Lint is failing because I touched a file which was already failing the lint (it has a weird mix of tabs and spaces).

@kenrussell kenrussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is great -- thank you for making these changes.

@jdashg @zhenyao please NOTE that this pull request requires the browser to be updated to no longer advertise the ETC2 enums on WebGL2RenderingContextBase.

It's also basically dependent on: (1) WEBGL_compressed_texture_es3_0 being promoted to community approved; and (2) a pull request removing the enums from the core context and webgl2.idl.

} else {
shouldBe("supportedFormats.length", "14");
}
// There should be exactly 4 formats for both WebGL 1.0 WebGL 2.0.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

typo: "WebGL 1.0 and WebGL 2.0"

@kenrussell

Copy link
Copy Markdown
Member

Uploaded #2056 to address the lint problems. Please rebase once it lands. Thanks.

@kainino0x kainino0x changed the title Test ETC2 on WebGL 2 only if WEBGL_compressed_texture_es3_0 is available Test ETC2 on WebGL 2 only if WEBGL_compressed_texture_etc is available Oct 8, 2016
@kainino0x kainino0x changed the title Test ETC2 on WebGL 2 only if WEBGL_compressed_texture_etc is available Remove ETC2/EAC compressed texture formats from core WebGL 2 Oct 14, 2016
@kainino0x kainino0x changed the title Remove ETC2/EAC compressed texture formats from core WebGL 2 Remove ETC2/EAC compressed texture formats from WebGL 2.0 core Oct 14, 2016
@kainino0x

Copy link
Copy Markdown
Contributor Author

I added the WebGL 2 spec changes to this PR. PTAL when you have a chance @kenrussell, thanks.

Thanks @Zmo for help on the spec editing.

@zhenyao

zhenyao commented Oct 14, 2016

Copy link
Copy Markdown
Contributor

LGTM

@zhenyao
zhenyao merged commit 4e6c509 into KhronosGroup:master Oct 14, 2016

@kenrussell kenrussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good overall after the fact. One small comment.

COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
COMPRESSED_RGBA8_ETC2_EAC, and COMPRESSED_SRGB8_ALPHA8_ETC2_EAC.

<p>These texture formats are not supported in WebGL 2.0.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd probably have said "not supported by default".

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.

Remove ETC2/EAC compressed texture formats from WebGL 2.0 core

3 participants