mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/hlsl: Add tests for SV_DepthLessEqual and SV_DepthGreaterEqual.
This commit is contained in:
committed by
Alexandre Julliard
parent
b68a9ae3ec
commit
7eeca3fa39
Notes:
Alexandre Julliard
2024-04-19 22:27:07 +02:00
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/777
@@ -468,6 +468,11 @@ static void d3d12_runner_clear(struct shader_runner *r, struct resource *resourc
|
||||
|
||||
switch (resource->type)
|
||||
{
|
||||
case RESOURCE_TYPE_RENDER_TARGET:
|
||||
view = get_cpu_rtv_handle(test_context, runner->rtv_heap, resource->slot);
|
||||
ID3D12GraphicsCommandList_ClearRenderTargetView(command_list, view, (const float *)clear_value, 0, NULL);
|
||||
break;
|
||||
|
||||
case RESOURCE_TYPE_DEPTH_STENCIL:
|
||||
view = get_cpu_dsv_handle(test_context, runner->dsv_heap, 0);
|
||||
ID3D12GraphicsCommandList_ClearDepthStencilView(command_list, view,
|
||||
|
||||
Reference in New Issue
Block a user