Skip to content

Commit

Permalink
Add missing pipeline binaries struct entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ziga-lunarg committed Oct 14, 2024
1 parent e7b8da9 commit 1db9109
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions framework/encode/vulkan_state_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,35 @@ class VulkanStateTracker
}
}

void AddStructGroupEntry(
VkDevice parent_handle,
uint32_t count,
VkPipelineBinaryHandlesInfoKHR* handle_structs,
std::function<vulkan_wrappers::PipelineBinaryKHRWrapper*(VkPipelineBinaryHandlesInfoKHR*)> unwrap_struct_handle,
format::ApiCallId create_call_id,
const util::MemoryOutputStream* create_parameter_buffer)
{
assert(handle_structs != nullptr);
assert(create_parameter_buffer != nullptr);

GFXRECON_UNREFERENCED_PARAMETER(unwrap_struct_handle);

if (handle_structs->pPipelineBinaries != nullptr)
{
vulkan_state_info::CreateParameters create_parameters = std::make_shared<util::MemoryOutputStream>(
create_parameter_buffer->GetData(), create_parameter_buffer->GetDataSize());

AddGroupHandles<VkDevice, void*, vulkan_wrappers::PipelineBinaryKHRWrapper, void>(
parent_handle,
nullptr,
handle_structs->pipelineBinaryCount,
handle_structs->pPipelineBinaries,
nullptr,
create_call_id,
create_parameters);
}
}

template <typename Wrapper>
void RemoveEntry(typename Wrapper::HandleType handle)
{
Expand Down

0 comments on commit 1db9109

Please sign in to comment.