420Pack: Implement length() on vectors and matrices. Also, tweak line-continuation semantics to understand the extension.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26601 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -13,17 +13,22 @@ ERROR: 0:81: 'textureGatherOffset(...)' : not supported for this version or the
|
||||
ERROR: 0:84: 'textureGatherOffset(...)' : not supported for this version or the enabled extensions
|
||||
ERROR: 0:85: 'textureGatherOffset(...)' : not supported for this version or the enabled extensions
|
||||
WARNING: 0:88: '#extension' : extension is only partially supported: GL_ARB_gpu_shader5
|
||||
WARNING: 0:120: '#extension' : extension is only partially supported: GL_ARB_shading_language_420pack
|
||||
ERROR: 0:123: 'uniform block' : not supported for this version or the enabled extensions
|
||||
ERROR: 0:130: '.' : field selection not allowed on matrix
|
||||
ERROR: 0:130: 'm43' : can't use function syntax on variable
|
||||
ERROR: 0:130: '=' : cannot convert from 'const float' to 'int'
|
||||
ERROR: 0:132: 'gl_MinProgramTexelOffset' : undeclared identifier
|
||||
ERROR: 0:132: 'gl_MaxProgramTexelOffset' : undeclared identifier
|
||||
ERROR: 0:135: 'gl_FogFragCoord' : identifiers starting with "gl_" are reserved
|
||||
ERROR: 0:140: 'int' : must be qualified as flat in
|
||||
ERROR: 0:140: 'redeclaration' : cannot change the type of gl_FogFragCoord
|
||||
ERROR: 21 compilation errors. No code generated.
|
||||
ERROR: 0:120: 'line continuation' : not supported for this version or the enabled extensions
|
||||
WARNING: 0:123: '#extension' : extension is only partially supported: GL_ARB_shading_language_420pack
|
||||
ERROR: 0:126: 'uniform block' : not supported for this version or the enabled extensions
|
||||
ERROR: 0:138: 'gl_MinProgramTexelOffset' : undeclared identifier
|
||||
ERROR: 0:138: 'gl_MaxProgramTexelOffset' : undeclared identifier
|
||||
ERROR: 0:140: 'length' : does not operate on this type: bool
|
||||
ERROR: 0:140: 'boolb' : can't use function syntax on variable
|
||||
ERROR: 0:141: 'length' : does not operate on this type: float
|
||||
ERROR: 0:141: '' : function call, method, or subroutine call expected
|
||||
ERROR: 0:141: '' : no matching overloaded function found
|
||||
ERROR: 0:142: 'length' : incomplete method syntax
|
||||
ERROR: 0:143: 'length' : method does not accept any arguments
|
||||
ERROR: 0:146: 'gl_FogFragCoord' : identifiers starting with "gl_" are reserved
|
||||
ERROR: 0:151: 'int' : must be qualified as flat in
|
||||
ERROR: 0:151: 'redeclaration' : cannot change the type of gl_FogFragCoord
|
||||
ERROR: 26 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 130
|
||||
@@ -300,34 +305,53 @@ ERROR: node is still EOpNull!
|
||||
0:117 0.200000
|
||||
0:117 0.200000
|
||||
0:117 0.200000
|
||||
0:126 Function Definition: bar23444( (void)
|
||||
0:126 Function Parameters:
|
||||
0:129 Function Definition: bar23444( (void)
|
||||
0:129 Function Parameters:
|
||||
0:? Sequence
|
||||
0:129 Sequence
|
||||
0:129 move second child to first child (float)
|
||||
0:129 'a1' (float)
|
||||
0:129 direct index (float)
|
||||
0:129 direct index (3-component vector of float)
|
||||
0:129 'm43' (4X3 matrix of float)
|
||||
0:129 Constant:
|
||||
0:129 3 (const int)
|
||||
0:129 Constant:
|
||||
0:129 1 (const int)
|
||||
0:131 Sequence
|
||||
0:131 move second child to first child (float)
|
||||
0:131 'b' (const (read only) float)
|
||||
0:131 component-wise multiply (float)
|
||||
0:131 Constant:
|
||||
0:131 2.000000
|
||||
0:131 'a1' (float)
|
||||
0:132 move second child to first child (float)
|
||||
0:132 direct index (float)
|
||||
0:132 'a' (3-component vector of float)
|
||||
0:132 Constant:
|
||||
0:132 0 (const int)
|
||||
0:132 add (float)
|
||||
0:132 'gl_MinProgramTexelOffset' (float)
|
||||
0:132 'gl_MaxProgramTexelOffset' (float)
|
||||
0:132 Sequence
|
||||
0:132 move second child to first child (float)
|
||||
0:132 'a1' (float)
|
||||
0:132 direct index (float)
|
||||
0:132 direct index (3-component vector of float)
|
||||
0:132 'm43' (4X3 matrix of float)
|
||||
0:132 Constant:
|
||||
0:132 3 (const int)
|
||||
0:132 Constant:
|
||||
0:132 1 (const int)
|
||||
0:134 Sequence
|
||||
0:134 move second child to first child (int)
|
||||
0:134 'a2' (int)
|
||||
0:134 Constant:
|
||||
0:134 4 (const int)
|
||||
0:135 add second child into first child (int)
|
||||
0:135 'a2' (int)
|
||||
0:135 Constant:
|
||||
0:135 3 (const int)
|
||||
0:136 add second child into first child (int)
|
||||
0:136 'a2' (int)
|
||||
0:136 Constant:
|
||||
0:136 3 (const int)
|
||||
0:137 Sequence
|
||||
0:137 move second child to first child (float)
|
||||
0:137 'b' (const (read only) float)
|
||||
0:137 component-wise multiply (float)
|
||||
0:137 Constant:
|
||||
0:137 2.000000
|
||||
0:137 'a1' (float)
|
||||
0:138 move second child to first child (float)
|
||||
0:138 direct index (float)
|
||||
0:138 'a' (3-component vector of float)
|
||||
0:138 Constant:
|
||||
0:138 0 (const int)
|
||||
0:138 add (float)
|
||||
0:138 'gl_MinProgramTexelOffset' (float)
|
||||
0:138 'gl_MaxProgramTexelOffset' (float)
|
||||
0:140 Constant:
|
||||
0:140 0.000000
|
||||
0:141 Constant:
|
||||
0:141 0.000000
|
||||
0:143 Constant:
|
||||
0:143 1 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'a' (3-component vector of float)
|
||||
0:? 'b' (float)
|
||||
@@ -349,6 +373,7 @@ ERROR: node is still EOpNull!
|
||||
0:? 'Isca' (uniform isamplerCubeArray)
|
||||
0:? 'Usca' (uniform usamplerCubeArray)
|
||||
0:? 'Scas' (uniform samplerCubeArrayShadow)
|
||||
0:? 'x' (int)
|
||||
0:? 'ai' (const 3-element array of int)
|
||||
0:? 10 (const int)
|
||||
0:? 23 (const int)
|
||||
@@ -635,34 +660,53 @@ ERROR: node is still EOpNull!
|
||||
0:117 0.200000
|
||||
0:117 0.200000
|
||||
0:117 0.200000
|
||||
0:126 Function Definition: bar23444( (void)
|
||||
0:126 Function Parameters:
|
||||
0:129 Function Definition: bar23444( (void)
|
||||
0:129 Function Parameters:
|
||||
0:? Sequence
|
||||
0:129 Sequence
|
||||
0:129 move second child to first child (float)
|
||||
0:129 'a1' (float)
|
||||
0:129 direct index (float)
|
||||
0:129 direct index (3-component vector of float)
|
||||
0:129 'm43' (4X3 matrix of float)
|
||||
0:129 Constant:
|
||||
0:129 3 (const int)
|
||||
0:129 Constant:
|
||||
0:129 1 (const int)
|
||||
0:131 Sequence
|
||||
0:131 move second child to first child (float)
|
||||
0:131 'b' (const (read only) float)
|
||||
0:131 component-wise multiply (float)
|
||||
0:131 Constant:
|
||||
0:131 2.000000
|
||||
0:131 'a1' (float)
|
||||
0:132 move second child to first child (float)
|
||||
0:132 direct index (float)
|
||||
0:132 'a' (3-component vector of float)
|
||||
0:132 Constant:
|
||||
0:132 0 (const int)
|
||||
0:132 add (float)
|
||||
0:132 'gl_MinProgramTexelOffset' (float)
|
||||
0:132 'gl_MaxProgramTexelOffset' (float)
|
||||
0:132 Sequence
|
||||
0:132 move second child to first child (float)
|
||||
0:132 'a1' (float)
|
||||
0:132 direct index (float)
|
||||
0:132 direct index (3-component vector of float)
|
||||
0:132 'm43' (4X3 matrix of float)
|
||||
0:132 Constant:
|
||||
0:132 3 (const int)
|
||||
0:132 Constant:
|
||||
0:132 1 (const int)
|
||||
0:134 Sequence
|
||||
0:134 move second child to first child (int)
|
||||
0:134 'a2' (int)
|
||||
0:134 Constant:
|
||||
0:134 4 (const int)
|
||||
0:135 add second child into first child (int)
|
||||
0:135 'a2' (int)
|
||||
0:135 Constant:
|
||||
0:135 3 (const int)
|
||||
0:136 add second child into first child (int)
|
||||
0:136 'a2' (int)
|
||||
0:136 Constant:
|
||||
0:136 3 (const int)
|
||||
0:137 Sequence
|
||||
0:137 move second child to first child (float)
|
||||
0:137 'b' (const (read only) float)
|
||||
0:137 component-wise multiply (float)
|
||||
0:137 Constant:
|
||||
0:137 2.000000
|
||||
0:137 'a1' (float)
|
||||
0:138 move second child to first child (float)
|
||||
0:138 direct index (float)
|
||||
0:138 'a' (3-component vector of float)
|
||||
0:138 Constant:
|
||||
0:138 0 (const int)
|
||||
0:138 add (float)
|
||||
0:138 'gl_MinProgramTexelOffset' (float)
|
||||
0:138 'gl_MaxProgramTexelOffset' (float)
|
||||
0:140 Constant:
|
||||
0:140 0.000000
|
||||
0:141 Constant:
|
||||
0:141 0.000000
|
||||
0:143 Constant:
|
||||
0:143 1 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'a' (3-component vector of float)
|
||||
0:? 'b' (float)
|
||||
@@ -684,6 +728,7 @@ ERROR: node is still EOpNull!
|
||||
0:? 'Isca' (uniform isamplerCubeArray)
|
||||
0:? 'Usca' (uniform usamplerCubeArray)
|
||||
0:? 'Scas' (uniform samplerCubeArrayShadow)
|
||||
0:? 'x' (int)
|
||||
0:? 'ai' (const 3-element array of int)
|
||||
0:? 10 (const int)
|
||||
0:? 23 (const int)
|
||||
|
||||
Reference in New Issue
Block a user