ShaderConductor icon indicating copy to clipboard operation
ShaderConductor copied to clipboard

Expose access to reflection data

Open Jjagg opened this issue 5 years ago • 6 comments

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.

Jjagg avatar Dec 13 '18 15:12 Jjagg

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

gongminmin avatar Dec 14 '18 04:12 gongminmin

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

WJsjtu avatar Jan 14 '20 06:01 WJsjtu

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

gongminmin avatar Jan 14 '20 19:01 gongminmin

No news from @sunnypchen, right? 😞

rejurime avatar Apr 11 '20 21:04 rejurime

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.

cpt-max avatar Aug 12 '20 20:08 cpt-max

A preliminary dxil reflection is added in 063c0ea6c30698f1e632d82ad425f987b9c7e713

gongminmin avatar Sep 25 '20 01:09 gongminmin