You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here OpStore, results into CompilerGLSL::cast_to_variable_store call. In theory cast_to_variable_store should already handle builtins, except it is broken and unable to recognize structure-members as builtin.
Offended part of code:
voidCompilerGLSL::cast_to_variable_store(uint32_t target_id, std::string &expr, const SPIRType &expr_type)
{
// returns gl_MeshVerticesEXT and loses information about whole access chainauto *var = maybe_get_backing_variable(target_id);
if (var)
target_id = var->self;
// Access chain also has no DecorationBuiltIn in this caseif (!has_decoration(target_id, DecorationBuiltIn))
return;
Caused by type mismatch of clip-distance builtin in HLSL(
float4
) and GLSL(float[4]
). Presumably mesh-shader only case.Relevant part of original shader:
spirv-cross output:
The text was updated successfully, but these errors were encountered: