mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
8111268575
* Add Shared/Std140 SSBO process & top-level array elements related process 1.Add process options for shared/std140 ssbo, following ubo process 2.Add IO Variables reflection option, would keep all input/output variables in reflection 3.Add Top-level related process, fix top-level array size issues, following spec 4.Split ssbo/ubo reflection options, merge blowup expanding all into function blowupActiveAggregate to allow other functions keep same entry format. Add options in StandAlone and test symbols. 1. Add options in StandAlone for std140/shared ubo/ssbo and all io variables reflection. 2. Add test for ssbo. When EShReflectionSharedStd140SSBO turns on, generated symbol and output would be different, to remind the difference. Defaultly disabled and nothing would change, nor blocking normal test. * Add options in runtest script, refresh test results. Add options in StandAlone: --reflect-all-io-variables --reflect-shared-std140-ubo --reflect-shared-std140-ssbo refresh test results. Now the index, size of unsized array are expected.
125 lines
7.0 KiB
Plaintext
125 lines
7.0 KiB
Plaintext
420.frag
|
|
ERROR: 0:4: 'redeclaration' : all redeclarations must use the same depth layout on gl_FragDepth
|
|
ERROR: 0:11: 'layout qualifier' : can only apply depth layout to gl_FragDepth
|
|
ERROR: 0:12: 'gl_FragDepth' : cannot redeclare after use
|
|
ERROR: 0:14: 'atomic_uint' : array must be explicitly sized
|
|
ERROR: 0:17: 'imageSize' : required extension not requested: GL_ARB_shader_image_size
|
|
ERROR: 0:54: 'std430' : not supported for this version or the enabled extensions
|
|
ERROR: 0:54: '' : syntax error, unexpected IDENTIFIER, expecting LEFT_BRACE or COMMA or SEMICOLON
|
|
ERROR: 7 compilation errors. No code generated.
|
|
|
|
|
|
Shader version: 420
|
|
Requested GL_ARB_shader_image_size
|
|
Requested GL_ARB_shader_storage_buffer_object
|
|
using depth_any
|
|
ERROR: node is still EOpNull!
|
|
0:6 Function Definition: main( ( global void)
|
|
0:6 Function Parameters:
|
|
0:8 Sequence
|
|
0:8 move second child to first child ( temp float)
|
|
0:8 'gl_FragDepth' ( gl_FragDepth float FragDepth)
|
|
0:8 Constant:
|
|
0:8 0.300000
|
|
0:17 Sequence
|
|
0:17 move second child to first child ( temp 2-component vector of int)
|
|
0:17 'iv2dim' ( global 2-component vector of int)
|
|
0:17 imageQuerySize ( global 2-component vector of int)
|
|
0:17 'i2D' ( writeonly uniform image2D)
|
|
0:19 Sequence
|
|
0:19 move second child to first child ( temp 2-component vector of int)
|
|
0:19 'iv2dim1' ( global 2-component vector of int)
|
|
0:19 imageQuerySize ( global 2-component vector of int)
|
|
0:19 'i2D' ( writeonly uniform image2D)
|
|
0:29 Function Definition: atomicOpPass( ( global void)
|
|
0:29 Function Parameters:
|
|
0:31 Sequence
|
|
0:31 Sequence
|
|
0:31 move second child to first child ( temp int)
|
|
0:31 'origi' ( temp int)
|
|
0:31 AtomicAdd ( global int)
|
|
0:31 atomi: direct index for structure (layout( column_major std430 offset=0) buffer int)
|
|
0:31 'anon@0' (layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer int atomi, layout( column_major std430 offset=4) buffer uint atomu})
|
|
0:31 Constant:
|
|
0:31 0 (const uint)
|
|
0:31 Constant:
|
|
0:31 3 (const int)
|
|
0:32 Sequence
|
|
0:32 move second child to first child ( temp uint)
|
|
0:32 'origu' ( temp uint)
|
|
0:32 AtomicAnd ( global uint)
|
|
0:32 atomu: direct index for structure (layout( column_major std430 offset=4) buffer uint)
|
|
0:32 'anon@0' (layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer int atomi, layout( column_major std430 offset=4) buffer uint atomu})
|
|
0:32 Constant:
|
|
0:32 1 (const uint)
|
|
0:32 Constant:
|
|
0:32 7 (const uint)
|
|
0:33 move second child to first child ( temp int)
|
|
0:33 'origi' ( temp int)
|
|
0:33 AtomicExchange ( global int)
|
|
0:33 atomi: direct index for structure (layout( column_major std430 offset=0) buffer int)
|
|
0:33 'anon@0' (layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer int atomi, layout( column_major std430 offset=4) buffer uint atomu})
|
|
0:33 Constant:
|
|
0:33 0 (const uint)
|
|
0:33 Constant:
|
|
0:33 4 (const int)
|
|
0:34 move second child to first child ( temp uint)
|
|
0:34 'origu' ( temp uint)
|
|
0:34 AtomicCompSwap ( global uint)
|
|
0:34 atomu: direct index for structure (layout( column_major std430 offset=4) buffer uint)
|
|
0:34 'anon@0' (layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer int atomi, layout( column_major std430 offset=4) buffer uint atomu})
|
|
0:34 Constant:
|
|
0:34 1 (const uint)
|
|
0:34 Constant:
|
|
0:34 10 (const uint)
|
|
0:34 Constant:
|
|
0:34 8 (const uint)
|
|
0:? Linker Objects
|
|
0:? 'gl_FragDepth' ( gl_FragDepth float FragDepth)
|
|
0:? 'depth' ( smooth in float)
|
|
0:? 'a' (layout( binding=0 offset=0) uniform unsized 1-element array of atomic_uint)
|
|
0:? 'i2D' ( writeonly uniform image2D)
|
|
0:? 'iv2dim' ( global 2-component vector of int)
|
|
0:? 'iv2dim1' ( global 2-component vector of int)
|
|
0:? 'anon@0' (layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer int atomi, layout( column_major std430 offset=4) buffer uint atomu})
|
|
0:? 'ssboStd430Arr' (layout( binding=2 column_major std430) buffer 2-element array of block{layout( column_major std430 offset=0) buffer int member01, layout( column_major std430 offset=4) buffer 2-element array of int memberArr01, layout( column_major std430 offset=12) buffer unsized 1-element array of int memberUnsizedArr01})
|
|
0:? 'ssboSharedArr' (layout( binding=3 column_major shared) buffer 2-element array of block{layout( column_major shared) buffer int member02, layout( column_major shared) buffer 2-element array of int memberArr02, layout( column_major shared) buffer unsized 1-element array of int memberUnsizedArr02})
|
|
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
Shader version: 420
|
|
Requested GL_ARB_shader_image_size
|
|
Requested GL_ARB_shader_storage_buffer_object
|
|
using depth_any
|
|
ERROR: node is still EOpNull!
|
|
0:6 Function Definition: main( ( global void)
|
|
0:6 Function Parameters:
|
|
0:8 Sequence
|
|
0:8 move second child to first child ( temp float)
|
|
0:8 'gl_FragDepth' ( gl_FragDepth float FragDepth)
|
|
0:8 Constant:
|
|
0:8 0.300000
|
|
0:17 Sequence
|
|
0:17 move second child to first child ( temp 2-component vector of int)
|
|
0:17 'iv2dim' ( global 2-component vector of int)
|
|
0:17 imageQuerySize ( global 2-component vector of int)
|
|
0:17 'i2D' ( writeonly uniform image2D)
|
|
0:19 Sequence
|
|
0:19 move second child to first child ( temp 2-component vector of int)
|
|
0:19 'iv2dim1' ( global 2-component vector of int)
|
|
0:19 imageQuerySize ( global 2-component vector of int)
|
|
0:19 'i2D' ( writeonly uniform image2D)
|
|
0:? Linker Objects
|
|
0:? 'gl_FragDepth' ( gl_FragDepth float FragDepth)
|
|
0:? 'depth' ( smooth in float)
|
|
0:? 'a' (layout( binding=0 offset=0) uniform 1-element array of atomic_uint)
|
|
0:? 'i2D' ( writeonly uniform image2D)
|
|
0:? 'iv2dim' ( global 2-component vector of int)
|
|
0:? 'iv2dim1' ( global 2-component vector of int)
|
|
0:? 'anon@0' (layout( binding=0 column_major std430) buffer block{layout( column_major std430 offset=0) buffer int atomi, layout( column_major std430 offset=4) buffer uint atomu})
|
|
0:? 'ssboStd430Arr' (layout( binding=2 column_major std430) buffer 2-element array of block{layout( column_major std430 offset=0) buffer int member01, layout( column_major std430 offset=4) buffer 2-element array of int memberArr01, layout( column_major std430 offset=12) buffer unsized 1-element array of int memberUnsizedArr01})
|
|
0:? 'ssboSharedArr' (layout( binding=3 column_major shared) buffer 2-element array of block{layout( column_major shared) buffer int member02, layout( column_major shared) buffer 2-element array of int memberArr02, layout( column_major shared) buffer unsized 1-element array of int memberUnsizedArr02})
|
|
|