support GL_EXT_texture_array extention.
This commit is contained in:
parent
c4d34471c4
commit
07e8220d4e
7 changed files with 235 additions and 1 deletions
34
Test/GL_EXT_texture_array.frag
Normal file
34
Test/GL_EXT_texture_array.frag
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#version 110
|
||||
|
||||
#extension GL_EXT_texture_array : enable
|
||||
|
||||
uniform sampler1DArray s1DA;
|
||||
uniform sampler2DArray s2DA;
|
||||
uniform sampler1DArrayShadow s1DAS;
|
||||
uniform sampler2DArrayShadow s2DAS;
|
||||
|
||||
void foo()
|
||||
{
|
||||
float f;
|
||||
vec2 v2;
|
||||
vec3 v3;
|
||||
vec4 v4;
|
||||
|
||||
v4 = texture1DArray(s1DA, v2);
|
||||
v4 = texture2DArray(s2DA, v3);
|
||||
v4 = shadow1DArray(s1DAS, v3);
|
||||
v4 = shadow2DArray(s2DAS, v4);
|
||||
|
||||
v4 = texture1DArray(s1DA, v2, f);
|
||||
v4 = texture2DArray(s2DA, v3, f);
|
||||
v4 = shadow1DArray(s1DAS, v3, f);
|
||||
|
||||
v4 = texture1DArrayLod(s1DA, v2, f);
|
||||
v4 = texture2DArrayLod(s2DA, v3, f);
|
||||
v4 = shadow1DArrayLod(s1DAS, v3, f);
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
foo();
|
||||
}
|
||||
149
Test/baseResults/GL_EXT_texture_array.frag.out
Normal file
149
Test/baseResults/GL_EXT_texture_array.frag.out
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
GL_EXT_texture_array.frag
|
||||
Shader version: 110
|
||||
Requested GL_EXT_texture_array
|
||||
0:? Sequence
|
||||
0:10 Function Definition: foo( ( global void)
|
||||
0:10 Function Parameters:
|
||||
0:? Sequence
|
||||
0:17 move second child to first child ( temp 4-component vector of float)
|
||||
0:17 'v4' ( temp 4-component vector of float)
|
||||
0:17 texture ( global 4-component vector of float)
|
||||
0:17 's1DA' ( uniform sampler1DArray)
|
||||
0:17 'v2' ( temp 2-component vector of float)
|
||||
0:18 move second child to first child ( temp 4-component vector of float)
|
||||
0:18 'v4' ( temp 4-component vector of float)
|
||||
0:18 texture ( global 4-component vector of float)
|
||||
0:18 's2DA' ( uniform sampler2DArray)
|
||||
0:18 'v3' ( temp 3-component vector of float)
|
||||
0:19 move second child to first child ( temp 4-component vector of float)
|
||||
0:19 'v4' ( temp 4-component vector of float)
|
||||
0:19 texture ( global 4-component vector of float)
|
||||
0:19 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:19 'v3' ( temp 3-component vector of float)
|
||||
0:20 move second child to first child ( temp 4-component vector of float)
|
||||
0:20 'v4' ( temp 4-component vector of float)
|
||||
0:20 texture ( global 4-component vector of float)
|
||||
0:20 's2DAS' ( uniform sampler2DArrayShadow)
|
||||
0:20 'v4' ( temp 4-component vector of float)
|
||||
0:22 move second child to first child ( temp 4-component vector of float)
|
||||
0:22 'v4' ( temp 4-component vector of float)
|
||||
0:22 texture ( global 4-component vector of float)
|
||||
0:22 's1DA' ( uniform sampler1DArray)
|
||||
0:22 'v2' ( temp 2-component vector of float)
|
||||
0:22 'f' ( temp float)
|
||||
0:23 move second child to first child ( temp 4-component vector of float)
|
||||
0:23 'v4' ( temp 4-component vector of float)
|
||||
0:23 texture ( global 4-component vector of float)
|
||||
0:23 's2DA' ( uniform sampler2DArray)
|
||||
0:23 'v3' ( temp 3-component vector of float)
|
||||
0:23 'f' ( temp float)
|
||||
0:24 move second child to first child ( temp 4-component vector of float)
|
||||
0:24 'v4' ( temp 4-component vector of float)
|
||||
0:24 texture ( global 4-component vector of float)
|
||||
0:24 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:24 'v3' ( temp 3-component vector of float)
|
||||
0:24 'f' ( temp float)
|
||||
0:26 move second child to first child ( temp 4-component vector of float)
|
||||
0:26 'v4' ( temp 4-component vector of float)
|
||||
0:26 textureLod ( global 4-component vector of float)
|
||||
0:26 's1DA' ( uniform sampler1DArray)
|
||||
0:26 'v2' ( temp 2-component vector of float)
|
||||
0:26 'f' ( temp float)
|
||||
0:27 move second child to first child ( temp 4-component vector of float)
|
||||
0:27 'v4' ( temp 4-component vector of float)
|
||||
0:27 textureLod ( global 4-component vector of float)
|
||||
0:27 's2DA' ( uniform sampler2DArray)
|
||||
0:27 'v3' ( temp 3-component vector of float)
|
||||
0:27 'f' ( temp float)
|
||||
0:28 move second child to first child ( temp 4-component vector of float)
|
||||
0:28 'v4' ( temp 4-component vector of float)
|
||||
0:28 textureLod ( global 4-component vector of float)
|
||||
0:28 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:28 'v3' ( temp 3-component vector of float)
|
||||
0:28 'f' ( temp float)
|
||||
0:31 Function Definition: main( ( global void)
|
||||
0:31 Function Parameters:
|
||||
0:33 Sequence
|
||||
0:33 Function Call: foo( ( global void)
|
||||
0:? Linker Objects
|
||||
0:? 's1DA' ( uniform sampler1DArray)
|
||||
0:? 's2DA' ( uniform sampler2DArray)
|
||||
0:? 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:? 's2DAS' ( uniform sampler2DArrayShadow)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
Shader version: 110
|
||||
Requested GL_EXT_texture_array
|
||||
0:? Sequence
|
||||
0:10 Function Definition: foo( ( global void)
|
||||
0:10 Function Parameters:
|
||||
0:? Sequence
|
||||
0:17 move second child to first child ( temp 4-component vector of float)
|
||||
0:17 'v4' ( temp 4-component vector of float)
|
||||
0:17 texture ( global 4-component vector of float)
|
||||
0:17 's1DA' ( uniform sampler1DArray)
|
||||
0:17 'v2' ( temp 2-component vector of float)
|
||||
0:18 move second child to first child ( temp 4-component vector of float)
|
||||
0:18 'v4' ( temp 4-component vector of float)
|
||||
0:18 texture ( global 4-component vector of float)
|
||||
0:18 's2DA' ( uniform sampler2DArray)
|
||||
0:18 'v3' ( temp 3-component vector of float)
|
||||
0:19 move second child to first child ( temp 4-component vector of float)
|
||||
0:19 'v4' ( temp 4-component vector of float)
|
||||
0:19 texture ( global 4-component vector of float)
|
||||
0:19 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:19 'v3' ( temp 3-component vector of float)
|
||||
0:20 move second child to first child ( temp 4-component vector of float)
|
||||
0:20 'v4' ( temp 4-component vector of float)
|
||||
0:20 texture ( global 4-component vector of float)
|
||||
0:20 's2DAS' ( uniform sampler2DArrayShadow)
|
||||
0:20 'v4' ( temp 4-component vector of float)
|
||||
0:22 move second child to first child ( temp 4-component vector of float)
|
||||
0:22 'v4' ( temp 4-component vector of float)
|
||||
0:22 texture ( global 4-component vector of float)
|
||||
0:22 's1DA' ( uniform sampler1DArray)
|
||||
0:22 'v2' ( temp 2-component vector of float)
|
||||
0:22 'f' ( temp float)
|
||||
0:23 move second child to first child ( temp 4-component vector of float)
|
||||
0:23 'v4' ( temp 4-component vector of float)
|
||||
0:23 texture ( global 4-component vector of float)
|
||||
0:23 's2DA' ( uniform sampler2DArray)
|
||||
0:23 'v3' ( temp 3-component vector of float)
|
||||
0:23 'f' ( temp float)
|
||||
0:24 move second child to first child ( temp 4-component vector of float)
|
||||
0:24 'v4' ( temp 4-component vector of float)
|
||||
0:24 texture ( global 4-component vector of float)
|
||||
0:24 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:24 'v3' ( temp 3-component vector of float)
|
||||
0:24 'f' ( temp float)
|
||||
0:26 move second child to first child ( temp 4-component vector of float)
|
||||
0:26 'v4' ( temp 4-component vector of float)
|
||||
0:26 textureLod ( global 4-component vector of float)
|
||||
0:26 's1DA' ( uniform sampler1DArray)
|
||||
0:26 'v2' ( temp 2-component vector of float)
|
||||
0:26 'f' ( temp float)
|
||||
0:27 move second child to first child ( temp 4-component vector of float)
|
||||
0:27 'v4' ( temp 4-component vector of float)
|
||||
0:27 textureLod ( global 4-component vector of float)
|
||||
0:27 's2DA' ( uniform sampler2DArray)
|
||||
0:27 'v3' ( temp 3-component vector of float)
|
||||
0:27 'f' ( temp float)
|
||||
0:28 move second child to first child ( temp 4-component vector of float)
|
||||
0:28 'v4' ( temp 4-component vector of float)
|
||||
0:28 textureLod ( global 4-component vector of float)
|
||||
0:28 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:28 'v3' ( temp 3-component vector of float)
|
||||
0:28 'f' ( temp float)
|
||||
0:31 Function Definition: main( ( global void)
|
||||
0:31 Function Parameters:
|
||||
0:33 Sequence
|
||||
0:33 Function Call: foo( ( global void)
|
||||
0:? Linker Objects
|
||||
0:? 's1DA' ( uniform sampler1DArray)
|
||||
0:? 's2DA' ( uniform sampler2DArray)
|
||||
0:? 's1DAS' ( uniform sampler1DArrayShadow)
|
||||
0:? 's2DAS' ( uniform sampler2DArrayShadow)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue