Set the correct Angle GLSL output when using WebGL 2

This commit is contained in:
Imanol Fernandez 2017-11-13 14:36:56 +01:00
parent bc58e18761
commit c22674481b
21 changed files with 99 additions and 621 deletions

View file

@ -63,6 +63,8 @@ pub struct WebGLCreateContextResult {
pub limits: GLLimits,
/// How the WebGLContext is shared with WebRender.
pub share_mode: WebGLContextShareMode,
/// The GLSL version supported by the context.
pub glsl_version: WebGLSLVersion
}
#[derive(Clone, Copy, Deserialize, MallocSizeOf, Serialize)]
@ -84,6 +86,15 @@ pub enum WebGLVersion {
WebGL2,
}
/// Defines the GLSL version supported by the WebGL backend contexts.
#[derive(Clone, Copy, Deserialize, Eq, MallocSizeOf, PartialEq, Serialize)]
pub struct WebGLSLVersion {
/// Major GLSL version
pub major: u32,
/// Minor GLSL version
pub minor: u32,
}
/// Helper struct to send WebGLCommands to a specific WebGLContext.
#[derive(Clone, Deserialize, MallocSizeOf, Serialize)]
pub struct WebGLMsgSender {