From 7ecaa41f4de4fe9e355fba7a7f44dcac346c25d4 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 8 Jun 2026 08:46:09 +0100 Subject: [PATCH] Fix procedures that use the DXGI `link_prefix` --- vendor/directx/dxgi/dxgi.odin | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vendor/directx/dxgi/dxgi.odin b/vendor/directx/dxgi/dxgi.odin index 8865a5f7c..e4849f80d 100644 --- a/vendor/directx/dxgi/dxgi.odin +++ b/vendor/directx/dxgi/dxgi.odin @@ -39,10 +39,15 @@ foreign dxgi { CreateDXGIFactory :: proc(riid: ^IID, ppFactory: ^rawptr) -> HRESULT --- CreateDXGIFactory1 :: proc(riid: ^IID, ppFactory: ^rawptr) -> HRESULT --- CreateDXGIFactory2 :: proc(Flags: CREATE_FACTORY, riid: ^IID, ppFactory: ^rawptr) -> HRESULT --- - DXGIGetDebugInterface1 :: proc(Flags: u32, riid: ^IID, pDebug: ^rawptr) -> HRESULT --- +} + +@(default_calling_convention="system", link_prefix="DXGI") +foreign dxgi { + GetDebugInterface1 :: proc(Flags: u32, riid: ^IID, pDebug: ^rawptr) -> HRESULT --- DeclareAdapterRemovalSupport :: proc() -> HRESULT --- } + STANDARD_MULTISAMPLE_QUALITY_PATTERN :: 0xffffffff CENTER_MULTISAMPLE_QUALITY_PATTERN :: 0xfffffffe FORMAT_DEFINED :: 1