mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Implement WEBGL_color_buffer_float and EXT_color_buffer_half_float (fixes #22113)
This commit is contained in:
parent
176d984b3b
commit
e31462c37c
12 changed files with 240 additions and 32 deletions
15
components/script/dom/webidls/EXTColorBufferHalfFloat.webidl
Normal file
15
components/script/dom/webidls/EXTColorBufferHalfFloat.webidl
Normal file
|
@ -0,0 +1,15 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
/*
|
||||
* WebGL IDL definitions from the Khronos specification:
|
||||
* https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/
|
||||
*/
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface EXTColorBufferHalfFloat {
|
||||
const GLenum RGBA16F_EXT = 0x881A;
|
||||
const GLenum RGB16F_EXT = 0x881B;
|
||||
const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;
|
||||
const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17;
|
||||
}; // interface EXT_color_buffer_half_float
|
14
components/script/dom/webidls/WEBGLColorBufferFloat.webidl
Normal file
14
components/script/dom/webidls/WEBGLColorBufferFloat.webidl
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
/*
|
||||
* WebGL IDL definitions from the Khronos specification:
|
||||
* https://www.khronos.org/registry/webgl/extensions/WEBGL_color_buffer_float/
|
||||
*/
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface WEBGLColorBufferFloat {
|
||||
const GLenum RGBA32F_EXT = 0x8814;
|
||||
const GLenum FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT = 0x8211;
|
||||
const GLenum UNSIGNED_NORMALIZED_EXT = 0x8C17;
|
||||
}; // interface WEBGL_color_buffer_float
|
Loading…
Add table
Add a link
Reference in a new issue