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

Metal macosx- Shift cbuffer bindings broken

DamianMadden opened this issue · comments

If this is supposed to shift the binding number for buffers in metal then it's not working, otherwise a comment mentioning specifically which shading languages it applies to would be nice.

To reproduce- I expect this will be the case with any HLSL shader to the msl_macos target, likely ios too but I've not checked.

Expected behavior- I expected that the constant buffers binding #'s would come out in MSL as either (the source binding number, depending on the input language, or 0) + the shift cbuffers int parameter in Compiler::Options

I should perhaps mention this is only significant as an issue because I'm trying to automate the process of converting shaders from HLSL to MSL as part of the build process for a project.