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

Bartwe/sdlgpu enumhardening #163

Closed
wants to merge 102 commits into from

Conversation

bartwe
Copy link

@bartwe bartwe commented Aug 9, 2024

thatcosmonaut and others added 30 commits August 9, 2024 11:16
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com>
Co-authored-by: Zakary Strange <zakarystrange@gmail.com>
Always check return value of VULKAN_INTERNAL_QuerySwapchainSupport(), if 1st call to vkGetPhysicalDeviceSurfacePresentModesKHR() fails then outputDetails->formatsLength is not 0 but outputDetails->formats is still not initialised.
Always free outputDetails->formats on error in VULKAN_INTERNAL_QuerySwapchainSupport().
Use correct type for allocation of commandBuffer->presentDatas.
Do some allocations later to avoid memory leaks on error.
This should clarify the usage of the parameters in the Upload/Download functions.
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com>
@bartwe
Copy link
Author

bartwe commented Aug 9, 2024

Some NDA'd backends may need changes to match the backends listed here, the metal backend has been changed to match but has not been tested.

@bartwe
Copy link
Author

bartwe commented Aug 9, 2024

Also TheSpydog/SDL_gpu_examples#15

@thatcosmonaut thatcosmonaut force-pushed the bartwe/sdlgpu-enumhardening branch from 9618201 to de22d0a Compare August 12, 2024 23:27
@thatcosmonaut
Copy link
Owner

Verifying max values is fine but I don't think 0 values should be invalid.

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.

6 participants