-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Update wgpu to 0.7, conrod to 0.72, winit to 0.24. #726
Conversation
Yeah doesn't work. Returns the same driver error as before:
|
It seems there is now only Here is the relevant |
The change seems to be because
|
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.
Nice job!
|
||
_ => unimplemented!(), | ||
} | ||
format.describe().block_size as u32 |
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.
Nice find! The docs mention this might only return the same thing on uncompressed textures (not sure if this is relevant for nannou
) -- https://docs.rs/wgpu-types/0.7.0/wgpu_types/struct.TextureFormatInfo.html
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.
Ahhh good point! Hmmm it might be worth opening a dedicated issue and doing a review of the use of format_size_bytes
throughout nannou and how compressed textures might affect handling certain cases in nannou's "extended" texture API. I haven't personally used compressed textures yet, but have been curious about them for a while, especially for use in real-time video decoding formats that support random access like HAP.
@JoshuaBatty would you mind testing this again on macos when you get a chance but with
@danwilhelm good idea, and thanks for the review! I'll address these tomorrow.
@yutannihilation you're right to point out Both this, and the name change of the variant from I think @danwilhelm's suggestion makes sense, where we choose the preference that makes sense for nannou, but try to indicate to users that they can try changing it in the case that they do run into issues. I think the tricky part will be reliably detecting when an error is caused by a "bad" power preference... e.g. @mattheusroxas' error didn't occur until swapchain creation, which is not necessarily related to selecting a GPU based on power preference at all. One small step we can do is document |
@mindtree FWIW changing the default to |
@mitchmindtree
might not be true as |
Hey @mitchmindtree i just tried running some examples with |
@danwilhelm @JoshuaBatty thanks for testing, glad to hear there's no more epic crash!
@yutannihilation Good point - I asked on the wgpu matrix if there was a reason for this but there doesn't seem to be other than that having a default is useful. Will report back if I find out anything that contradicts this. After chatting with kvark on matrix, it's likely that the panic @mattheusroxas is running into is a bug in |
This consists of pretty simple name changes for the most part, however there is some pretty significant restructuring of the
RenderPipelineDescriptor
. This meant quite a few changes in therender_pipeline_builder
module - I tried improving the builder method docs here while I was at it.The
Sampler
binding type now requires that you specify whether or not it usesLinear
filtering for any of its minify, magnify or mipmap filters. Awgpu::sampler_filtering
function was added to make it a little easier to retrieve this bool from theSamplerDescriptor
type. That said, this does require a little extra boilerplate for graphics pipelines that involve a texture sampler. I think thewgpu_image.rs
example is probably the simplest example of how to update for this.@danwilhelm @JoshuaBatty unfortunately (or maybe fortunately?) the new validation checks didn't turn up anything new. I wonder if maybe it was simply a bug in wgpu 0.6 that has since been fixed? Would you mind testing if #719 is still a problem on this branch?
@mattheusroxas the
PowerPreference::Default
variant was removed in the latest version of 0.7. I have a suspicion that the bug you were running into may have been fixed in this latest version of wgpu, so I've tried adding theHighPerformance
preference back. Would you mind testing this branch? You can do so by changing your nannou dependency in your cargo.toml to this:Closes #721.
Closes #719.