-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
9909a0a
to
6d95688
Compare
6d95688
to
5f2c2fe
Compare
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. |
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. |
There was a problem hiding this 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.
@@ -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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat!
5f2c2fe
to
42fa439
Compare
42fa439
to
a47dff5
Compare
@Ralith @kanerogers |
There was a problem hiding this 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. |
There was a problem hiding this comment.
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. 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good pickup. 👍🏻
This should be much easier to use and more composable.