dep/reshadefx: Don't unconditionally emit point size variable

Metal compiler doesn't like it.
And we're only using triangles at the moment anyway.
This commit is contained in:
Stenzek 2025-04-07 20:47:29 +10:00
parent 2bd9e5fbb1
commit 3ecaffd427
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -1543,6 +1543,8 @@ private:
emit_load(position, false)));
}
#if 0
// Disabled because it breaks on MacOS/Metal - point size should not be defined for a non-point primitive.
// Add code that sets the point size to a default value (in case this vertex shader is used with point primitives)
if (point_size_variable == 0 && func.type == shader_type::vertex)
{
@ -1554,6 +1556,7 @@ private:
// gl_PointSize = 1.0
emit_store(point_size, emit_constant({ type::t_float, 1, 1 }, 1));
}
#endif
leave_block_and_return(0);
leave_function();