blob: 4e8673578927b3f9205ac5928d80ecb57227e9f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// debug-fence.cpp
#include "debug-fence.h"
#include "debug-helper-functions.h"
namespace gfx
{
using namespace Slang;
namespace debug
{
Result DebugFence::getSharedHandle(InteropHandle* outHandle)
{
SLANG_GFX_API_FUNC;
return baseObject->getSharedHandle(outHandle);
}
Result DebugFence::getNativeHandle(InteropHandle* outNativeHandle)
{
SLANG_GFX_API_FUNC;
return baseObject->getNativeHandle(outNativeHandle);
}
Result DebugFence::getCurrentValue(uint64_t* outValue)
{
SLANG_GFX_API_FUNC;
return baseObject->getCurrentValue(outValue);
}
Result DebugFence::setCurrentValue(uint64_t value)
{
SLANG_GFX_API_FUNC;
if (value < maxValueToSignal)
{
GFX_DIAGNOSE_ERROR_FORMAT(
"Cannot set fence value (%d) to lower than pending signal value (%d) on the fence.",
value,
maxValueToSignal);
}
return baseObject->setCurrentValue(value);
}
} // namespace debug
} // namespace gfx
|