Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Conversation

@khyperia
Copy link
Contributor

Ticks some more boxes off in #204

@khyperia khyperia requested a review from eddyb as a code owner April 29, 2021 11:56
/// 3D, or Cube, it must have *either* multisampled be true, *or* sampled of Unknown or No.
#[crate::macros::gpu_only]
#[doc(alias = "OpImageQuerySize")]
pub fn query_size<Size: ImageCoordinate<u32, DIM, ARRAYED> + Default>(&self) -> Size {
Copy link
Member

Choose a reason for hiding this comment

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

ImageCoordinate itself could probably require all implementations to also have Default as the only valid image coordinate types are vectors and scalars all of which impl Default.

@khyperia khyperia merged commit 7a6806c into main Apr 30, 2021
@khyperia khyperia deleted the add-image-queries branch April 30, 2021 07:07
XAMPPRocky pushed a commit that referenced this pull request May 3, 2021
* Add shader image query instructions

* Normalize spirv-std src paths in test output

* Fix tests on vulkan
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants