mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-03 16:41:30 +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]
10 lines
153 B
GLSL
10 lines
153 B
GLSL
Texture2D g_tTex2df4;
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
g_tTex2df4.mips.mips[2][uint2(3, 4)]; // error to chain like this
|
|
|
|
return 0;
|
|
}
|
|
|