SPV: Implement Vulkan version of GLSL (KHR_vulkan_glsl).

This commit is contained in:
John Kessenich
2016-02-15 20:58:50 -07:00
parent 019f08fcd8
commit 6c292d3ba7
200 changed files with 7841 additions and 5577 deletions

View File

@@ -1,7 +1,9 @@
#version 140
#version 400
uniform mat4 m4;
uniform mat3 m3;
uniform bl {
uniform mat4 m4;
uniform mat3 m3;
} bName;
in vec3 v3;
@@ -22,5 +24,5 @@ vec3 mxv(mat4 m4, vec3 v)
void main()
{
gl_Position = vec4(mxv(m4, v3) + xf(m3, v3), 1.0);
gl_Position = vec4(mxv(bName.m4, v3) + xf(bName.m3, v3), 1.0);
}