Add support for extension GL_ARB_texture_query_lod. (#2194)
This commit is contained in:
parent
b858d41964
commit
f03cb290ac
7 changed files with 192 additions and 49 deletions
|
|
@ -126,29 +126,15 @@ layout(location=27, index=0) in vec4 indexIn; // ERROR, not on in
|
|||
layout(location=0, index=0) in; // ERROR, not just on in
|
||||
layout(location=0, index=0) out; // ERROR, need a variable
|
||||
layout(location=26, index=0) out indexBlock { int a; } indexBlockI; // ERROR, not on a block
|
||||
|
||||
uniform sampler1D samp1D;
|
||||
uniform sampler2DShadow samp2Ds;
|
||||
|
||||
void qlod()
|
||||
{
|
||||
vec2 lod;
|
||||
float pf;
|
||||
vec2 pf2;
|
||||
vec3 pf3;
|
||||
|
||||
lod = textureQueryLod(samp1D, pf); // ERROR, not until 400
|
||||
lod = textureQueryLod(samp2Ds, pf2); // ERROR, not until 400
|
||||
}
|
||||
|
||||
int precise; // okay, not a keyword yet
|
||||
struct SKeyMem { int precise; } KeyMem; // okay, not a keyword yet
|
||||
|
||||
void fooKeyMem()
|
||||
{
|
||||
KeyMem.precise;
|
||||
}
|
||||
|
||||
|
||||
int precise; // okay, not a keyword yet
|
||||
struct SKeyMem { int precise; } KeyMem; // okay, not a keyword yet
|
||||
|
||||
void fooKeyMem()
|
||||
{
|
||||
KeyMem.precise;
|
||||
}
|
||||
|
||||
layout(location=28, index=2) out vec4 outIndex2; // ERROR index out of range
|
||||
|
||||
layout(location=4) uniform vec4 ucolor0; // ERROR: extension is not enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue