mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-27 00:46:36 +00:00
Save used topology BEFORE setting it to point list
This commit is contained in:
@@ -3902,6 +3902,9 @@ void VulkanDebugManager::InitPostVSBuffers(uint32_t frameID, uint32_t eventID)
|
||||
|
||||
// set primitive topology to point list
|
||||
VkPipelineInputAssemblyStateCreateInfo *ia = (VkPipelineInputAssemblyStateCreateInfo *)pipeCreateInfo.pInputAssemblyState;
|
||||
|
||||
VkPrimitiveTopology topo = ia->topology;
|
||||
|
||||
ia->topology = VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
|
||||
|
||||
// enable rasterizer discard
|
||||
@@ -4399,8 +4402,8 @@ void VulkanDebugManager::InitPostVSBuffers(uint32_t frameID, uint32_t eventID)
|
||||
state = prevstate;
|
||||
|
||||
// fill out m_PostVSData
|
||||
m_PostVSData[idx].vsin.topo = pipeCreateInfo.pInputAssemblyState->topology;
|
||||
m_PostVSData[idx].vsout.topo = pipeCreateInfo.pInputAssemblyState->topology;
|
||||
m_PostVSData[idx].vsin.topo = topo;
|
||||
m_PostVSData[idx].vsout.topo = topo;
|
||||
m_PostVSData[idx].vsout.buf = meshBuffer;
|
||||
m_PostVSData[idx].vsout.bufmem = meshMem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user