Path: blob/main_old/extensions/CHROMIUM_bind_generates_resource.txt
1693 views
Name12CHROMIUM_bind_generates_resource34Name Strings56GL_CHROMIUM_bind_generates_resource78Contributors910Geoff Lang1112Contact1314Geoff Lang (geofflang 'at' google.com)1516Notice1718Copyright (c) 2016 The Khronos Group Inc. Copyright terms at19http://www.khronos.org/registry/speccopyright.html2021Status2223Draft2425Version2627Version 1, September 19, 20162829Number3031OpenGL ES Extension #??3233Dependencies3435Requires OpenGL ES 2.03637Written against the OpenGL ES 2.0 specification.3839Overview4041This extension allows the user to control the behaviour when binding an42object that has not been generated. This functionality is useful to43notify the user of potential use-after-free errors or support other APIs44such as WebGL on top of an OpenGL ES context.4546New Procedures and Functions4748None4950New Tokens5152Accepted by the <cap> parameter to IsEnabled and the <pname> parameter to53GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v:5455BIND_GENERATES_RESOURCE_CHROMIUM 0x92445657Additions to the OpenGL ES Specification5859Add to the end of Section 2.9 "Buffer Objects":6061If BIND_GENERATES_RESOURCE_CHROMIUM is false, BindBuffer fails and an62INVALID_OPERATION error is generated if buffer is not zero or a name63returned from a previous call to GenBuffers, or if such a name has since64been deleted with DeleteBuffers.6566Add to the end of Section 3.7.13 "Texture Objects":6768If BIND_GENERATES_RESOURCE_CHROMIUM is false, BindTexture fails and an69INVALID_OPERATION error is generated if texture is not zero or a name70returned from a previous call to GenTextures, or if such a name has since71been deleted with DeleteTextures.7273Add to the end of Section 4.4.1 "Binding and Managing Framebuffer Objects":7475If BIND_GENERATES_RESOURCE_CHROMIUM is false, BindFramebuffer fails and an76INVALID_OPERATION error is generated if framebuffer is not zero or a name77returned from a previous call to GenFramebuffers, or if such a name has78since been deleted with DeleteFramebuffers.7980Add to the end of Section 4.4.3 "Renderbuffer Objects":8182If BIND_GENERATES_RESOURCE_CHROMIUM is false, BindRenderbuffer fails and an83INVALID_OPERATION error is generated if renderbuffer is not zero or a name84returned from a previous call to GenRenderbuffers, or if such a name has85since been deleted with DeleteRenderbuffers.8687New State8889Modify Table 6.22, Miscellaneous9091Add:9293Initial94Get Value Type Get Command Value Description95----------------------- ---- ----------- ------- --------------96BIND_GENERATES_RESOURCE_CHROMIUM B IsEnabled TRUE Bind generates97new resources9899Conformance Tests100101TBD102103Issues104105(1) Should the BIND_GENERATES_RESOURCE_CHROMIUM state be enabled at context106creation time or dynamically through the Enable and Disable functions?107108RESOLOVED: BIND_GENERATES_RESOURCE_CHROMIUM is initialized by a context109creation attribute and cannot be modified. One of the major use cases of110this extension is to back WebGL contexts and the end user should not be111allowed to modify this state.112113Revision History114115Rev. Date Author Changes116---- ------------- --------- ----------------------------------------1171 Sept 19, 2016 geofflang Initial version118119120