mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
aa17d139be
Currently, the compiler requires that dereferences be HLSL_IR_CONSTANT, so that it can compute the offset at compile time. However, scenarios such as this test will produce a dereference with HLSL_IR_EXPR, which will generate an error. Passing this test in particular will require adding support for SM4 relative addressing, as well as support for non-constant indexing in general. Signed-off-by: Ethan Lee <flibitijibibo@gmail.com>
26 lines
556 B
Plaintext
26 lines
556 B
Plaintext
[pixel shader todo]
|
|
uniform float4 f[3];
|
|
uniform float2 i;
|
|
|
|
float4 main() : sv_target
|
|
{
|
|
return f[i.x + i.y];
|
|
}
|
|
|
|
[test]
|
|
uniform 0 float4 1.0 2.0 3.0 4.0
|
|
uniform 4 float4 5.0 6.0 7.0 8.0
|
|
uniform 8 float4 9.0 10.0 11.0 12.0
|
|
uniform 12 float4 0 0 0 0
|
|
todo draw quad
|
|
todo probe all rgba (1.0, 2.0, 3.0, 4.0)
|
|
uniform 12 float4 1 0 0 0
|
|
todo draw quad
|
|
todo probe all rgba (5.0, 6.0, 7.0, 8.0)
|
|
uniform 12 float4 0 1 0 0
|
|
todo draw quad
|
|
todo probe all rgba (5.0, 6.0, 7.0, 8.0)
|
|
uniform 12 float4 1 1 0 0
|
|
todo draw quad
|
|
todo probe all rgba (9.0, 10.0, 11.0, 12.0)
|