mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 15:06:32 +00:00
Expose raw pushconstants values as part of vulkan pipeline state
* Not used directly in the UI, but can be useful for script access
This commit is contained in:
@@ -734,6 +734,9 @@ struct State
|
||||
DOCUMENT("A :class:`VKPipeline` with the currently bound graphics pipeline, if any.");
|
||||
Pipeline graphics;
|
||||
|
||||
DOCUMENT("A ``bytes`` containing the raw push constant data.");
|
||||
bytebuf pushconsts;
|
||||
|
||||
DOCUMENT("A :class:`VKInputAssembly` describing the input assembly stage.");
|
||||
InputAssembly inputAssembly;
|
||||
DOCUMENT("A :class:`VKVertexInput` describing the vertex input stage.");
|
||||
|
||||
@@ -802,6 +802,10 @@ void VulkanReplay::SavePipelineState()
|
||||
|
||||
m_VulkanPipelineState = VKPipe::State();
|
||||
|
||||
m_VulkanPipelineState.pushconsts.resize(ARRAY_COUNT(state.pushconsts));
|
||||
memcpy(m_VulkanPipelineState.pushconsts.data(), state.pushconsts,
|
||||
m_VulkanPipelineState.pushconsts.size());
|
||||
|
||||
// General pipeline properties
|
||||
m_VulkanPipelineState.compute.pipelineResourceId = rm->GetOriginalID(state.compute.pipeline);
|
||||
m_VulkanPipelineState.graphics.pipelineResourceId = rm->GetOriginalID(state.graphics.pipeline);
|
||||
|
||||
@@ -2048,6 +2048,8 @@ void DoSerialise(SerialiserType &ser, VKPipe::State &el)
|
||||
SERIALISE_MEMBER(compute);
|
||||
SERIALISE_MEMBER(graphics);
|
||||
|
||||
SERIALISE_MEMBER(pushconsts);
|
||||
|
||||
SERIALISE_MEMBER(inputAssembly);
|
||||
SERIALISE_MEMBER(vertexInput);
|
||||
|
||||
@@ -2069,7 +2071,7 @@ void DoSerialise(SerialiserType &ser, VKPipe::State &el)
|
||||
|
||||
SERIALISE_MEMBER(images);
|
||||
|
||||
SIZE_CHECK(1312);
|
||||
SIZE_CHECK(1328);
|
||||
}
|
||||
|
||||
#pragma endregion Vulkan pipeline state
|
||||
|
||||
Reference in New Issue
Block a user