aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_validations/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgl_validations/mod.rs')
-rw-r--r--components/script/dom/webgl_validations/mod.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/script/dom/webgl_validations/mod.rs b/components/script/dom/webgl_validations/mod.rs
new file mode 100644
index 00000000000..2e070c6d6bc
--- /dev/null
+++ b/components/script/dom/webgl_validations/mod.rs
@@ -0,0 +1,13 @@
+/* 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/. */
+
+pub trait WebGLValidator {
+ type ValidatedOutput;
+ type Error: ::std::error::Error;
+
+ fn validate(self) -> Result<Self::ValidatedOutput, Self::Error>;
+}
+
+pub mod tex_image_2d;
+pub mod types;