d3d12: Fix sampler descriptor stride in UploadTextures.
This commit is contained in:
@@ -881,7 +881,7 @@ size_t D3D12GSRender::UploadTextures(ID3D12GraphicsCommandList *cmdlist)
|
|||||||
}
|
}
|
||||||
m_device->CreateSampler(&getSamplerDesc(m_textures[i]),
|
m_device->CreateSampler(&getSamplerDesc(m_textures[i]),
|
||||||
CD3DX12_CPU_DESCRIPTOR_HANDLE(getCurrentResourceStorage().m_samplerDescriptorHeap[getCurrentResourceStorage().m_samplerDescriptorHeapIndex]->GetCPUDescriptorHandleForHeapStart())
|
CD3DX12_CPU_DESCRIPTOR_HANDLE(getCurrentResourceStorage().m_samplerDescriptorHeap[getCurrentResourceStorage().m_samplerDescriptorHeapIndex]->GetCPUDescriptorHandleForHeapStart())
|
||||||
.Offset((UINT)getCurrentResourceStorage().m_currentSamplerIndex + (UINT)usedTexture, g_descriptorStrideSRVCBVUAV));
|
.Offset((UINT)getCurrentResourceStorage().m_currentSamplerIndex + (UINT)usedTexture, g_descriptorStrideSamplers));
|
||||||
|
|
||||||
usedTexture++;
|
usedTexture++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user