mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader: Enable DXIL support in the default configuration.
This commit is contained in:
Notes:
Henri Verbeet
2025-02-24 16:26:28 +01:00
Approved-by: Conor McCarthy (@cmccarthy) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1371
@@ -29,21 +29,6 @@
|
||||
|
||||
#include <locale.h>
|
||||
|
||||
static bool check_dxil_support(void)
|
||||
{
|
||||
const enum vkd3d_shader_source_type *source_types;
|
||||
unsigned int count, i;
|
||||
|
||||
source_types = vkd3d_shader_get_supported_source_types(&count);
|
||||
for (i = 0; i < count; ++i)
|
||||
{
|
||||
if (source_types[i] == VKD3D_SHADER_SOURCE_DXBC_DXIL)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void test_invalid_shaders(void)
|
||||
{
|
||||
struct vkd3d_shader_compile_info info;
|
||||
@@ -949,7 +934,7 @@ static void test_scan_signatures(void)
|
||||
vkd3d_test_pop_context();
|
||||
}
|
||||
|
||||
if (!check_dxil_support() || !(compiler = dxcompiler_create()))
|
||||
if (!(compiler = dxcompiler_create()))
|
||||
{
|
||||
skip("DXIL tests not supported.\n");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user