From 4a6c6cd3981db94dffffed315bb31f4c25443f39 Mon Sep 17 00:00:00 2001 From: Karl Zylinski Date: Sun, 8 Jun 2025 00:11:31 +0200 Subject: [PATCH] Fixed broken bindings of ICompiler and ICompiler2. See https://learn.microsoft.com/en-us/windows/win32/api/dxcapi/ns-dxcapi-idxccompiler and https://learn.microsoft.com/en-us/windows/win32/api/dxcapi/ns-dxcapi-idxccompiler2 for correct signatures. --- vendor/directx/dxc/dxcapi.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/directx/dxc/dxcapi.odin b/vendor/directx/dxc/dxcapi.odin index 23dbc8f30..96a925ef9 100644 --- a/vendor/directx/dxc/dxcapi.odin +++ b/vendor/directx/dxc/dxcapi.odin @@ -194,7 +194,7 @@ ICompiler_VTable :: struct { using iunknown_vtable: IUnknown_VTable, Compile: proc "system" ( this: ^ICompiler, - pSource: ^Buffer, + pSource: ^IBlob, pSourceName: wstring, pEntryPoint: wstring, pTargetProfile: wstring, @@ -206,7 +206,7 @@ ICompiler_VTable :: struct { ppResult: ^^IOperationResult) -> HRESULT, Preprocess: proc "system" ( this: ^ICompiler, - pSource: ^Buffer, + pSource: ^IBlob, pSourceName: wstring, pArguments: [^]wstring, argCount: u32, @@ -227,7 +227,7 @@ ICompiler2_VTable :: struct { using idxccompiler_vtable: ^ICompiler_VTable, CompileWithDebug: proc "system" ( this: ^ICompiler2, - pSource: ^Buffer, + pSource: ^IBlob, pSourceName: wstring, pEntryPoint: wstring, pTargetProfile: wstring,