mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
[vendor:directx/d3d11] Added CalcSubresource helper macro
This commit is contained in:
Vendored
+5
@@ -15,6 +15,7 @@ GUID :: dxgi.GUID
|
|||||||
IID :: dxgi.IID
|
IID :: dxgi.IID
|
||||||
SIZE_T :: dxgi.SIZE_T
|
SIZE_T :: dxgi.SIZE_T
|
||||||
BOOL :: dxgi.BOOL
|
BOOL :: dxgi.BOOL
|
||||||
|
UINT :: dxgi.UINT
|
||||||
|
|
||||||
RECT :: dxgi.RECT
|
RECT :: dxgi.RECT
|
||||||
SIZE :: dxgi.SIZE
|
SIZE :: dxgi.SIZE
|
||||||
@@ -5146,3 +5147,7 @@ MESSAGE_ID :: enum u32 {
|
|||||||
TRACKED_WORKLOAD_DISJOINT_FAILURE,
|
TRACKED_WORKLOAD_DISJOINT_FAILURE,
|
||||||
D3D11_5_MESSAGES_END,
|
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