vkd3d-utils: Introduce D3DCompile() and D3DCompile2().

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:
Zebediah Figura
2020-09-29 16:14:51 -05:00
committed by Alexandre Julliard
parent 042a2928dc
commit 0df589369e
8 changed files with 211 additions and 1 deletions

View File

@@ -93,3 +93,29 @@ interface ID3D10Blob : IUnknown
typedef ID3D10Blob ID3DBlob;
cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob")
typedef enum _D3D_INCLUDE_TYPE
{
D3D_INCLUDE_LOCAL = 0,
D3D_INCLUDE_SYSTEM,
D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL,
D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM,
D3D_INCLUDE_FORCE_DWORD = 0x7fffffff,
} D3D_INCLUDE_TYPE;
[
object,
local,
]
interface ID3DInclude
{
HRESULT Open(D3D_INCLUDE_TYPE include_type, const char *filename, const void *parent_data, const void **data,
UINT *size);
HRESULT Close(const void *data);
}
typedef struct _D3D_SHADER_MACRO
{
const char *Name;
const char *Definition;
} D3D_SHADER_MACRO;