mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Compile HLSL shaders at runtime in test_create_compute_pipeline_state().
This commit is contained in:
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
@@ -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};
|
||||
|
Reference in New Issue
Block a user