mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Set the correct Angle GLSL output when using WebGL 2
This commit is contained in:
parent
bc58e18761
commit
c22674481b
21 changed files with 99 additions and 621 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue