Skip to content

Commit 8a00f2d

Browse files
committed
GPU (Windows): fix compiling on x86-32
1 parent c5c0e54 commit 8a00f2d

File tree

1 file changed

+7
-1
lines changed
  • src/util/windows

1 file changed

+7
-1
lines changed

src/util/windows/nt.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,13 @@ typedef struct _D3DKMT_QUERYSTATISTICS
175175
D3DKMT_QUERYSTATISTICS_QUERY_NODE2 QueryNode2; // in: id of node to get statistics for
176176
};
177177
} D3DKMT_QUERYSTATISTICS;
178-
static_assert(sizeof(D3DKMT_QUERYSTATISTICS) == 0x328, "D3DKMT_QUERYSTATISTICS structure size mismatch");
178+
static_assert(sizeof(D3DKMT_QUERYSTATISTICS) ==
179+
#if _WIN64
180+
0x328
181+
#else
182+
0x320
183+
#endif
184+
, "D3DKMT_QUERYSTATISTICS structure size mismatch");
179185
EXTERN_C _Check_return_ NTSTATUS APIENTRY D3DKMTQueryStatistics(_In_ CONST D3DKMT_QUERYSTATISTICS*);
180186

181187
#define DXGK_MAX_METADATA_NAME_LENGTH 32

0 commit comments

Comments
 (0)