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

Show valid framebuffer attachment combinations #4

Open
pjcozzi opened this issue Dec 12, 2012 · 0 comments
Open

Show valid framebuffer attachment combinations #4

pjcozzi opened this issue Dec 12, 2012 · 0 comments

Comments

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 12, 2012

GL does not guarantee that all combinations of framebuffer attachments are supported. For example, without ANGLE on Windows XP, a stencil or depth/stencil renderbuffer cannot be attached to a framebuffer.

We should select a handful of common attachment combinations and report if they are supported, e.g.,

  • Texture RGBA, Renderbuffer DEPTH_COMPONENT16
  • Texture RGBA, Renderbuffer STENCIL_INDEX8
  • Texture RGB, Renderbuffer DEPTH_COMPONENT16
  • Texture RGB, Renderbuffer STENCIL_INDEX8

For more information, search for "CheckFramebufferStatus" or "FRAMEBUFFER_UNSUPPORTED" in the GL ES spec: www.khronos.org/registry/gles/specs/2.0/es_full_spec_2.0.25.pdf.

Section 6.5 in the WebGL spec may also be interesting: www.khronos.org/registry/webgl/specs/latest/

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

No branches or pull requests

1 participant