mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Add support for running shader tests with a custom vertex shader.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
71db328d38
commit
52223250d7
@@ -434,7 +434,7 @@ static void d3d11_runner_draw_quad(struct shader_runner *r)
|
||||
|
||||
if (!runner->vs)
|
||||
{
|
||||
ID3D10Blob *vs_code = compile_shader(vs_source, "vs_4_0");
|
||||
ID3D10Blob *vs_code = compile_shader(runner->r.vs_source ? runner->r.vs_source : vs_source, "vs_4_0");
|
||||
|
||||
hr = ID3D11Device_CreateVertexShader(device, ID3D10Blob_GetBufferPointer(vs_code),
|
||||
ID3D10Blob_GetBufferSize(vs_code), NULL, &runner->vs);
|
||||
|
||||
Reference in New Issue
Block a user