Merge pull request #2791 from ftphikari/master

[core:sys/windows] Added couple of procedures
This commit is contained in:
gingerBill
2023-09-15 11:22:30 +01:00
committed by GitHub
2 changed files with 20 additions and 0 deletions
+5
View File
@@ -15,6 +15,7 @@ GUID :: dxgi.GUID
IID :: dxgi.IID
SIZE_T :: dxgi.SIZE_T
BOOL :: dxgi.BOOL
UINT :: dxgi.UINT
RECT :: dxgi.RECT
SIZE :: dxgi.SIZE
@@ -5146,3 +5147,7 @@ MESSAGE_ID :: enum u32 {
TRACKED_WORKLOAD_DISJOINT_FAILURE,
D3D11_5_MESSAGES_END,
}
CalcSubresource :: #force_inline proc "contextless" (MipSlice: UINT, ArraySlice: UINT, MipLevels: UINT) -> UINT {
return MipSlice + ArraySlice * MipLevels
}