mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Test specifying a UAV address as an in/out parameter to a function.
This commit is contained in:
parent
3fbe272659
commit
22a1a478ea
Notes:
Alexandre Julliard
2023-01-13 22:23:38 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/47
@ -144,6 +144,7 @@ vkd3d_shader_tests = \
|
||||
tests/trigonometry.shader_test \
|
||||
tests/uav.shader_test \
|
||||
tests/uav-load.shader_test \
|
||||
tests/uav-out-param.shader_test \
|
||||
tests/writemask-assignop-0.shader_test \
|
||||
tests/writemask-assignop-1.shader_test \
|
||||
tests/writemask-assignop-2.shader_test \
|
||||
|
27
tests/uav-out-param.shader_test
Normal file
27
tests/uav-out-param.shader_test
Normal file
@ -0,0 +1,27 @@
|
||||
[require]
|
||||
shader model >= 5.0
|
||||
|
||||
[uav 0]
|
||||
format r32g32b32a32 float
|
||||
size (1, 1)
|
||||
|
||||
0.1 0.2 0.3 0.4
|
||||
|
||||
[compute shader todo]
|
||||
|
||||
RWTexture2D<float4> u;
|
||||
|
||||
void func(inout float4 f)
|
||||
{
|
||||
f.xz += 0.1;
|
||||
}
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main()
|
||||
{
|
||||
func(u[uint2(0, 0)].yzwx);
|
||||
}
|
||||
|
||||
[test]
|
||||
todo dispatch 1 1 1
|
||||
todo probe uav 0 (0, 0) rgba (0.1, 0.3, 0.3, 0.5)
|
Loading…
x
Reference in New Issue
Block a user