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 VulkanDirectAllocator #1850

Merged
merged 1 commit into from
Nov 11, 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
10 changes: 7 additions & 3 deletions framework/decode/vulkan_resource_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,13 @@ class VulkanResourceAllocator
const ResourceData* allocator_resource_datas,
const MemoryData* allocator_memory_datas) = 0;

// Direct allocation methods that perform memory allocation and resource creation without performing memory
// translation. These methods allow the replay tool to allocate staging resources through the resource allocator so
// that the allocator is aware of all allocations performed at replay.
// Direct allocation methods allocate memory and create resources without performing memory translation, while using
// the replay memory type of the current allocator implementation.
//
// Replay allocates staging resources, which were not created during capture, for operations such as screenshot
// creation and resource initialization during the initial state setup for trimmed files. Allocating staging
// resources through the resource allocator allows the resource allocator to be aware of all memory allocations
// performed for replay.
virtual VkResult CreateBufferDirect(const VkBufferCreateInfo* create_info,
const VkAllocationCallbacks* allocation_callbacks,
VkBuffer* buffer,
Expand Down
Loading