Skip to content
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

Expose SPIRType::ImageType to Rust #170

Merged
merged 2 commits into from
Apr 8, 2021
Merged

Expose SPIRType::ImageType to Rust #170

merged 2 commits into from
Apr 8, 2021

Conversation

Rob2309
Copy link
Contributor

@Rob2309 Rob2309 commented Apr 1, 2021

These changes allow querying the type of an Image/SampledImage resource more effectively. Now you can query

  • The dimension of the Image (1D, 2D, Cube, etc.)
  • The format of the Image, if known
  • How it is accessed (Sampled or read directly)
  • whether it is an array texture
  • ...

Copy link
Owner

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

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

Great, thanks!
bors r+

bors bot added a commit that referenced this pull request Apr 6, 2021
170: Expose SPIRType::ImageType to Rust r=grovesNL a=Rob2309

These changes allow querying the type of an Image/SampledImage resource more effectively. Now you can query
- The dimension of the Image (1D, 2D, Cube, etc.)
- The format of the Image, if known
- How it is accessed (Sampled or read directly)
- whether it is an array texture
- ...



Co-authored-by: Robin Quint <[email protected]>
@bors
Copy link
Contributor

bors bot commented Apr 6, 2021

Timed out.

@grovesNL
Copy link
Owner

grovesNL commented Apr 6, 2021

bors retry

bors bot added a commit that referenced this pull request Apr 6, 2021
170: Expose SPIRType::ImageType to Rust r=grovesNL a=Rob2309

These changes allow querying the type of an Image/SampledImage resource more effectively. Now you can query
- The dimension of the Image (1D, 2D, Cube, etc.)
- The format of the Image, if known
- How it is accessed (Sampled or read directly)
- whether it is an array texture
- ...



Co-authored-by: Robin Quint <[email protected]>
@bors
Copy link
Contributor

bors bot commented Apr 6, 2021

Timed out.

@Rob2309
Copy link
Contributor Author

Rob2309 commented Apr 7, 2021

Oh I forgot to mention, I also exposed the array_size_literal information for the types it applies to. "storage" and "width" fields are also present in the wrapper but not yet exposed to rust, since I had no need for them yet.
Exposing array_size_literal is a breaking change though, since it has to be matched in every spirv::Type match expression.

@grovesNL
Copy link
Owner

grovesNL commented Apr 8, 2021

Sounds good 👍 thanks!

@grovesNL grovesNL merged commit 98d39ab into grovesNL:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants