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

Adds support for making custom memory allocations and images #252

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ewoudje
Copy link

@ewoudje ewoudje commented Feb 11, 2025

The use I'm using it for is to have external images using a Win32 handle. Because this is very platform specific and niche I instead made a way to import self-made images and memory.

Specifically i exposed the vulkan device, the Allocation struct, allocate_memory and free_memory.
I added 2 functions to the vulkan context for importing memory and textures.
And added select_memory_type as a utility function.

I also added a way to add extensions when creating the context using a new struct PlatformSpecificContextDesc.
Which is used by the new function init_with_platform_desc. The original init function is still the same so it doesn't break anything.

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.

1 participant