grovesNL / spirv_cross

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

Texture data, arrayed/depth? #133

Closed cheako closed 4 years ago

cheako commented 4 years ago

https://github.com/KhronosGroup/SPIRV-Cross/issues/1281

I see https://github.com/grovesNL/spirv_cross/blob/master/spirv_cross/src/wrapper.cpp#L370 and it look kindof empty. Shouldn't there be a lot more going on? I only want arrayed for now.

Edit: I actually can assume this for my project.

grovesNL commented 4 years ago

Could you clarify which parts are missing? We can update the wrapper to expose anything else we need

cheako commented 4 years ago

That's what I'm asking!

I looked closer at the SPIRv docs and it looks like most of the ImageType struct is just bool. For my use case the arrayed member is the important part.

grovesNL commented 4 years ago

Do we need to expose something else?

cheako commented 4 years ago

Good question.

grovesNL commented 4 years ago

It sounds like this is working ok so I'll close this for now. Please let me know if it's not working for you and we could reopen this.