mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
[vendor:directx/d3d11] Added CalcSubresource helper macro
This commit is contained in:
5
vendor/directx/d3d11/d3d11.odin
vendored
5
vendor/directx/d3d11/d3d11.odin
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user