grovesNL / spirv_cross

Safe Rust wrapper around SPIRV-Cross
Apache License 2.0
86 stars 42 forks source link

Expose SPIRType::ImageType to Rust #170

Closed Rob2309 closed 3 years ago

Rob2309 commented 3 years ago

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

bors[bot] commented 3 years ago

Timed out.

grovesNL commented 3 years ago

bors retry

bors[bot] commented 3 years ago

Timed out.

Rob2309 commented 3 years ago

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 commented 3 years ago

Sounds good :+1: thanks!