Track separate precision defaults for each kind of sampler, give initial defaults as per spec. Also make fragment floats have no default. Modify/add tests to adapt to these changes.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22066 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
c59d0cd9e6
commit
41a36bbb2f
13 changed files with 91 additions and 34 deletions
|
|
@ -1,9 +1,11 @@
|
|||
#version 300 es
|
||||
|
||||
precision mediump float;
|
||||
|
||||
struct S {
|
||||
vec4 u;
|
||||
uvec4 v;
|
||||
isampler3D sampler;
|
||||
lowp isampler3D sampler;
|
||||
vec3 w;
|
||||
struct T1 { // ERROR
|
||||
int a;
|
||||
|
|
@ -15,7 +17,7 @@ uniform S s;
|
|||
uniform fooBlock {
|
||||
uvec4 bv;
|
||||
mat2 bm2;
|
||||
isampler2D sampler; // ERROR
|
||||
lowp isampler2D sampler; // ERROR
|
||||
struct T2 { // ERROR
|
||||
int a;
|
||||
} t;
|
||||
|
|
@ -35,5 +37,5 @@ uniform barBlockArray {
|
|||
void main()
|
||||
{
|
||||
texture(s.sampler, vec3(inst.ni, bv.y, insts[2].nbv.z));
|
||||
insts[s.v.x]; // ERROR
|
||||
insts[s.v.x]; // ERROR
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue