mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-27 13:10:37 +00:00
726bf96a72
This implements mytex.mips[mip][coord] for texture types. There is some error testing, but not comprehensive. The constructs can be nested, e.g in this case the inner .mips is parsed before the completion of the outer [][] operator. tx.mips[tx.mips[a][b].x][c]
75 lines
2.5 KiB
Plaintext
75 lines
2.5 KiB
Plaintext
hlsl.mip.negative2.frag
|
|
ERROR: 0:5: 'r' : unexpected operator on texture type: uniform texture2D
|
|
ERROR: 1 compilation errors. No code generated.
|
|
|
|
|
|
Shader version: 500
|
|
gl_FragCoord origin is upper left
|
|
ERROR: node is still EOpNull!
|
|
0:4 Function Definition: @main( ( temp 4-component vector of float)
|
|
0:4 Function Parameters:
|
|
0:? Sequence
|
|
0:5 direct index ( temp float)
|
|
0:5 textureFetch ( temp 4-component vector of float)
|
|
0:5 'g_tTex2df4' ( uniform texture2D)
|
|
0:5 Constant:
|
|
0:5 2 (const int)
|
|
0:5 Constant:
|
|
0:5 0 (const int)
|
|
0:? Constant:
|
|
0:? 3 (const uint)
|
|
0:? 4 (const uint)
|
|
0:7 Branch: Return with expression
|
|
0:7 Constant:
|
|
0:7 0.000000
|
|
0:7 0.000000
|
|
0:7 0.000000
|
|
0:7 0.000000
|
|
0:4 Function Definition: main( ( temp void)
|
|
0:4 Function Parameters:
|
|
0:? Sequence
|
|
0:4 move second child to first child ( temp 4-component vector of float)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
0:4 Function Call: @main( ( temp 4-component vector of float)
|
|
0:? Linker Objects
|
|
0:? 'g_tTex2df4' ( uniform texture2D)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
Shader version: 500
|
|
gl_FragCoord origin is upper left
|
|
ERROR: node is still EOpNull!
|
|
0:4 Function Definition: @main( ( temp 4-component vector of float)
|
|
0:4 Function Parameters:
|
|
0:? Sequence
|
|
0:5 direct index ( temp float)
|
|
0:5 textureFetch ( temp 4-component vector of float)
|
|
0:5 'g_tTex2df4' ( uniform texture2D)
|
|
0:5 Constant:
|
|
0:5 2 (const int)
|
|
0:5 Constant:
|
|
0:5 0 (const int)
|
|
0:? Constant:
|
|
0:? 3 (const uint)
|
|
0:? 4 (const uint)
|
|
0:7 Branch: Return with expression
|
|
0:7 Constant:
|
|
0:7 0.000000
|
|
0:7 0.000000
|
|
0:7 0.000000
|
|
0:7 0.000000
|
|
0:4 Function Definition: main( ( temp void)
|
|
0:4 Function Parameters:
|
|
0:? Sequence
|
|
0:4 move second child to first child ( temp 4-component vector of float)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
0:4 Function Call: @main( ( temp 4-component vector of float)
|
|
0:? Linker Objects
|
|
0:? 'g_tTex2df4' ( uniform texture2D)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
|
|
SPIR-V is not generated for failed compile or link
|