mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Add another combined sampler test.
Shader provided by Francisco Casas.
This commit is contained in:
parent
669e85171e
commit
8d946f3c20
@ -16,8 +16,9 @@ filter linear linear linear
|
|||||||
address clamp clamp clamp
|
address clamp clamp clamp
|
||||||
|
|
||||||
[srv 0]
|
[srv 0]
|
||||||
size (2d, 1, 1)
|
size (2d, 2, 2)
|
||||||
0.0 0.0 0.0 1.0
|
0.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0
|
||||||
|
0.0 0.0 1.0 1.0 1.0 0.0 0.0 1.0
|
||||||
|
|
||||||
[srv 1]
|
[srv 1]
|
||||||
size (2d, 1, 1)
|
size (2d, 1, 1)
|
||||||
@ -48,6 +49,22 @@ todo(glsl) draw quad
|
|||||||
probe (0, 0) rgba (0, 0, 0, 1)
|
probe (0, 0) rgba (0, 0, 0, 1)
|
||||||
|
|
||||||
|
|
||||||
|
[pixel shader]
|
||||||
|
sampler sam;
|
||||||
|
|
||||||
|
float v;
|
||||||
|
|
||||||
|
float4 main() : sv_target
|
||||||
|
{
|
||||||
|
return tex2D(sam, float2(0, 0)) + v;
|
||||||
|
}
|
||||||
|
|
||||||
|
[test]
|
||||||
|
uniform 0 float4 0.5 0.0 0.0 0.0
|
||||||
|
todo(glsl) draw quad
|
||||||
|
probe (0, 0) rgba (0.5, 0.5, 0.5, 1.5)
|
||||||
|
|
||||||
|
|
||||||
% On sm4, textures for new separated samplers are allocated before regular textures.
|
% On sm4, textures for new separated samplers are allocated before regular textures.
|
||||||
% On sm1, textures for new combined samplers are allocated before regular samplers.
|
% On sm1, textures for new combined samplers are allocated before regular samplers.
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
|
Loading…
Reference in New Issue
Block a user