microsoft / ShaderConductor

ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose access to reflection data

Jjagg opened this issue · comments

commented

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.

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

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

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

No news from @sunnypchen, right? 😞

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.

A preliminary dxil reflection is added in 063c0ea