summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer/debug-fence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/debug-layer/debug-fence.cpp')
-rw-r--r--tools/gfx/debug-layer/debug-fence.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gfx/debug-layer/debug-fence.cpp b/tools/gfx/debug-layer/debug-fence.cpp
index 7ecbfabd7..66c541618 100644
--- a/tools/gfx/debug-layer/debug-fence.cpp
+++ b/tools/gfx/debug-layer/debug-fence.cpp
@@ -31,6 +31,10 @@ Result DebugFence::getCurrentValue(uint64_t* 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);
}