mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Code review fixes
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ ID3DInclude_VTable :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Default file includer
|
// Default file includer
|
||||||
D3DCOMPILE_STANDARD_FILE_INCLUDE :: cast(^ID3DInclude)uintptr(1)
|
D3DCOMPILE_STANDARD_FILE_INCLUDE :: (^ID3DInclude)(uintptr(1))
|
||||||
|
|
||||||
|
|
||||||
ID3D11Module :: struct #raw_union {
|
ID3D11Module :: struct #raw_union {
|
||||||
|
|||||||
Vendored
+5
-2
@@ -141,7 +141,10 @@ IDebug1_VTable :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GetDebugInterface: proc "stdcall" (riid: ^IID, ppDebug: ^rawptr) -> HRESULT
|
GET_DEBUG_INTERFACE_PROC :: #type proc "stdcall" (riid: ^IID, ppDebug: ^rawptr) -> HRESULT
|
||||||
|
|
||||||
|
GetDebugInterface: GET_DEBUG_INTERFACE_PROC
|
||||||
|
|
||||||
// Call this to start using GetDebugInterface
|
// Call this to start using GetDebugInterface
|
||||||
debug_interface_init :: proc() -> bool {
|
debug_interface_init :: proc() -> bool {
|
||||||
debug_lib := win32.LoadLibraryW(win32.L("dxgidebug.dll"))
|
debug_lib := win32.LoadLibraryW(win32.L("dxgidebug.dll"))
|
||||||
@@ -154,6 +157,6 @@ debug_interface_init :: proc() -> bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
GetDebugInterface = auto_cast(ptr)
|
GetDebugInterface = cast(GET_DEBUG_INTERFACE_PROC)ptr
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user