From 7a985a39198a1678980c7bb7971b16370b27159e Mon Sep 17 00:00:00 2001 From: Ramez Ragaa Date: Tue, 8 Oct 2024 13:04:07 +0300 Subject: [PATCH] chore: glsl comments use //, not # --- doc/articles/controls/GLCanvasElement.md | 4 ++-- .../Windows_UI_Composition/RotatingCubeGlCanvasElement.cs | 4 ++-- .../Windows_UI_Composition/SimpleTriangleGlCanvasElement.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/articles/controls/GLCanvasElement.md b/doc/articles/controls/GLCanvasElement.md index 403107cfea2a..18bc78a96ccc 100644 --- a/doc/articles/controls/GLCanvasElement.md +++ b/doc/articles/controls/GLCanvasElement.md @@ -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; @@ -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; diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Composition/RotatingCubeGlCanvasElement.cs b/src/SamplesApp/UITests.Shared/Windows_UI_Composition/RotatingCubeGlCanvasElement.cs index 1a1bea6feca5..07b1e327a772 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Composition/RotatingCubeGlCanvasElement.cs +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Composition/RotatingCubeGlCanvasElement.cs @@ -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; @@ -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; diff --git a/src/SamplesApp/UITests.Shared/Windows_UI_Composition/SimpleTriangleGlCanvasElement.cs b/src/SamplesApp/UITests.Shared/Windows_UI_Composition/SimpleTriangleGlCanvasElement.cs index 50ef09912fcf..ec43239acfac 100644 --- a/src/SamplesApp/UITests.Shared/Windows_UI_Composition/SimpleTriangleGlCanvasElement.cs +++ b/src/SamplesApp/UITests.Shared/Windows_UI_Composition/SimpleTriangleGlCanvasElement.cs @@ -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; @@ -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;