2021-11-05 19:35:49 +01:00
|
|
|
[sampler 0]
|
|
|
|
filter linear linear linear
|
|
|
|
address clamp clamp clamp
|
|
|
|
|
2024-01-24 16:11:17 -03:00
|
|
|
[srv 0]
|
|
|
|
size (2d, 2, 2)
|
2021-11-05 19:35:49 +01:00
|
|
|
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
|
|
|
|
0.0 0.0 0.0 0.0 1.0 0.0 1.0 0.0
|
|
|
|
|
2024-12-03 17:05:48 -03:00
|
|
|
[pixel shader]
|
2021-11-05 19:35:49 +01:00
|
|
|
sampler s;
|
|
|
|
Texture2D t;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return t.Sample(s, float2(0.5, 0.5));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-12-03 17:05:48 -03:00
|
|
|
todo(msl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe (0, 0) rgba (0.25, 0, 0.25, 0)
|
2021-11-05 19:35:49 +01:00
|
|
|
|
2024-12-03 17:05:48 -03:00
|
|
|
[pixel shader]
|
2021-11-05 19:35:49 +01:00
|
|
|
SamplerState s;
|
|
|
|
Texture2D t;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return t.Sample(s, float2(0.5, 0.5));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-12-03 17:05:48 -03:00
|
|
|
todo(msl) draw quad
|
2024-02-10 13:16:22 -06:00
|
|
|
probe (0, 0) rgba (0.25, 0, 0.25, 0)
|
2023-04-19 19:24:14 +02:00
|
|
|
|
2023-04-26 14:42:17 -04:00
|
|
|
[pixel shader fail]
|
|
|
|
sampler2D s;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return tex3D(s, float3(0.0, 0.0, 0.0));
|
|
|
|
}
|
2022-11-25 20:38:33 -03:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader fail]
|
|
|
|
sampler s;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return tex2D(s, float2(0.0, 0.0)) + tex3D(s, float3(0.0, 0.0, 0.0));
|
|
|
|
}
|
2023-08-25 10:39:21 +02:00
|
|
|
|
|
|
|
[require]
|
|
|
|
options: backcompat
|
|
|
|
|
2024-12-11 23:15:59 -06:00
|
|
|
[pixel shader fail(sm>=5.1) todo(sm>=5.1)]
|
2023-08-25 10:39:21 +02:00
|
|
|
samplerCUBE s;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return texCUBE(s, float3(0.0, 0.0, 0.0));
|
|
|
|
}
|
2023-09-03 19:23:15 +02:00
|
|
|
|
2024-12-11 23:15:59 -06:00
|
|
|
[pixel shader fail(sm>=5.1) todo(sm>=5.1)]
|
2023-09-03 19:23:15 +02:00
|
|
|
sampler1D s;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return tex1D(s, 0.0);
|
|
|
|
}
|
2024-12-04 22:11:12 -03:00
|
|
|
|
2024-12-10 03:30:39 -03:00
|
|
|
[srv 0]
|
|
|
|
size (2d, 3, 3)
|
|
|
|
0.0 0.0 0.0 1.0 1.0 0.0 0.0 1.0 2.0 0.0 0.0 1.0
|
|
|
|
0.0 1.0 0.0 1.0 1.0 1.0 0.0 1.0 2.0 1.0 0.0 1.0
|
|
|
|
0.0 2.0 0.0 1.0 1.0 2.0 0.0 1.0 2.0 2.0 0.0 1.0
|
|
|
|
|
2024-12-18 23:31:01 +01:00
|
|
|
[pixel shader fail(sm>=5.1) todo(sm>=5.1)]
|
2024-12-10 03:30:39 -03:00
|
|
|
sampler s;
|
|
|
|
float4 f;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return tex2Dproj(s, f);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 50.0 50.0 42.0 100
|
2024-12-10 15:01:43 -03:00
|
|
|
todo(msl) draw quad
|
2024-12-10 03:30:39 -03:00
|
|
|
probe (0, 0) rgba(1.0, 1.0, 0, 1.0)
|
|
|
|
uniform 0 float4 0.075 0.025 -42.0 0.1
|
2024-12-10 15:01:43 -03:00
|
|
|
todo(msl) draw quad
|
2024-12-10 03:30:39 -03:00
|
|
|
probe (0, 0) rgba(1.75, 0.25, 0, 1.0)
|
|
|
|
uniform 0 float4 0.5 1.5 0.0 2.0
|
2024-12-10 15:01:43 -03:00
|
|
|
todo(msl) draw quad
|
2024-12-10 03:30:39 -03:00
|
|
|
probe (0, 0) rgba(0.25, 1.75, 0, 1.0)
|
|
|
|
uniform 0 float4 1.0 1.0 0.0 0.0
|
2024-12-10 15:01:43 -03:00
|
|
|
todo(msl) draw quad
|
2024-12-10 03:30:39 -03:00
|
|
|
probe (0, 0) rgba(2.0, 2.0, 0, 1.0)
|
2024-12-04 22:11:12 -03:00
|
|
|
|
|
|
|
[sampler 0]
|
|
|
|
filter linear linear linear
|
|
|
|
address clamp clamp clamp
|
|
|
|
|
|
|
|
[sampler 1]
|
|
|
|
filter linear linear linear
|
|
|
|
address clamp clamp clamp
|
|
|
|
|
|
|
|
[sampler 2]
|
|
|
|
filter linear linear linear
|
|
|
|
address clamp clamp clamp
|
|
|
|
|
|
|
|
[sampler 3]
|
|
|
|
filter linear linear linear
|
|
|
|
address clamp clamp clamp
|
|
|
|
|
|
|
|
[sampler 4]
|
|
|
|
filter linear linear linear
|
|
|
|
address clamp clamp clamp
|
|
|
|
|
|
|
|
[sampler 5]
|
|
|
|
filter linear linear linear
|
|
|
|
address clamp clamp clamp
|
|
|
|
|
|
|
|
[srv 0]
|
|
|
|
size (2d, 1, 1)
|
|
|
|
0.0 0.0 0.0 1.0
|
|
|
|
|
|
|
|
[srv 1]
|
|
|
|
size (2d, 1, 1)
|
|
|
|
1.0 1.0 1.0 1.0
|
|
|
|
|
|
|
|
[srv 2]
|
|
|
|
size (2d, 1, 1)
|
|
|
|
2.0 2.0 2.0 1.0
|
|
|
|
|
|
|
|
[srv 3]
|
|
|
|
size (2d, 1, 1)
|
|
|
|
3.0 3.0 3.0 1.0
|
|
|
|
|
|
|
|
[srv 4]
|
|
|
|
size (2d, 1, 1)
|
|
|
|
4.0 4.0 4.0 1.0
|
|
|
|
|
|
|
|
[srv 5]
|
|
|
|
size (2d, 1, 1)
|
|
|
|
5.0 5.0 5.0 1.0
|
|
|
|
|
|
|
|
|
2024-12-11 23:15:59 -06:00
|
|
|
[pixel shader fail(sm>=5.1) todo(sm>=5.1)]
|
2024-12-04 22:11:12 -03:00
|
|
|
sampler samA;
|
|
|
|
sampler samB[2];
|
|
|
|
sampler samC[3];
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return 100 * tex2D(samC[2], float2(0, 0))
|
|
|
|
+ 10 * tex2D(samB[0], float2(0, 0))
|
|
|
|
+ tex2D(samA, float2(0, 0));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
todo(msl) draw quad
|
2024-12-04 17:17:25 -03:00
|
|
|
if(sm<4) probe (0, 0) rgba(243, 243, 243, 111)
|
2024-12-04 22:11:12 -03:00
|
|
|
if(sm>=4) probe (0, 0) rgba(234, 234, 234, 111)
|