summaryrefslogtreecommitdiffstats
path: root/third_party/rust/khronos_api/src
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /third_party/rust/khronos_api/src
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/khronos_api/src')
-rw-r--r--third_party/rust/khronos_api/src/lib.rs47
1 files changed, 47 insertions, 0 deletions
diff --git a/third_party/rust/khronos_api/src/lib.rs b/third_party/rust/khronos_api/src/lib.rs
new file mode 100644
index 0000000000..c0bcbb3d0a
--- /dev/null
+++ b/third_party/rust/khronos_api/src/lib.rs
@@ -0,0 +1,47 @@
+// Copyright 2015 Brendan Zabarauskas and the gl-rs developers
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! This crates contains the sources of the official OpenGL repository.
+
+// NOTE: if any new files are added to here, ensue they are also covered
+// in the `include` section of the `Cargo.toml`.
+
+/// The contents of [`gl.xml`](https://github.com/KhronosGroup/OpenGL-Registry/blob/master/xml/gl.xml)
+pub const GL_XML: &'static [u8] = include_bytes!("../api/xml/gl.xml");
+
+/// The contents of [`egl.xml`](https://github.com/KhronosGroup/EGL-Registry/blob/master/api/egl.xml)
+pub const EGL_XML: &'static [u8] = include_bytes!("../api_egl/api/egl.xml");
+
+/// The contents of [`wgl.xml`](https://github.com/KhronosGroup/OpenGL-Registry/blob/master/xml/wgl.xml)
+pub const WGL_XML: &'static [u8] = include_bytes!("../api/xml/wgl.xml");
+
+/// The contents of [`glx.xml`](https://github.com/KhronosGroup/OpenGL-Registry/blob/master/xml/glx.xml)
+pub const GLX_XML: &'static [u8] = include_bytes!("../api/xml/glx.xml");
+
+/// The contents of [`gl_angle_ext.xml`](https://github.com/google/angle/blob/master/scripts/gl_angle_ext.xml)
+pub const GL_ANGLE_EXT_XML: &'static [u8] = include_bytes!("../api_angle/scripts/gl_angle_ext.xml");
+
+/// The contents of [`egl_angle_ext.xml`](https://github.com/google/angle/blob/master/scripts/egl_angle_ext.xml)
+pub const EGL_ANGLE_EXT_XML: &'static [u8] = include_bytes!("../api_angle/scripts/egl_angle_ext.xml");
+
+/// The contents of [`webgl.idl`](https://github.com/KhronosGroup/WebGL/blob/master/specs/latest/1.0/webgl.idl)
+pub const WEBGL_IDL: &'static [u8] = include_bytes!("../api_webgl/specs/latest/1.0/webgl.idl");
+
+/// The contents of [`webgl2.idl`](https://github.com/KhronosGroup/WebGL/blob/master/specs/latest/2.0/webgl2.idl)
+pub const WEBGL2_IDL: &'static [u8] = include_bytes!("../api_webgl/specs/latest/2.0/webgl2.idl");
+
+/// The contents of the WebGL extension XML files
+/// These are discovered via a build script to avoid having to list each extension by name.
+pub const WEBGL_EXT_XML: &'static [&'static [u8]] =
+ include!(concat!(env!("OUT_DIR"), "/webgl_exts.rs"));