From abde37f6ec4880c0307e64a7b3da849e87530d9e Mon Sep 17 00:00:00 2001 From: John Kessenich <cepheus@frii.com> Date: Fri, 15 May 2015 21:36:01 +0000 Subject: [PATCH] glslang SPV tests: Add two more source tests for the last check in. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31213 e7fa87d3-cd2b-0410-9028-fcbf551c1848 --- Test/spv.double.comp | 25 +++++++++++++++++++++++++ Test/spv.set.vert | 14 ++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 Test/spv.double.comp create mode 100644 Test/spv.set.vert diff --git a/Test/spv.double.comp b/Test/spv.double.comp new file mode 100644 index 000000000..8f4a7893f --- /dev/null +++ b/Test/spv.double.comp @@ -0,0 +1,25 @@ +#version 430 + +const double d1 = 3.1415926535897932384626433832795LF; +const double d2 = 3.1415; +const double d3 = 3.1415926535897932384626433832795LF; +const double d4 = 3.1415926535897932384626433832795; + +buffer bufName { + float f; + double d; +} bufInst; + +uniform double roll; +uniform writeonly image2D destTex; + +void main() +{ + bufInst.d = float(d1); + bufInst.f = float(d1 + d2 + d3 + d4); + + ivec2 storePos = ivec2(gl_GlobalInvocationID.xy); + double localCoef = length(vec2(ivec2(gl_LocalInvocationID.xy)-8)/8.0); + dvec4 aa = dvec4(0.4, 0.2, 0.3, 0.4); + double globalCoef = 1.0; +} diff --git a/Test/spv.set.vert b/Test/spv.set.vert new file mode 100644 index 000000000..5f7807c77 --- /dev/null +++ b/Test/spv.set.vert @@ -0,0 +1,14 @@ +#version 450 + +layout(set = 4, binding = 7) uniform sampler2D sampler; + +layout(set = 0, binding = 8) buffer setBuf { + vec4 color; +} setBufInst; + +out vec4 color; + +void main() +{ + color = setBufInst.color; +} -- GitLab