diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool.cs index d2d0490f..84136a95 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool.cs @@ -48,7 +48,7 @@ public readonly struct Bool return ((bool)this).ToString(formatProvider); } -#if NET6_0_OR_GREATER +#if !SOURCE_GENERATOR /// public bool TryFormat(Span destination, out int charsWritten) { diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs index 6dbee96b..c8ceac11 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs @@ -461,16 +461,12 @@ public unsafe partial struct Bool2 [UnscopedRef] public readonly ref readonly Bool4 GGGG => ref *(Bool4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { return $"<{this.x != 0}, {this.y != 0}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs index 9806d30f..ac3320fc 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs @@ -1727,16 +1727,12 @@ public unsafe partial struct Bool3 [UnscopedRef] public readonly ref readonly Bool4 BBBB => ref *(Bool4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { return $"<{this.x != 0}, {this.y != 0}, {this.z != 0}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs index de1e6bb9..3a3847d4 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs @@ -4813,16 +4813,12 @@ public unsafe partial struct Bool4 [UnscopedRef] public readonly ref readonly Bool4 AAAA => ref *(Bool4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { return $"<{this.x != 0}, {this.y != 0}, {this.z != 0}, {this.w != 0}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs index d1d844d6..2fcde5cc 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs @@ -463,8 +463,6 @@ public unsafe partial struct Double2 [UnscopedRef] public readonly ref readonly Double4 GGGG => ref *(Double4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -473,8 +471,6 @@ public unsafe partial struct Double2 return $"<{this.x}{separator} {this.y}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs index 2d626a15..75fd7e44 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs @@ -1729,8 +1729,6 @@ public unsafe partial struct Double3 [UnscopedRef] public readonly ref readonly Double4 BBBB => ref *(Double4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -1739,8 +1737,6 @@ public unsafe partial struct Double3 return $"<{this.x}{separator} {this.y}{separator} {this.z}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs index adfda559..a97379ee 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs @@ -4815,8 +4815,6 @@ public unsafe partial struct Double4 [UnscopedRef] public readonly ref readonly Double4 AAAA => ref *(Double4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -4825,8 +4823,6 @@ public unsafe partial struct Double4 return $"<{this.x}{separator} {this.y}{separator} {this.z}{separator} {this.w}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index c1ea54b1..91717962 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -464,8 +464,6 @@ public unsafe partial struct Float2 [UnscopedRef] public readonly ref readonly Float4 GGGG => ref *(Float4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -474,8 +472,6 @@ public unsafe partial struct Float2 return $"<{this.x}{separator} {this.y}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 054f0052..57148377 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1730,8 +1730,6 @@ public unsafe partial struct Float3 [UnscopedRef] public readonly ref readonly Float4 BBBB => ref *(Float4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -1740,8 +1738,6 @@ public unsafe partial struct Float3 return $"<{this.x}{separator} {this.y}{separator} {this.z}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index b013eba6..b698a2e0 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -4816,8 +4816,6 @@ public unsafe partial struct Float4 [UnscopedRef] public readonly ref readonly Float4 AAAA => ref *(Float4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -4826,8 +4824,6 @@ public unsafe partial struct Float4 return $"<{this.x}{separator} {this.y}{separator} {this.z}{separator} {this.w}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index 8418e5f8..ed18fa99 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -464,8 +464,6 @@ public unsafe partial struct Int2 [UnscopedRef] public readonly ref readonly Int4 GGGG => ref *(Int4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -474,8 +472,6 @@ public unsafe partial struct Int2 return $"<{this.x}{separator} {this.y}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index fcd58d8a..c09a6c0a 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1730,8 +1730,6 @@ public unsafe partial struct Int3 [UnscopedRef] public readonly ref readonly Int4 BBBB => ref *(Int4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -1740,8 +1738,6 @@ public unsafe partial struct Int3 return $"<{this.x}{separator} {this.y}{separator} {this.z}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index b67fd279..4ffe67a3 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -4816,8 +4816,6 @@ public unsafe partial struct Int4 [UnscopedRef] public readonly ref readonly Int4 AAAA => ref *(Int4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -4826,8 +4824,6 @@ public unsafe partial struct Int4 return $"<{this.x}{separator} {this.y}{separator} {this.z}{separator} {this.w}>"; } -#endif - /// /// Negates a value. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs index 7ddba2f0..d75113ff 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs @@ -463,8 +463,6 @@ public unsafe partial struct UInt2 [UnscopedRef] public readonly ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -473,8 +471,6 @@ public unsafe partial struct UInt2 return $"<{this.x}{separator} {this.y}>"; } -#endif - /// /// Sums two values. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs index 64520fc9..7a95ab50 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs @@ -1729,8 +1729,6 @@ public unsafe partial struct UInt3 [UnscopedRef] public readonly ref readonly UInt4 BBBB => ref *(UInt4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -1739,8 +1737,6 @@ public unsafe partial struct UInt3 return $"<{this.x}{separator} {this.y}{separator} {this.z}>"; } -#endif - /// /// Sums two values. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs index 56a4e76a..81a24dc4 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs @@ -4815,8 +4815,6 @@ public unsafe partial struct UInt4 [UnscopedRef] public readonly ref readonly UInt4 AAAA => ref *(UInt4*)UndefinedData.Memory; -#if !SOURCE_GENERATOR - /// public override readonly string ToString() { @@ -4825,8 +4823,6 @@ public unsafe partial struct UInt4 return $"<{this.x}{separator} {this.y}{separator} {this.z}{separator} {this.w}>"; } -#endif - /// /// Sums two values. /// diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index c3a3178b..0bf6f7c2 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -229,10 +229,6 @@ public unsafe partial struct <#=typeName#> PopIndent(); WriteLine(""); -#> -#if !SOURCE_GENERATOR - -<# if (elementTypeName == "Bool") { #> @@ -256,10 +252,6 @@ public unsafe partial struct <#=typeName#> <# } -#> - -#endif -<# // Generate the negation operator if (elementTypeName != "UInt") {