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

Refactor of gpu_allocator to allow for support for more graphics APIs #30

Merged
merged 13 commits into from
Aug 16, 2021

Conversation

manon-traverse
Copy link
Collaborator

One of the main features on the todo list for gpu-allocator is D3D12 support. Since gpu-allocator was originally written for vulkan support, we need to make some changes to support multiple graphics APIs. This PR does all the prep work to add D3D12 support.

One of the big downsides is that it requires changes to the API. This is mainly due to splitting the graphics API agnostic and graphics API specific code.

vb_allocation: Allocation,
ib_allocation: Allocation,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come the SubAllocation got renamed to Allocation? I think this is API churn that we shouldn't really need, and it's also an incorrect name, since the this data still refers to a sub allocation of either a VkMemory or ID3D12Heap.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was that not every allocation returned by the allocator is a sub-allocation (allocations taking an entire block). Since this PR will require API changes I think it's not a bad idea to make this change now instead of another time.

@manon-traverse manon-traverse changed the title Refactor of gpu_allocator to allow for D3D12 support. Refactor of gpu_allocator to allow for support for more graphics APIs Jun 10, 2021
@manon-traverse manon-traverse marked this pull request as ready for review August 13, 2021 15:19
@Jasper-Bekkers Jasper-Bekkers self-requested a review August 13, 2021 15:24
@manon-traverse manon-traverse merged commit 2d12a16 into main Aug 16, 2021
@MarijnS95 MarijnS95 deleted the multi-api-refactor branch August 16, 2021 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants