tests: Compile HLSL shaders at runtime in test_create_compute_pipeline_state().

This commit is contained in:
Giovanni Mascellani
2023-09-09 22:45:28 +02:00
committed by Alexandre Julliard
parent 06399d128a
commit f7354ff9e3
Notes: Alexandre Julliard 2023-09-13 23:18:26 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/337
2 changed files with 33 additions and 12 deletions

View File

@@ -88,6 +88,11 @@ static D3D12_SHADER_BYTECODE shader_bytecode(const DWORD *code, size_t size)
return shader_bytecode;
}
static inline D3D12_SHADER_BYTECODE shader_bytecode_from_blob(ID3D10Blob *blob)
{
return shader_bytecode(ID3D10Blob_GetBufferPointer(blob), ID3D10Blob_GetBufferSize(blob));
}
static void exec_command_list(ID3D12CommandQueue *queue, ID3D12GraphicsCommandList *list)
{
ID3D12CommandList *lists[] = {(ID3D12CommandList *)list};