Closed TheArheus closed 3 weeks ago
That's because SPIRV-Cross doesn't know how to transpile geometry shaders to HLSL yet. That's what that error means.
That's because SPIRV-Cross doesn't know how to transpile geometry shaders to HLSL yet. That's what that error means.
I thought geometry shaders are already supported, as it is said in the description
I thought geometry shaders are already supported, as it is said in the description
They are, but only for GLSL output. See here.
EDIT: Clarified that geometry shaders are only supported for GLSL output, as opposed to input.
Yes, HLSL geometry shaders are not supported for output. Same with HLSL tessellation. Given my very limited time to work on SPIRV-Cross these days, I don't see this happening any time soon. Based on how I understand HLSL, it might not be possible to translate SPIR-V to HLSL geometry shaders due to how vertices are emitted.
Got it, thanks
Hi, I have an issue with compiling my shader from glsl to hlsl. I don't know why, but I've got this exception: Unsupported execution model. This is what glslangValidator have generated for me(I didn't know how much of the shader is needed to resolve this issue, so here is a whole just in case):
I don't know why, I get this error, which I don't know how to solve, even though my original shader have no issues.