Add texture gather functions (and extension check) for GLSL 400 and GL_ARB_texture_gather.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23631 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
a65dc63d46
commit
21a8770f92
11 changed files with 301 additions and 36 deletions
|
|
@ -17,3 +17,17 @@ void main()
|
|||
{
|
||||
float clip = gl_ClipDistance[3];
|
||||
}
|
||||
|
||||
uniform samplerCube sampC;
|
||||
|
||||
void foo()
|
||||
{
|
||||
vec4 s = textureGather(sampC, vec3(0.2));
|
||||
}
|
||||
|
||||
#extension GL_ARB_texture_gather : enable
|
||||
|
||||
void bar()
|
||||
{
|
||||
vec4 s = textureGather(sampC, vec3(0.2));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue