diff --git a/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs b/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs index 5c8031db..71086963 100644 --- a/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs +++ b/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs @@ -17,6 +17,7 @@ partial class ShaderMethodSourceAttribute : Attribute { if (mapping.Add(constant.Key)) { + builder.Append('\n'); builder.Append("#define "); builder.Append(constant.Key); builder.Append(' ');