Add query_size_lod and query_size methods to SampledImage#281
Add query_size_lod and query_size methods to SampledImage#281LegNeato merged 3 commits intoRust-GPU:mainfrom
Conversation
- Add query_size_lod for non-multisampled sampled images (Sampled=1) - Add query_size for multisampled sampled images - Add missing HasQuerySize trait implementations for Sampled::Yes - Add tests for both methods
|
I used this in a shader and it worked. |
Without this cubemaps were broken...we were returning UVec3 but spirv validation required UVec2.
|
This was broken for cubemaps, pushed a new commit. |
Firestar99
left a comment
There was a problem hiding this comment.
Code looks fine, didn't check the new impl against spec, I'll just assume compiletests would have caught it.
You're missing compiletest for 1D+arrayed, 3d arrayed and buffer images. (And rect images but those are illegal in vulkan iirc, so who cares)
|
@LegNeato how did this merge into main if the run failed? |
|
@Firestar99 No clue! I think it is a github bug because it also seemed to have dropped my updated amended commit that fixed the CI? |
The fix is to add This happens over and over again, and GitHub engineers do not seem to care enough to fix it, offering an obscure workaround instead. |
Fixes #190