mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Move interfaces defined by the WebGL spec to the `script/dom/webgl/ `module from `script/dom/`. `script/dom/webgl*.rs` -> `script/dom/webgl/` `script/dom/webgl_extensions` -> `script/dom/webgl/extensions` `script/dom/webgl_validations` -> `script/dom/webgl/validations` Testing: No changes, just a refactoring Fixes (partially): #38901 Signed-off-by: Andrei Volykhin <volykhin.andrei@huawei.com> Co-authored-by: Andrei Volykhin <volykhin.andrei@huawei.com>
14 lines
457 B
Rust
14 lines
457 B
Rust
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
|
|
pub(crate) trait WebGLValidator {
|
|
type ValidatedOutput;
|
|
type Error: ::std::error::Error;
|
|
|
|
fn validate(self) -> Result<Self::ValidatedOutput, Self::Error>;
|
|
}
|
|
|
|
pub(crate) mod tex_image_2d;
|
|
pub(crate) mod tex_image_3d;
|
|
pub(crate) mod types;
|