HLSL: add .mips[][] operator for texture types
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]
This commit is contained in:
9
Test/hlsl.mip.negative2.frag
Normal file
9
Test/hlsl.mip.negative2.frag
Normal file
@@ -0,0 +1,9 @@
|
||||
Texture2D g_tTex2df4;
|
||||
|
||||
float4 main() : SV_Target0
|
||||
{
|
||||
g_tTex2df4.r[2][uint2(3, 4)]; // '.r' not valid on texture object
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user