Skip to content

Commit

Permalink
Merge pull request #18409 from ramezgerges/glcanvaselement_skia_macos
Browse files Browse the repository at this point in the history
chore: glsl comments use //, not #
  • Loading branch information
jeromelaban authored Oct 8, 2024
2 parents ed92c1e + 7a985a3 commit bf6bfc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/articles/controls/GLCanvasElement.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public class SimpleTriangleGlCanvasElement()
var vertexCode =
$$"""
{{versionDef}}
precision highp float; # for OpenGL ES compatibility
precision highp float; // for OpenGL ES compatibility
layout (location = 0) in vec3 aPosition;
out vec4 vertexColor;
Expand All @@ -135,7 +135,7 @@ public class SimpleTriangleGlCanvasElement()
var fragmentCode =
$$"""
{{versionDef}}
precision highp float; # for OpenGL ES compatibility
precision highp float; // for OpenGL ES compatibility
out vec4 out_color;
in vec4 vertexColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class RotatingCubeGlCanvasElement() : GLCanvasElement(1200, 800, null)

private readonly string _vertexShaderSource =
"""
precision highp float; # for OpenGL ES compatibility
precision highp float; // for OpenGL ES compatibility
layout(location = 0) in vec3 pos;
layout(location = 1) in vec3 vertex_color;
Expand All @@ -86,7 +86,7 @@ void main() {

private readonly string FragmentShaderSource =
"""
precision highp float; # for OpenGL ES compatibility
precision highp float; // for OpenGL ES compatibility
in vec3 color;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ unsafe protected override void Init(GL gl)
var vertexCode =
$$"""
{{versionDef}}
precision highp float; # for OpenGL ES compatibility
precision highp float; // for OpenGL ES compatibility
layout (location = 0) in vec3 aPosition;
out vec4 vertexColor;
Expand All @@ -59,7 +59,7 @@ void main()
var fragmentCode =
$$"""
{{versionDef}}
precision highp float; # for OpenGL ES compatibility
precision highp float; // for OpenGL ES compatibility
out vec4 out_color;
in vec4 vertexColor;
Expand Down

0 comments on commit bf6bfc2

Please sign in to comment.