-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
WGPU 0.10 #185
Comments
I kind of want to replace our I'll mull it over. But this was just one of the things I noticed while working on it this morning. |
Taking a brief look, I'm of the opinion, based on a quick 5m thinking, that our current API is fine/better. Maybe we could flatten |
Sort of. I was thinking of something like this for the builder: let builder = PixelsBuilder::new(width, height, &window, surface_config); And to retain some of the niceties of the current API, adding a new util function to create a pub fn surface_config(width: u32, height: u32, format: Option<wgpu::TextureFormat>) -> wgpu::SurfaceConfiguration There's still a distinction between the "surface size" and the "pixel buffer size". And the In short, The reason I want to do this is because we need to maintain a |
@JMS55 The updates I have in #187 so far don't change the builder in the way I was thinking aloud above. I think the only publicly visible change (apart from reexports) is renaming We don't need to make any of the changes described above for this upgrade. But I will create a new ticket for API change ideas. |
No description provided.
The text was updated successfully, but these errors were encountered: