Skip to content
Snippets Groups Projects
Commit 1af662ae authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

tests: Add RWBuffer writing test.

parent 66dab357
Branches
Tags
1 merge request!193vkd3d-shader/hlsl: Add support for writing RWStructuredBuffer declarations.
[require]
shader model >= 5.0
% UAVs are implicitly allocated starting from the highest render target slot.
% They cannot overlap render target slots, and also cannot be allocated any
% lower than the highest render target.
% This ceases to be true with shader model 5.1.
[render target 1]
format r32g32b32a32 float
size (640, 480)
[pixel shader]
struct s
{
......@@ -78,3 +87,21 @@ float4 main() : sv_target1
{
return 0;
}
[buffer uav 2]
size (1, 1)
0.1 0.2 0.3 0.4
[pixel shader]
RWBuffer<float4> u : register(u2);
float4 main() : sv_target1
{
u[0] = float4(11.1, 12.2, 13.3, 14.4);
return 0;
}
[test]
draw quad
probe buffer uav 2 (0, 0) rgba (11.1, 12.2, 13.3, 14.4)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment