mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/shader-runner: Support SRV buffers.
This commit is contained in:
committed by
Alexandre Julliard
parent
22a0f14a2f
commit
4d855611b7
Notes:
Alexandre Julliard
2024-02-19 22:59:16 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/569
@@ -240,6 +240,12 @@ static struct resource *d3d9_runner_create_resource(struct shader_runner *r, con
|
||||
|
||||
case RESOURCE_TYPE_TEXTURE:
|
||||
{
|
||||
if (params->dimension == RESOURCE_DIMENSION_BUFFER)
|
||||
{
|
||||
fatal_error("Buffer resources are not supported.\n");
|
||||
break;
|
||||
}
|
||||
|
||||
unsigned int src_buffer_offset = 0;
|
||||
|
||||
hr = IDirect3DDevice9_CreateTexture(device, params->width, params->height,
|
||||
@@ -387,6 +393,8 @@ static bool d3d9_runner_draw(struct shader_runner *r,
|
||||
break;
|
||||
|
||||
case RESOURCE_TYPE_TEXTURE:
|
||||
assert(resource->r.dimension != RESOURCE_DIMENSION_BUFFER);
|
||||
|
||||
hr = IDirect3DDevice9_SetTexture(device, resource->r.slot, (IDirect3DBaseTexture9 *)resource->texture);
|
||||
ok(hr == D3D_OK, "Failed to set texture, hr %#lx.\n", hr);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user