microsoft / ShaderConductor

ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages
MIT License
1.76k stars 251 forks source link

Expose access to reflection data #22

Open Jjagg opened 5 years ago

Jjagg commented 5 years ago

Is your feature request related to a problem? Please describe. With the current API it is not possible to get reflection data from built shaders.

Describe the solution you'd like A way of accessing the SPIRV-Cross reflection data (if SPIRV-Cross is used) and DXC reflection data.

Additional context There is an example of how to get DXC reflection data in their tests here, but looks like it's Windows only. SPIRV-Cross has a wiki page for their reflection API.

gongminmin commented 5 years ago

This will be the major feature in version 0.4. Thanks for reporting!

WJsjtu commented 4 years ago

Is there any progress or plan on this issue? Or should I use something like #45 for now?

gongminmin commented 4 years ago

The code review of #45 is not finished. Waiting for a change from author. I'll contact him for a revision.

rejurime commented 4 years ago

No news from @sunnypchen, right? 😞

cpt-max commented 4 years ago

I added reflection features to my ShaderConductor fork. It's for SPIRV-Cross. It's very specific to what I need for the MonoGame shader compiler, but it might still be helpful. After all most projects will probably have somewhat similar reflection requirements.

gongminmin commented 3 years ago

A preliminary dxil reflection is added in 063c0ea6c30698f1e632d82ad425f987b9c7e713