-
Notifications
You must be signed in to change notification settings - Fork 6
GPU examples #23
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
base: main
Are you sure you want to change the base?
GPU examples #23
Conversation
if there should be a rustfmt file just add a rustfmt file |
* use workspace root for content dir
Sorry; I can see how that'd come off as catty. I meant it as an explanation for a kind of pointless change. I don't think the file's actually required by rustfmt itself, only by my editor extension. |
I'm not the lead but the crates are using 2021 edition, so there should probably be a rustfmt that configures for that. |
Looks good so far! Thank you for doing this. I don't think the examples should require the |
The examples fail here (macos) with |
* the color_target_descriptions array needs its own declaration without this, the slice pointer gets invalidated in release mode which leads to the texture format being some arbitrary value
* now I'm paranoid about as_ptr
This adds / will add some more SDL GPU examples based on the official ones in C.
Notes:
I've been using a justfile setup for managing that in my own project, we could do something similar here,
or I could remove the serde dependencies and hardcode the resource counts.
The serde dependency is also the reason for the new examples directory (based on axum's examples setup).
Remaining todos:
SDL_free
)