Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing pipeline binaries struct entry #1811

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions framework/encode/vulkan_state_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,36 @@ 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(count);
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
Loading