Skip to content

Commit 4fd1bd2

Browse files
Fixed error in debug macros
1 parent f362628 commit 4fd1bd2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Graphics/GraphicsEngineD3D12/include/ShaderResourceCacheD3D12.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
//
3333
//
3434
// __________________________________________________________
35-
// m_pMemory | m_pResources, m_NumResources |
35+
// m_pMemory | m_pResources, m_NumResources == m |
3636
// | | |
3737
// V | V
3838
// | RootTable[0] | .... | RootTable[Nrt-1] | Res[0] | ... | Res[n-1] | .... | Res[0] | ... | Res[m-1] |
3939
// | A \
4040
// | | \
4141
// |________________________________________________| \RefCntAutoPtr
42-
// m_pResources, m_NumResources \_________
42+
// m_pResources, m_NumResources == n \_________
4343
// | Object |
4444
// ---------
4545
//
@@ -231,7 +231,7 @@ class ShaderResourceCacheD3D12
231231
// variable assignments for a shader. It is also not assigned to root views
232232
if( RootParam.m_TableStartOffset != InvalidDescriptorOffset )
233233
{
234-
VERIFY(RootParam.m_TableStartOffset + OffsetFromTableStart < RootParam.m_NumResources, "Offset is out of range");
234+
VERIFY(OffsetFromTableStart < RootParam.m_NumResources, "Offset is out of range");
235235
if( HeapType == D3D12_DESCRIPTOR_HEAP_TYPE_SAMPLER )
236236
{
237237
VERIFY_EXPR(!m_SamplerHeapSpace.IsNull());
@@ -257,7 +257,7 @@ class ShaderResourceCacheD3D12
257257
{
258258
auto &RootParam = GetRootTable(RootParamInd);
259259
VERIFY(RootParam.m_TableStartOffset != InvalidDescriptorOffset, "GPU descriptor handle must never be requested for dynamic resources");
260-
VERIFY(RootParam.m_TableStartOffset + OffsetFromTableStart < RootParam.m_NumResources, "Offset is out of range");
260+
VERIFY(OffsetFromTableStart < RootParam.m_NumResources, "Offset is out of range");
261261

262262
D3D12_GPU_DESCRIPTOR_HANDLE GPUDescriptorHandle = {0};
263263
VERIFY( HeapType == RootParam.DbgGetHeapType(), "Invalid descriptor heap type");

0 commit comments

Comments
 (0)