mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Extend Optick GPUContextScope() with typeless prototype for runtime selection of graphics API
This commit is contained in:
parent
6769126b14
commit
7c4f41bfd5
1 changed files with 6 additions and 0 deletions
|
@ -796,6 +796,12 @@ struct OPTICK_API GPUContextScope
|
|||
prevContext = SetGpuContext(GPUContext(cmdBuffer, queue, node));
|
||||
}
|
||||
|
||||
// SRS - add typeless void* commandHandle prototype to support runtime selection of graphics API
|
||||
GPUContextScope(void* commandHandle, GPUQueueType queue = GPU_QUEUE_GRAPHICS, int node = 0)
|
||||
{
|
||||
prevContext = SetGpuContext(GPUContext(commandHandle, queue, node));
|
||||
}
|
||||
|
||||
~GPUContextScope()
|
||||
{
|
||||
SetGpuContext(prevContext);
|
||||
|
|
Loading…
Reference in a new issue