SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
lowp float foo();
|
||||
|
||||
uniform int low, high;
|
||||
in lowp float low, high;
|
||||
|
||||
lowp float face1 = 11.0;
|
||||
|
||||
@@ -12,7 +12,7 @@ void main()
|
||||
{
|
||||
int z = 3;
|
||||
|
||||
if (2 * low + 1 < high)
|
||||
if (2.0 * low + 1.0 < high)
|
||||
++z;
|
||||
|
||||
Color = face1 * vec4(z) + foo();
|
||||
|
||||
Reference in New Issue
Block a user