On Mon, Sep 19, 2011 at 8:14 PM, Chris Marrin <email@example.com> wrote:That cannot be used as a precedent because the extension predates FBOs. And, as I just pointed out in another email, there is a separate ARB extension introduced just after texture_float for rendering floats to the default framebuffer.
Yes it's a bit messy. But the http://www.opengl.org/registry/specs/ARB/texture_float.txt makes no stipulation if framebuffers have to support it or not.
Float rendering has been required in desktop GL for some time. For the most part the WebGL implementation of a color_buffer_float extension can simply look at the GL version to determine if float rendering is supported. If support is unclear, it can set everything up and check framebuffer status, possibly saving a large number of application programmers having to do the same thing.Likewise http://www.opengl.org/registry/specs/ARB/framebuffer_object.txt does not make any such guarantee, however it does discuss various use cases with floating point attached buffers, including color.
In my (limited, desktop oriented) practice I have not yet seen a device which supports floating point textures and FBOs, but cannot handle attaching a floating point texture to an FBO. So regardless of the intent of webgl, OpenGL does not support the query you'd like to execute. The only way to execute your desired "can this thing support floating point attachments" is to try it out, unless the extension registry is updated with just such an extension.
begin:vcard fn:Mark Callow n:Callow;Mark org:HI Corporation;Graphics Lab, Research & Development adr:Higashiyama 1-4-4, Meguro Ward;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan email;internet:firstname.lastname@example.org title:Chief Architect tel;work:+81 3 3710 9367 tel;fax:+81 3 5773 8660 x-mozilla-html:TRUE url:http://www.hicorp.co.jp, http://www.mascotcapsule.com version:2.1 end:vcard