csyonghe / Spire

Other
174 stars 22 forks source link

Add an API entry point to query name of a `SpireModule` #47

Closed tangent-vector closed 7 years ago

tangent-vector commented 7 years ago

This can be seen as a workaround for not being able to specify a SpireModule* to spShaderAddModule, but it also seems like a reasonable convenience function to have anyway.

This change was motivated by work I'm doing to port a small D3D11 testbed over to the new official Spire C API (instead of my hacked up home-made version).

csyonghe commented 7 years ago

Merged to master.