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

Implement SysTexture for SDL_GPU backend #229

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kg
Copy link
Contributor

@kg kg commented Jan 1, 2025

I've tested this locally by using it to create R16_UNORM textures for my dav1dfile test and it worked (with a paired change to FNA to allow me to create a Texture2D instance around a SysTexture handle.)

@kg kg force-pushed the systexture branch 2 times, most recently from 2e04297 to cc443d6 Compare January 1, 2025 18:44
@kg
Copy link
Contributor Author

kg commented Jan 1, 2025

CancelGPUCommandBuffer being commented out is because I can't build locally with those calls in there, the link fails. I'm not sure if it's because something changed on the SDL side or what.

@kg kg marked this pull request as ready for review January 1, 2025 18:46
@kg
Copy link
Contributor Author

kg commented Jan 1, 2025

CancelGPUCommandBuffer being commented out is because I can't build locally with those calls in there, the link fails. I'm not sure if it's because something changed on the SDL side or what.

This is caused by the way cmake (cmake-gui?) and windows and VS interact, if you don't use the .sln file from your Binaries directory to build you end up with stale lib files. So it's not on FNA3D's end.

@flibitijibibo
Copy link
Member

SDL's been updated so this should now be clear to rebase.

@flibitijibibo flibitijibibo marked this pull request as draft January 8, 2025 02:36
…textures

Implement SysTexture for SDL_GPU backend
Add some asserts
Update for typo fix in SDL_GPU headers
@kg
Copy link
Contributor Author

kg commented Jan 8, 2025

Verified again by hand with my 10-bit AV1 player test

@kg kg marked this pull request as ready for review January 8, 2025 20:22
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.

2 participants