glslang and SPIR-V: Some basic turn on for doubles (previously untested but existed code). Partly from a submission, partly addressing bug 13772.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@30794 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
87a5e2a84b
commit
edd181944e
10 changed files with 335 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#version 400 core
|
||||
#version 420 core
|
||||
|
||||
#extension GL_ARB_separate_shader_objects : enable
|
||||
|
||||
|
|
@ -27,3 +27,15 @@ void main()
|
|||
}
|
||||
|
||||
out float outf; // ERROR, no array
|
||||
|
||||
layout (location = 0) in dmat2x4 vs_tcs_first[];
|
||||
layout (location = 12) in dmat2x4 vs_tcs_last[];
|
||||
|
||||
void foo()
|
||||
{
|
||||
if ((dmat2x4(dvec4(-0.625, -0.5, -0.375, -0.25), dvec4(-0.375, -0.25, -0.125, 0)) != vs_tcs_first[0]) ||
|
||||
(dmat2x4(dvec4(0.375, 0.5, 0.625, 0.75), dvec4(0.625, 0.75, 0.875, -0.625)) != vs_tcs_last[0]))
|
||||
{
|
||||
;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue