mirror of
https://github.com/servo/servo.git
synced 2025-07-15 11:23:39 +01:00
Add TexImage3D method to WebGL2RenderingContext Testing: conformance2 should pass. Also it should get http://webglsamples.org/WebGL2Samples/#texture_2d_array and http://webglsamples.org/WebGL2Samples/#texture_3d running. Fixes: #26511 Now Servo can run texture_2d_array and texture_3d samples!   And it can now run three.js too!  --------- Signed-off-by: Wu Yu Wei <yuweiwu@pm.me>
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;
|