Skip to content

Explicit resource tracking for command buffers.#151

Merged
crud89 merged 5 commits intomainfrom
cb-resource-tracking
May 22, 2025
Merged

Explicit resource tracking for command buffers.#151
crud89 merged 5 commits intomainfrom
cb-resource-tracking

Conversation

@crud89
Copy link
Copy Markdown
Owner

@crud89 crud89 commented May 22, 2025

Describe the pull request

When working with temporary resources, it is often times intricate and difficult to manage their lifetime, they need to wait for the command buffer to finish execution before being able to safely release them. Command buffers already provide an implicit tracking mechanism for transferred resources. However, dynamic buffers don't need to be transferred and thus cannot be passed to this collection. This PR adds a track method to command buffers, which allows them to explicitly track a resource. The D3D12 mip-map blitter makes use of this to track the parameter sets.

@crud89 crud89 added this to the Alpha #04 milestone May 22, 2025
@crud89 crud89 self-assigned this May 22, 2025
@crud89 crud89 added Vulkan πŸŒ‹ The issue involves the Vulkan backend. DX12 ❎ The issue involves the DX12 backend. labels May 22, 2025
@crud89 crud89 added this to LiteFX May 22, 2025
@crud89 crud89 moved this to v0.4.1 in LiteFX May 22, 2025
@crud89 crud89 moved this from v0.4.1 to In Progress in LiteFX May 22, 2025
@crud89 crud89 marked this pull request as ready for review May 22, 2025 09:34
@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented May 22, 2025

Run: checks

@crud89
Copy link
Copy Markdown
Owner Author

crud89 commented May 22, 2025

Run: checks.

@crud89 crud89 merged commit af046ba into main May 22, 2025
9 checks passed
@crud89 crud89 deleted the cb-resource-tracking branch May 22, 2025 10:47
@crud89 crud89 moved this from In Progress to v0.4.1 in LiteFX May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DX12 ❎ The issue involves the DX12 backend. Vulkan πŸŒ‹ The issue involves the Vulkan backend.

Projects

Status: v0.4.1

Development

Successfully merging this pull request may close these issues.

1 participant