DXGI: Add debug fmt for lengths in structs

This commit is contained in:
gingerBill
2026-06-08 08:57:38 +01:00
parent 626a8e5580
commit 7ab61e4935
2 changed files with 8 additions and 8 deletions

View File

@@ -30,9 +30,9 @@ SIZE :: win32.SIZE
WCHAR :: win32.WCHAR
DWORD :: win32.DWORD
IUnknown :: win32.IUnknown
IUnknown :: win32.IUnknown
IUnknown_VTable :: win32.IUnknown_VTable
LPUNKNOWN :: win32.LPUNKNOWN
LPUNKNOWN :: win32.LPUNKNOWN
@(default_calling_convention="system")
foreign dxgi {
@@ -841,7 +841,7 @@ SWAP_CHAIN_FULLSCREEN_DESC :: struct {
PRESENT_PARAMETERS :: struct {
DirtyRectsCount: u32,
pDirtyRects: [^]RECT,
pDirtyRects: [^]RECT `fmt:"v,DirtyRectsCount"`,
pScrollRect: ^RECT,
pScrollOffset: ^POINT,
}

View File

@@ -27,7 +27,7 @@ INFO_QUEUE_MESSAGE_CATEGORY :: enum u32 {
MISCELLANEOUS = UNKNOWN + 1,
INITIALIZATION = MISCELLANEOUS + 1,
CLEANUP = INITIALIZATION + 1,
COMPILATION = CLEANUP + 1,
COMPILATION = CLEANUP + 1,
STATE_CREATION = COMPILATION + 1,
STATE_SETTING = STATE_CREATION + 1,
STATE_GETTING = STATE_SETTING + 1,
@@ -49,17 +49,17 @@ INFO_QUEUE_MESSAGE :: struct {
Category: INFO_QUEUE_MESSAGE_CATEGORY,
Severity: INFO_QUEUE_MESSAGE_SEVERITY,
ID: INFO_QUEUE_MESSAGE_ID,
pDescription: [^]c.char,
pDescription: [^]c.char `fmt:"q,DescriptionByteLength"`,
DescriptionByteLength: SIZE_T,
}
INFO_QUEUE_FILTER_DESC :: struct {
NumCategories: UINT,
pCategoryList: [^]INFO_QUEUE_MESSAGE_CATEGORY,
pCategoryList: [^]INFO_QUEUE_MESSAGE_CATEGORY `fmt:"v,NumCategories"`,
NumSeverities: UINT,
pSeverityList: [^]INFO_QUEUE_MESSAGE_SEVERITY,
pSeverityList: [^]INFO_QUEUE_MESSAGE_SEVERITY `fmt:"v,NumSeverities"`,
NumIDs: UINT,
pIDList: [^]INFO_QUEUE_MESSAGE_ID,
pIDList: [^]INFO_QUEUE_MESSAGE_ID `fmt:"v,NumIDs"`,
}
INFO_QUEUE_FILTER :: struct {