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
|
|
@ -62,7 +62,18 @@ readonly buffer roblock
|
|||
|
||||
void foo()
|
||||
{
|
||||
ro.values[2] = 4.7; // ERROR, readonly
|
||||
ro.values[2] = 4.7; // ERROR, readonly
|
||||
ro.values.length();
|
||||
barrier();
|
||||
}
|
||||
|
||||
uniform double roll;
|
||||
uniform writeonly image2D destTex;
|
||||
void fooaoeu() {
|
||||
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;
|
||||
int i = globalCoef; // ERROR, can't convert from double to int
|
||||
double di = i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue