@@ -575,8 +575,8 @@ D3D12APIWrapper::D3D12APIWrapper(WrappedID3D12Device *device, const DXIL::Progra
575575 m_QueuedMathOpIndex(0 ),
576576 m_QueuedSampleGatherOpIndex(0 ),
577577 m_MathOpResultOffset(0 ),
578- m_MaxQueuedOps(D3D12DebugManager ::MAX_SHADER_DEBUG_QUEUED_OPS),
579- m_SampleGatherOpResultsStart(D3D12DebugManager ::MAX_SHADER_DEBUG_QUEUED_OPS *
578+ m_MaxQueuedOps(ShaderDebugConstants ::MAX_SHADER_DEBUG_QUEUED_OPS),
579+ m_SampleGatherOpResultsStart(ShaderDebugConstants ::MAX_SHADER_DEBUG_QUEUED_OPS *
580580 m_MathOpResultByteSize)
581581{
582582 // Create the storage layout for the constant buffers
@@ -1626,8 +1626,13 @@ bool D3D12APIWrapper::QueueMathIntrinsic(DXIL::DXOp dxOp, const ShaderVariable &
16261626 return false ;
16271627 }
16281628
1629- return D3D12ShaderDebug::QueueMathIntrinsic (false , m_Device, cmdList, mathOp, input,
1630- m_QueuedMathOpIndex++);
1629+ if (D3D12ShaderDebug::QueueMathIntrinsic (false , m_Device, cmdList, mathOp, input,
1630+ m_QueuedMathOpIndex))
1631+ {
1632+ m_QueuedMathOpIndex++;
1633+ return true ;
1634+ }
1635+ return false ;
16311636}
16321637
16331638// Must be called from the replay manager thread (the debugger thread)
@@ -1682,10 +1687,15 @@ bool D3D12APIWrapper::QueueSampleGather(DXIL::DXOp dxOp, SampleGatherResourceDat
16821687
16831688 const char *opString = ToStr (dxOp).c_str ();
16841689 uint8_t swizzle[4 ] = {0 , 1 , 2 , 3 };
1685- return D3D12ShaderDebug::QueueSampleGather (
1686- true , m_Device, m_QueuedOpCmdList, sampleOp, resourceData, samplerData, uv, ddxCalc, ddyCalc,
1687- texelOffsets, multisampleIndex, lodValue, compareValue, swizzle, gatherChannel, m_ShaderType,
1688- instructionIdx, opString, m_QueuedSampleGatherOpIndex++, sampleRetType);
1690+ if (D3D12ShaderDebug::QueueSampleGather (
1691+ true , m_Device, m_QueuedOpCmdList, sampleOp, resourceData, samplerData, uv, ddxCalc,
1692+ ddyCalc, texelOffsets, multisampleIndex, lodValue, compareValue, swizzle, gatherChannel,
1693+ m_ShaderType, instructionIdx, opString, m_QueuedSampleGatherOpIndex, sampleRetType))
1694+ {
1695+ m_QueuedSampleGatherOpIndex++;
1696+ return true ;
1697+ }
1698+ return false ;
16891699}
16901700
16911701// Must be called from the replay manager thread (the debugger thread)
0 commit comments