git.s-ol.nu ~forks/DiligentTools / 0cfecc5
Fixed Imgui shader issue in MacOS (fixed https://github.com/DiligentGraphics/DiligentCore/issues/152) assiduous 10 months ago
1 changed file(s) with 12 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8181
8282
8383 static const char* VertexShaderGLSL = R"(
84 layout(binding=0) uniform Constants
84 #ifdef VULKAN
85 # define BINDING(X) layout(binding=X)
86 #else
87 # define BINDING(X)
88 #endif
89 BINDING(0) uniform Constants
8590 {
8691 mat4 ProjectionMatrix;
8792 };
109114 )";
110115
111116 static const char* PixelShaderGLSL = R"(
112 layout(binding = 0) uniform sampler2D Texture;
117 #ifdef VULKAN
118 # define BINDING(X) layout(binding=X)
119 #else
120 # define BINDING(X)
121 #endif
122 BINDING(0) uniform sampler2D Texture;
113123
114124 layout(location = 0) in vec4 vsout_col;
115125 layout(location = 1) in vec2 vsout_uv;