script/dom/webgl/validations/mod.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5pub(crate) trait WebGLValidator {
6 type ValidatedOutput;
7 type Error: ::std::error::Error;
8
9 fn validate(self) -> Result<Self::ValidatedOutput, Self::Error>;
10}
11
12pub(crate) mod tex_image_2d;
13pub(crate) mod tex_image_3d;
14pub(crate) mod types;