mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
D3D12: Fixed crash when PIX is not present. (#3489)
This commit is contained in:
committed by
GitHub
parent
0906e38406
commit
a617e13eeb
@@ -702,9 +702,19 @@ namespace bgfx { namespace d3d12
|
||||
}
|
||||
|
||||
#if BGFX_CONFIG_DEBUG_ANNOTATION && (BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT)
|
||||
PIXEventsThreadInfo* WINAPI stubPIXGetThreadInfo()
|
||||
|
||||
struct StubPIXEventsThreadInfo
|
||||
{
|
||||
return NULL;
|
||||
void* block;
|
||||
void* biasedLimit;
|
||||
void* destination;
|
||||
};
|
||||
|
||||
static StubPIXEventsThreadInfo s_pixEventsThreadInfo = {};
|
||||
|
||||
static struct PIXEventsThreadInfo* WINAPI stubPIXGetThreadInfo()
|
||||
{
|
||||
return (struct PIXEventsThreadInfo*)& s_pixEventsThreadInfo;
|
||||
}
|
||||
|
||||
uint64_t WINAPI stubPIXEventsReplaceBlock(PIXEventsThreadInfo* _threadInfo, bool _getEarliestTime)
|
||||
|
||||
Reference in New Issue
Block a user