mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Write empty SM4 shaders.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
2db8cbc9a7
commit
96d523722d
@@ -844,7 +844,7 @@ static ID3D12PipelineState *create_pipeline_state_(unsigned int line, ID3D12Devi
|
||||
&IID_ID3D12PipelineState, (void **)&pipeline_state);
|
||||
ok_(line)(SUCCEEDED(hr), "Failed to create graphics pipeline state, hr %#x.\n", hr);
|
||||
|
||||
return pipeline_state;
|
||||
return SUCCEEDED(hr) ? pipeline_state : NULL;
|
||||
}
|
||||
|
||||
struct test_context_desc
|
||||
|
@@ -141,6 +141,8 @@ static void parse_test_directive(struct shader_context *context, const char *lin
|
||||
|
||||
pso = create_pipeline_state(context->c.device, context->c.root_signature,
|
||||
context->c.render_target_desc.Format, NULL, &ps, NULL);
|
||||
if (!pso)
|
||||
return;
|
||||
|
||||
ID3D12GraphicsCommandList_SetGraphicsRootSignature(command_list, context->c.root_signature);
|
||||
ID3D12GraphicsCommandList_SetGraphicsRoot32BitConstants(command_list, 0,
|
||||
|
Reference in New Issue
Block a user