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

yakui-vulkan cleanup and simplification #107

Merged
merged 16 commits into from
Dec 1, 2023

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Oct 22, 2023

This should be much easier to use and more composable.

@Ralith Ralith force-pushed the vulkan-updates branch 6 times, most recently from 9909a0a to 6d95688 Compare October 23, 2023 01:51
@LPGhatguy
Copy link
Member

Ideally I think @kanerogers should be the one to review this since he's using the actively Vulkan backend and has a lot more experience with it.

Going forward, I'd be cool setting up CODEOWNERS so both of you can land fixes and features to the backend without waiting on me.

@kanerogers
Copy link
Collaborator

Sorry, I've been away for the last two weeks and have tried not to look at emails!

Will give this a review this week. Happy to be the owner for the Vulkan backend.

Copy link
Collaborator

@kanerogers kanerogers left a comment

Choose a reason for hiding this comment

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

Looks great! So much better - thanks for this, and sorry it took a while to review.

Small thing; just the checking of the render pass configuration.

crates/yakui-vulkan/src/lib.rs Outdated Show resolved Hide resolved
@@ -173,3 +180,164 @@ fn get_filter(yakui_filter: yakui::paint::TextureFilter) -> vk::Filter {
yakui::paint::TextureFilter::Nearest => vk::Filter::NEAREST,
}
}

#[derive(Default)]
pub(crate) struct UploadQueue {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Neat!

@LPGhatguy
Copy link
Member

@Ralith @kanerogers
I invited both of you to have write access on the repo and set up CODEOWNERS and a branch protection rule. That should enable both of yous to review PRs. Kane should be able to approve and then merge this PR all without me involved! 😄

Copy link
Collaborator

@kanerogers kanerogers left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@@ -388,6 +388,7 @@ impl YakuiVulkan {
///
/// ## Safety
/// - `vulkan_context` must be the same as the one used to create this [`YakuiVulkan`] instance
/// - `cmd` must be in rendering state, with viewport and scissor dynamic states set.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was going to quibble on this one with "well we should update the docs to tell the developer they need to.." but unfortunately you were one step ahead of me. 😛

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good pickup. 👍🏻

@Ralith Ralith merged commit 958e2ca into SecondHalfGames:main Dec 1, 2023
2 checks passed
@Ralith Ralith deleted the vulkan-updates branch December 1, 2023 06:04
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