From 41ce2277c7cf2c8ad3fd78c450a1c9714a03a0f6 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 13 Aug 2022 16:04:03 +0200 Subject: [PATCH] Fix [UnscopedRef] use on readonly members --- Directory.Build.props | 2 +- .../Primitives/Bool/BoolMxN.g.cs | 648 ++++++++++++------ .../Primitives/Double/Double2.g.cs | 19 +- .../Primitives/Double/Double3.g.cs | 63 +- .../Primitives/Double/Double4.g.cs | 259 +++---- .../Primitives/Double/DoubleMxN.g.cs | 648 ++++++++++++------ .../Primitives/Float/Float2.g.cs | 19 +- .../Primitives/Float/Float3.g.cs | 63 +- .../Primitives/Float/Float4.g.cs | 259 +++---- .../Primitives/Float/FloatMxN.g.cs | 648 ++++++++++++------ .../Primitives/Int/Int2.g.cs | 19 +- .../Primitives/Int/Int3.g.cs | 63 +- .../Primitives/Int/Int4.g.cs | 259 +++---- .../Primitives/Int/IntMxN.g.cs | 648 ++++++++++++------ .../Primitives/MatrixType.ttinclude | 32 +- .../Primitives/UInt/UInt2.g.cs | 19 +- .../Primitives/UInt/UInt3.g.cs | 63 +- .../Primitives/UInt/UInt4.g.cs | 259 +++---- .../Primitives/UInt/UIntMxN.g.cs | 648 ++++++++++++------ .../Primitives/VectorType.ttinclude | 11 +- 20 files changed, 2817 insertions(+), 1832 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 3bb049ce..f88ca3a3 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -12,7 +12,7 @@ - + diff --git a/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs b/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs index 4ab22441..e8786dcd 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs @@ -34,18 +34,24 @@ public unsafe partial struct Bool1x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + public ref bool this[int row] => ref *(bool*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -53,9 +59,12 @@ public unsafe partial struct Bool1x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -64,15 +73,18 @@ public unsafe partial struct Bool1x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -170,18 +182,24 @@ public unsafe partial struct Bool1x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -189,9 +207,12 @@ public unsafe partial struct Bool1x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -200,21 +221,24 @@ public unsafe partial struct Bool1x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -324,18 +348,24 @@ public unsafe partial struct Bool1x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -343,9 +373,12 @@ public unsafe partial struct Bool1x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -354,27 +387,30 @@ public unsafe partial struct Bool1x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -490,18 +526,24 @@ public unsafe partial struct Bool1x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -509,9 +551,12 @@ public unsafe partial struct Bool1x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -520,33 +565,36 @@ public unsafe partial struct Bool1x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref bool M14 => ref this.m14; + public ref bool M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -653,18 +701,24 @@ public unsafe partial struct Bool2x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + public ref bool this[int row] => ref *(bool*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -672,9 +726,12 @@ public unsafe partial struct Bool2x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -683,21 +740,24 @@ public unsafe partial struct Bool2x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -825,18 +885,24 @@ public unsafe partial struct Bool2x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -844,9 +910,12 @@ public unsafe partial struct Bool2x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -855,33 +924,36 @@ public unsafe partial struct Bool2x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -1017,18 +1089,24 @@ public unsafe partial struct Bool2x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1036,9 +1114,12 @@ public unsafe partial struct Bool2x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1047,45 +1128,48 @@ public unsafe partial struct Bool2x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref bool M23 => ref this.m23; + public ref bool M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -1235,18 +1319,24 @@ public unsafe partial struct Bool2x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1254,9 +1344,12 @@ public unsafe partial struct Bool2x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1265,57 +1358,60 @@ public unsafe partial struct Bool2x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref bool M14 => ref this.m14; + public ref bool M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref bool M23 => ref this.m23; + public ref bool M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref bool M24 => ref this.m24; + public ref bool M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -1425,18 +1521,24 @@ public unsafe partial struct Bool3x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + public ref bool this[int row] => ref *(bool*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1444,9 +1546,12 @@ public unsafe partial struct Bool3x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1455,27 +1560,30 @@ public unsafe partial struct Bool3x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -1617,18 +1725,24 @@ public unsafe partial struct Bool3x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1636,9 +1750,12 @@ public unsafe partial struct Bool3x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1647,45 +1764,48 @@ public unsafe partial struct Bool3x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref bool M32 => ref this.m32; + public ref bool M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -1842,18 +1962,24 @@ public unsafe partial struct Bool3x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1861,9 +1987,12 @@ public unsafe partial struct Bool3x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1872,63 +2001,66 @@ public unsafe partial struct Bool3x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref bool M23 => ref this.m23; + public ref bool M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref bool M32 => ref this.m32; + public ref bool M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref bool M33 => ref this.m33; + public ref bool M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -2106,18 +2238,24 @@ public unsafe partial struct Bool3x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2125,9 +2263,12 @@ public unsafe partial struct Bool3x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2136,81 +2277,84 @@ public unsafe partial struct Bool3x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref bool M14 => ref this.m14; + public ref bool M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref bool M23 => ref this.m23; + public ref bool M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref bool M24 => ref this.m24; + public ref bool M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref bool M32 => ref this.m32; + public ref bool M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref bool M33 => ref this.m33; + public ref bool M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref bool M34 => ref this.m34; + public ref bool M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -2329,18 +2473,24 @@ public unsafe partial struct Bool4x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + public ref bool this[int row] => ref *(bool*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2348,9 +2498,12 @@ public unsafe partial struct Bool4x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2359,33 +2512,36 @@ public unsafe partial struct Bool4x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref bool M41 => ref this.m41; + public ref bool M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -2541,18 +2697,24 @@ public unsafe partial struct Bool4x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2560,9 +2722,12 @@ public unsafe partial struct Bool4x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2571,57 +2736,60 @@ public unsafe partial struct Bool4x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref bool M32 => ref this.m32; + public ref bool M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref bool M41 => ref this.m41; + public ref bool M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref bool M42 => ref this.m42; + public ref bool M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -2799,18 +2967,24 @@ public unsafe partial struct Bool4x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2818,9 +2992,12 @@ public unsafe partial struct Bool4x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2829,81 +3006,84 @@ public unsafe partial struct Bool4x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref bool M23 => ref this.m23; + public ref bool M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref bool M32 => ref this.m32; + public ref bool M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref bool M33 => ref this.m33; + public ref bool M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref bool M41 => ref this.m41; + public ref bool M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref bool M42 => ref this.m42; + public ref bool M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref bool M43 => ref this.m43; + public ref bool M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -3109,18 +3289,24 @@ public unsafe partial struct Bool4x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3128,9 +3314,12 @@ public unsafe partial struct Bool4x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3139,105 +3328,108 @@ public unsafe partial struct Bool4x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref bool M11 => ref this.m11; + public ref bool M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref bool M12 => ref this.m12; + public ref bool M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref bool M13 => ref this.m13; + public ref bool M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref bool M14 => ref this.m14; + public ref bool M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref bool M21 => ref this.m21; + public ref bool M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref bool M22 => ref this.m22; + public ref bool M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref bool M23 => ref this.m23; + public ref bool M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref bool M24 => ref this.m24; + public ref bool M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref bool M31 => ref this.m31; + public ref bool M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref bool M32 => ref this.m32; + public ref bool M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref bool M33 => ref this.m33; + public ref bool M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref bool M34 => ref this.m34; + public ref bool M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref bool M41 => ref this.m41; + public ref bool M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref bool M42 => ref this.m42; + public ref bool M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref bool M43 => ref this.m43; + public ref bool M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// [UnscopedRef] - public readonly ref bool M44 => ref this.m44; + public ref bool M44 => ref this.m44; /// /// Creates a new value with the same value for all its components. diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs index 9cac9b3b..12607921 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs @@ -35,7 +35,8 @@ public unsafe partial struct Double2 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref double this[int i] => ref *(double*)UndefinedData; + [UnscopedRef] + public ref double this[int i] => ref *(double*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -61,13 +62,13 @@ public unsafe partial struct Double2 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref double X => ref this.x; + public ref double X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref double Y => ref this.y; + public ref double Y => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -81,14 +82,14 @@ public unsafe partial struct Double2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 XY => ref *(Double2*)UndefinedData; + public ref Double2 XY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 YX => ref *(Double2*)UndefinedData; + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -269,13 +270,13 @@ public unsafe partial struct Double2 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref double R => ref this.x; + public ref double R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref double G => ref this.y; + public ref double G => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -289,14 +290,14 @@ public unsafe partial struct Double2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 RG => ref *(Double2*)UndefinedData; + public ref Double2 RG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 GR => ref *(Double2*)UndefinedData; + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs index 8b9d0d70..8c2364db 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs @@ -38,7 +38,8 @@ public unsafe partial struct Double3 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref double this[int i] => ref *(double*)UndefinedData; + [UnscopedRef] + public ref double this[int i] => ref *(double*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -69,19 +70,19 @@ public unsafe partial struct Double3 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref double X => ref this.x; + public ref double X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref double Y => ref this.y; + public ref double Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref double Z => ref this.z; + public ref double Z => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -95,21 +96,21 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 XY => ref *(Double2*)UndefinedData; + public ref Double2 XY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 XZ => ref *(Double2*)UndefinedData; + public ref Double2 XZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 YX => ref *(Double2*)UndefinedData; + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -123,21 +124,21 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 YZ => ref *(Double2*)UndefinedData; + public ref Double2 YZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 ZX => ref *(Double2*)UndefinedData; + public ref Double2 ZX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 ZY => ref *(Double2*)UndefinedData; + public ref Double2 ZY => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -186,7 +187,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XYZ => ref *(Double3*)UndefinedData; + public ref Double3 XYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -200,7 +201,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XZY => ref *(Double3*)UndefinedData; + public ref Double3 XZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -228,7 +229,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YXZ => ref *(Double3*)UndefinedData; + public ref Double3 YXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -256,7 +257,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YZX => ref *(Double3*)UndefinedData; + public ref Double3 YZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -284,7 +285,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZXY => ref *(Double3*)UndefinedData; + public ref Double3 ZXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -298,7 +299,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZYX => ref *(Double3*)UndefinedData; + public ref Double3 ZYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -906,19 +907,19 @@ public unsafe partial struct Double3 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref double R => ref this.x; + public ref double R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref double G => ref this.y; + public ref double G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref double B => ref this.z; + public ref double B => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -932,21 +933,21 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 RG => ref *(Double2*)UndefinedData; + public ref Double2 RG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 RB => ref *(Double2*)UndefinedData; + public ref Double2 RB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 GR => ref *(Double2*)UndefinedData; + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -960,21 +961,21 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 GB => ref *(Double2*)UndefinedData; + public ref Double2 GB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 BR => ref *(Double2*)UndefinedData; + public ref Double2 BR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 BG => ref *(Double2*)UndefinedData; + public ref Double2 BG => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -1023,7 +1024,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RGB => ref *(Double3*)UndefinedData; + public ref Double3 RGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1037,7 +1038,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RBG => ref *(Double3*)UndefinedData; + public ref Double3 RBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1065,7 +1066,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GRB => ref *(Double3*)UndefinedData; + public ref Double3 GRB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1093,7 +1094,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GBR => ref *(Double3*)UndefinedData; + public ref Double3 GBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1121,7 +1122,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BRG => ref *(Double3*)UndefinedData; + public ref Double3 BRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1135,7 +1136,7 @@ public unsafe partial struct Double3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BGR => ref *(Double3*)UndefinedData; + public ref Double3 BGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs index 47446d77..ca9d1cd4 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs @@ -41,7 +41,8 @@ public unsafe partial struct Double4 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref double this[int i] => ref *(double*)UndefinedData; + [UnscopedRef] + public ref double this[int i] => ref *(double*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -77,25 +78,25 @@ public unsafe partial struct Double4 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref double X => ref this.x; + public ref double X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref double Y => ref this.y; + public ref double Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref double Z => ref this.z; + public ref double Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// [UnscopedRef] - public readonly ref double W => ref this.w; + public ref double W => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -109,28 +110,28 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 XY => ref *(Double2*)UndefinedData; + public ref Double2 XY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 XZ => ref *(Double2*)UndefinedData; + public ref Double2 XZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 XW => ref *(Double2*)UndefinedData; + public ref Double2 XW => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 YX => ref *(Double2*)UndefinedData; + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -144,28 +145,28 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 YZ => ref *(Double2*)UndefinedData; + public ref Double2 YZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 YW => ref *(Double2*)UndefinedData; + public ref Double2 YW => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 ZX => ref *(Double2*)UndefinedData; + public ref Double2 ZX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 ZY => ref *(Double2*)UndefinedData; + public ref Double2 ZY => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -179,28 +180,28 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 ZW => ref *(Double2*)UndefinedData; + public ref Double2 ZW => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 WX => ref *(Double2*)UndefinedData; + public ref Double2 WX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 WY => ref *(Double2*)UndefinedData; + public ref Double2 WY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 WZ => ref *(Double2*)UndefinedData; + public ref Double2 WZ => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -256,14 +257,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XYZ => ref *(Double3*)UndefinedData; + public ref Double3 XYZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XYW => ref *(Double3*)UndefinedData; + public ref Double3 XYW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -277,7 +278,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XZY => ref *(Double3*)UndefinedData; + public ref Double3 XZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -291,7 +292,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XZW => ref *(Double3*)UndefinedData; + public ref Double3 XZW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -305,14 +306,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XWY => ref *(Double3*)UndefinedData; + public ref Double3 XWY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 XWZ => ref *(Double3*)UndefinedData; + public ref Double3 XWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -340,14 +341,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YXZ => ref *(Double3*)UndefinedData; + public ref Double3 YXZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YXW => ref *(Double3*)UndefinedData; + public ref Double3 YXW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -382,7 +383,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YZX => ref *(Double3*)UndefinedData; + public ref Double3 YZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -403,14 +404,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YZW => ref *(Double3*)UndefinedData; + public ref Double3 YZW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YWX => ref *(Double3*)UndefinedData; + public ref Double3 YWX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -424,7 +425,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 YWZ => ref *(Double3*)UndefinedData; + public ref Double3 YWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -445,7 +446,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZXY => ref *(Double3*)UndefinedData; + public ref Double3 ZXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -459,14 +460,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZXW => ref *(Double3*)UndefinedData; + public ref Double3 ZXW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZYX => ref *(Double3*)UndefinedData; + public ref Double3 ZYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -487,7 +488,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZYW => ref *(Double3*)UndefinedData; + public ref Double3 ZYW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -522,14 +523,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZWX => ref *(Double3*)UndefinedData; + public ref Double3 ZWX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ZWY => ref *(Double3*)UndefinedData; + public ref Double3 ZWY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -557,14 +558,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 WXY => ref *(Double3*)UndefinedData; + public ref Double3 WXY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 WXZ => ref *(Double3*)UndefinedData; + public ref Double3 WXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -578,7 +579,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 WYX => ref *(Double3*)UndefinedData; + public ref Double3 WYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -592,7 +593,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 WYZ => ref *(Double3*)UndefinedData; + public ref Double3 WYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -606,14 +607,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 WZX => ref *(Double3*)UndefinedData; + public ref Double3 WZX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 WZY => ref *(Double3*)UndefinedData; + public ref Double3 WZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -851,7 +852,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 XYZW => ref *(Double4*)UndefinedData; + public ref Double4 XYZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -872,7 +873,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 XYWZ => ref *(Double4*)UndefinedData; + public ref Double4 XYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -935,7 +936,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 XZYW => ref *(Double4*)UndefinedData; + public ref Double4 XZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -977,7 +978,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 XZWY => ref *(Double4*)UndefinedData; + public ref Double4 XZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1040,7 +1041,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 XWYZ => ref *(Double4*)UndefinedData; + public ref Double4 XWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1061,7 +1062,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 XWZY => ref *(Double4*)UndefinedData; + public ref Double4 XWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1187,7 +1188,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 YXZW => ref *(Double4*)UndefinedData; + public ref Double4 YXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1208,7 +1209,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 YXWZ => ref *(Double4*)UndefinedData; + public ref Double4 YXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1355,7 +1356,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 YZXW => ref *(Double4*)UndefinedData; + public ref Double4 YZXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1418,7 +1419,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 YZWX => ref *(Double4*)UndefinedData; + public ref Double4 YZWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1460,7 +1461,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 YWXZ => ref *(Double4*)UndefinedData; + public ref Double4 YWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1502,7 +1503,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 YWZX => ref *(Double4*)UndefinedData; + public ref Double4 YWZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1607,7 +1608,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ZXYW => ref *(Double4*)UndefinedData; + public ref Double4 ZXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1649,7 +1650,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ZXWY => ref *(Double4*)UndefinedData; + public ref Double4 ZXWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1691,7 +1692,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ZYXW => ref *(Double4*)UndefinedData; + public ref Double4 ZYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1754,7 +1755,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ZYWX => ref *(Double4*)UndefinedData; + public ref Double4 ZYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1901,7 +1902,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ZWXY => ref *(Double4*)UndefinedData; + public ref Double4 ZWXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1922,7 +1923,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ZWYX => ref *(Double4*)UndefinedData; + public ref Double4 ZWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2048,7 +2049,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 WXYZ => ref *(Double4*)UndefinedData; + public ref Double4 WXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2069,7 +2070,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 WXZY => ref *(Double4*)UndefinedData; + public ref Double4 WXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2132,7 +2133,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 WYXZ => ref *(Double4*)UndefinedData; + public ref Double4 WYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2174,7 +2175,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 WYZX => ref *(Double4*)UndefinedData; + public ref Double4 WYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2237,7 +2238,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 WZXY => ref *(Double4*)UndefinedData; + public ref Double4 WZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2258,7 +2259,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 WZYX => ref *(Double4*)UndefinedData; + public ref Double4 WZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2453,25 +2454,25 @@ public unsafe partial struct Double4 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref double R => ref this.x; + public ref double R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref double G => ref this.y; + public ref double G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref double B => ref this.z; + public ref double B => ref this.z; /// /// Gets a reference to the value representing the A component. /// [UnscopedRef] - public readonly ref double A => ref this.w; + public ref double A => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -2485,28 +2486,28 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 RG => ref *(Double2*)UndefinedData; + public ref Double2 RG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 RB => ref *(Double2*)UndefinedData; + public ref Double2 RB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 RA => ref *(Double2*)UndefinedData; + public ref Double2 RA => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 GR => ref *(Double2*)UndefinedData; + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2520,28 +2521,28 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 GB => ref *(Double2*)UndefinedData; + public ref Double2 GB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 GA => ref *(Double2*)UndefinedData; + public ref Double2 GA => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 BR => ref *(Double2*)UndefinedData; + public ref Double2 BR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 BG => ref *(Double2*)UndefinedData; + public ref Double2 BG => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2555,28 +2556,28 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 BA => ref *(Double2*)UndefinedData; + public ref Double2 BA => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 AR => ref *(Double2*)UndefinedData; + public ref Double2 AR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 AG => ref *(Double2*)UndefinedData; + public ref Double2 AG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double2 AB => ref *(Double2*)UndefinedData; + public ref Double2 AB => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2632,14 +2633,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RGB => ref *(Double3*)UndefinedData; + public ref Double3 RGB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RGA => ref *(Double3*)UndefinedData; + public ref Double3 RGA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2653,7 +2654,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RBG => ref *(Double3*)UndefinedData; + public ref Double3 RBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2667,7 +2668,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RBA => ref *(Double3*)UndefinedData; + public ref Double3 RBA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2681,14 +2682,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RAG => ref *(Double3*)UndefinedData; + public ref Double3 RAG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 RAB => ref *(Double3*)UndefinedData; + public ref Double3 RAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2716,14 +2717,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GRB => ref *(Double3*)UndefinedData; + public ref Double3 GRB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GRA => ref *(Double3*)UndefinedData; + public ref Double3 GRA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2758,7 +2759,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GBR => ref *(Double3*)UndefinedData; + public ref Double3 GBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2779,14 +2780,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GBA => ref *(Double3*)UndefinedData; + public ref Double3 GBA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GAR => ref *(Double3*)UndefinedData; + public ref Double3 GAR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2800,7 +2801,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 GAB => ref *(Double3*)UndefinedData; + public ref Double3 GAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2821,7 +2822,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BRG => ref *(Double3*)UndefinedData; + public ref Double3 BRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2835,14 +2836,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BRA => ref *(Double3*)UndefinedData; + public ref Double3 BRA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BGR => ref *(Double3*)UndefinedData; + public ref Double3 BGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2863,7 +2864,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BGA => ref *(Double3*)UndefinedData; + public ref Double3 BGA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2898,14 +2899,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BAR => ref *(Double3*)UndefinedData; + public ref Double3 BAR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 BAG => ref *(Double3*)UndefinedData; + public ref Double3 BAG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2933,14 +2934,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ARG => ref *(Double3*)UndefinedData; + public ref Double3 ARG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ARB => ref *(Double3*)UndefinedData; + public ref Double3 ARB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2954,7 +2955,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 AGR => ref *(Double3*)UndefinedData; + public ref Double3 AGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2968,7 +2969,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 AGB => ref *(Double3*)UndefinedData; + public ref Double3 AGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2982,14 +2983,14 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ABR => ref *(Double3*)UndefinedData; + public ref Double3 ABR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double3 ABG => ref *(Double3*)UndefinedData; + public ref Double3 ABG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -3227,7 +3228,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 RGBA => ref *(Double4*)UndefinedData; + public ref Double4 RGBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3248,7 +3249,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 RGAB => ref *(Double4*)UndefinedData; + public ref Double4 RGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3311,7 +3312,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 RBGA => ref *(Double4*)UndefinedData; + public ref Double4 RBGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3353,7 +3354,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 RBAG => ref *(Double4*)UndefinedData; + public ref Double4 RBAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3416,7 +3417,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 RAGB => ref *(Double4*)UndefinedData; + public ref Double4 RAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3437,7 +3438,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 RABG => ref *(Double4*)UndefinedData; + public ref Double4 RABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3563,7 +3564,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 GRBA => ref *(Double4*)UndefinedData; + public ref Double4 GRBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3584,7 +3585,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 GRAB => ref *(Double4*)UndefinedData; + public ref Double4 GRAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3731,7 +3732,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 GBRA => ref *(Double4*)UndefinedData; + public ref Double4 GBRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3794,7 +3795,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 GBAR => ref *(Double4*)UndefinedData; + public ref Double4 GBAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3836,7 +3837,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 GARB => ref *(Double4*)UndefinedData; + public ref Double4 GARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3878,7 +3879,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 GABR => ref *(Double4*)UndefinedData; + public ref Double4 GABR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3983,7 +3984,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 BRGA => ref *(Double4*)UndefinedData; + public ref Double4 BRGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4025,7 +4026,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 BRAG => ref *(Double4*)UndefinedData; + public ref Double4 BRAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4067,7 +4068,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 BGRA => ref *(Double4*)UndefinedData; + public ref Double4 BGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4130,7 +4131,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 BGAR => ref *(Double4*)UndefinedData; + public ref Double4 BGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4277,7 +4278,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 BARG => ref *(Double4*)UndefinedData; + public ref Double4 BARG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4298,7 +4299,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 BAGR => ref *(Double4*)UndefinedData; + public ref Double4 BAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4424,7 +4425,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ARGB => ref *(Double4*)UndefinedData; + public ref Double4 ARGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4445,7 +4446,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ARBG => ref *(Double4*)UndefinedData; + public ref Double4 ARBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4508,7 +4509,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 AGRB => ref *(Double4*)UndefinedData; + public ref Double4 AGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4550,7 +4551,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 AGBR => ref *(Double4*)UndefinedData; + public ref Double4 AGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4613,7 +4614,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ABRG => ref *(Double4*)UndefinedData; + public ref Double4 ABRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4634,7 +4635,7 @@ public unsafe partial struct Double4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Double4 ABGR => ref *(Double4*)UndefinedData; + public ref Double4 ABGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . diff --git a/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs b/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs index 4c689b5f..093bbaca 100644 --- a/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs @@ -34,18 +34,24 @@ public unsafe partial struct Double1x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref double this[int row] => ref *(double*)UndefinedData; + public ref double this[int row] => ref *(double*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -53,9 +59,12 @@ public unsafe partial struct Double1x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -64,15 +73,18 @@ public unsafe partial struct Double1x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -224,18 +236,24 @@ public unsafe partial struct Double1x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + public ref Double2 this[int row] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -243,9 +261,12 @@ public unsafe partial struct Double1x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -254,21 +275,24 @@ public unsafe partial struct Double1x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -432,18 +456,24 @@ public unsafe partial struct Double1x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + public ref Double3 this[int row] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -451,9 +481,12 @@ public unsafe partial struct Double1x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -462,27 +495,30 @@ public unsafe partial struct Double1x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -652,18 +688,24 @@ public unsafe partial struct Double1x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + public ref Double4 this[int row] => ref *(Double4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -671,9 +713,12 @@ public unsafe partial struct Double1x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -682,33 +727,36 @@ public unsafe partial struct Double1x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref double M14 => ref this.m14; + public ref double M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -869,18 +917,24 @@ public unsafe partial struct Double2x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref double this[int row] => ref *(double*)UndefinedData; + public ref double this[int row] => ref *(double*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -888,9 +942,12 @@ public unsafe partial struct Double2x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -899,21 +956,24 @@ public unsafe partial struct Double2x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -1095,18 +1155,24 @@ public unsafe partial struct Double2x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + public ref Double2 this[int row] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1114,9 +1180,12 @@ public unsafe partial struct Double2x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1125,33 +1194,36 @@ public unsafe partial struct Double2x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -1341,18 +1413,24 @@ public unsafe partial struct Double2x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + public ref Double3 this[int row] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1360,9 +1438,12 @@ public unsafe partial struct Double2x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1371,45 +1452,48 @@ public unsafe partial struct Double2x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref double M23 => ref this.m23; + public ref double M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -1613,18 +1697,24 @@ public unsafe partial struct Double2x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + public ref Double4 this[int row] => ref *(Double4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1632,9 +1722,12 @@ public unsafe partial struct Double2x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1643,57 +1736,60 @@ public unsafe partial struct Double2x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref double M14 => ref this.m14; + public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref double M23 => ref this.m23; + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref double M24 => ref this.m24; + public ref double M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -1857,18 +1953,24 @@ public unsafe partial struct Double3x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref double this[int row] => ref *(double*)UndefinedData; + public ref double this[int row] => ref *(double*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1876,9 +1978,12 @@ public unsafe partial struct Double3x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1887,27 +1992,30 @@ public unsafe partial struct Double3x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -2103,18 +2211,24 @@ public unsafe partial struct Double3x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + public ref Double2 this[int row] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2122,9 +2236,12 @@ public unsafe partial struct Double3x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2133,45 +2250,48 @@ public unsafe partial struct Double3x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref double M32 => ref this.m32; + public ref double M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -2382,18 +2502,24 @@ public unsafe partial struct Double3x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + public ref Double3 this[int row] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2401,9 +2527,12 @@ public unsafe partial struct Double3x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2412,63 +2541,66 @@ public unsafe partial struct Double3x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref double M23 => ref this.m23; + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref double M32 => ref this.m32; + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref double M33 => ref this.m33; + public ref double M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -2700,18 +2832,24 @@ public unsafe partial struct Double3x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + public ref Double4 this[int row] => ref *(Double4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2719,9 +2857,12 @@ public unsafe partial struct Double3x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2730,81 +2871,84 @@ public unsafe partial struct Double3x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref double M14 => ref this.m14; + public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref double M23 => ref this.m23; + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref double M24 => ref this.m24; + public ref double M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref double M32 => ref this.m32; + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref double M33 => ref this.m33; + public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref double M34 => ref this.m34; + public ref double M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -2977,18 +3121,24 @@ public unsafe partial struct Double4x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref double this[int row] => ref *(double*)UndefinedData; + public ref double this[int row] => ref *(double*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2996,9 +3146,12 @@ public unsafe partial struct Double4x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3007,33 +3160,36 @@ public unsafe partial struct Double4x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref double M41 => ref this.m41; + public ref double M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -3243,18 +3399,24 @@ public unsafe partial struct Double4x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + public ref Double2 this[int row] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3262,9 +3424,12 @@ public unsafe partial struct Double4x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3273,57 +3438,60 @@ public unsafe partial struct Double4x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref double M32 => ref this.m32; + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref double M41 => ref this.m41; + public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref double M42 => ref this.m42; + public ref double M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -3555,18 +3723,24 @@ public unsafe partial struct Double4x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + public ref Double3 this[int row] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3574,9 +3748,12 @@ public unsafe partial struct Double4x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3585,81 +3762,84 @@ public unsafe partial struct Double4x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref double M23 => ref this.m23; + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref double M32 => ref this.m32; + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref double M33 => ref this.m33; + public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref double M41 => ref this.m41; + public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref double M42 => ref this.m42; + public ref double M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref double M43 => ref this.m43; + public ref double M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -3919,18 +4099,24 @@ public unsafe partial struct Double4x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + public ref Double4 this[int row] => ref *(Double4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3938,9 +4124,12 @@ public unsafe partial struct Double4x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3949,105 +4138,108 @@ public unsafe partial struct Double4x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref double M11 => ref this.m11; + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref double M12 => ref this.m12; + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref double M13 => ref this.m13; + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref double M14 => ref this.m14; + public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref double M21 => ref this.m21; + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref double M22 => ref this.m22; + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref double M23 => ref this.m23; + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref double M24 => ref this.m24; + public ref double M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref double M31 => ref this.m31; + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref double M32 => ref this.m32; + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref double M33 => ref this.m33; + public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref double M34 => ref this.m34; + public ref double M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref double M41 => ref this.m41; + public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref double M42 => ref this.m42; + public ref double M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref double M43 => ref this.m43; + public ref double M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// [UnscopedRef] - public readonly ref double M44 => ref this.m44; + public ref double M44 => ref this.m44; /// /// Creates a new value with the same value for all its components. diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index 470c000a..2e19503d 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -36,7 +36,8 @@ public unsafe partial struct Float2 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref float this[int i] => ref *(float*)UndefinedData; + [UnscopedRef] + public ref float this[int i] => ref *(float*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -62,13 +63,13 @@ public unsafe partial struct Float2 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref float X => ref this.x; + public ref float X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref float Y => ref this.y; + public ref float Y => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -82,14 +83,14 @@ public unsafe partial struct Float2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 XY => ref *(Float2*)UndefinedData; + public ref Float2 XY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 YX => ref *(Float2*)UndefinedData; + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -270,13 +271,13 @@ public unsafe partial struct Float2 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref float R => ref this.x; + public ref float R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref float G => ref this.y; + public ref float G => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -290,14 +291,14 @@ public unsafe partial struct Float2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 RG => ref *(Float2*)UndefinedData; + public ref Float2 RG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 GR => ref *(Float2*)UndefinedData; + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 1c23d3cd..2411f5cb 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -39,7 +39,8 @@ public unsafe partial struct Float3 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref float this[int i] => ref *(float*)UndefinedData; + [UnscopedRef] + public ref float this[int i] => ref *(float*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -70,19 +71,19 @@ public unsafe partial struct Float3 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref float X => ref this.x; + public ref float X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref float Y => ref this.y; + public ref float Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref float Z => ref this.z; + public ref float Z => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -96,21 +97,21 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 XY => ref *(Float2*)UndefinedData; + public ref Float2 XY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 XZ => ref *(Float2*)UndefinedData; + public ref Float2 XZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 YX => ref *(Float2*)UndefinedData; + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -124,21 +125,21 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 YZ => ref *(Float2*)UndefinedData; + public ref Float2 YZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 ZX => ref *(Float2*)UndefinedData; + public ref Float2 ZX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 ZY => ref *(Float2*)UndefinedData; + public ref Float2 ZY => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -187,7 +188,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XYZ => ref *(Float3*)UndefinedData; + public ref Float3 XYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -201,7 +202,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XZY => ref *(Float3*)UndefinedData; + public ref Float3 XZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -229,7 +230,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YXZ => ref *(Float3*)UndefinedData; + public ref Float3 YXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -257,7 +258,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YZX => ref *(Float3*)UndefinedData; + public ref Float3 YZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -285,7 +286,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZXY => ref *(Float3*)UndefinedData; + public ref Float3 ZXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -299,7 +300,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZYX => ref *(Float3*)UndefinedData; + public ref Float3 ZYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -907,19 +908,19 @@ public unsafe partial struct Float3 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref float R => ref this.x; + public ref float R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref float G => ref this.y; + public ref float G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref float B => ref this.z; + public ref float B => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -933,21 +934,21 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 RG => ref *(Float2*)UndefinedData; + public ref Float2 RG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 RB => ref *(Float2*)UndefinedData; + public ref Float2 RB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 GR => ref *(Float2*)UndefinedData; + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -961,21 +962,21 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 GB => ref *(Float2*)UndefinedData; + public ref Float2 GB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 BR => ref *(Float2*)UndefinedData; + public ref Float2 BR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 BG => ref *(Float2*)UndefinedData; + public ref Float2 BG => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -1024,7 +1025,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RGB => ref *(Float3*)UndefinedData; + public ref Float3 RGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1038,7 +1039,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RBG => ref *(Float3*)UndefinedData; + public ref Float3 RBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1066,7 +1067,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GRB => ref *(Float3*)UndefinedData; + public ref Float3 GRB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1094,7 +1095,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GBR => ref *(Float3*)UndefinedData; + public ref Float3 GBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1122,7 +1123,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BRG => ref *(Float3*)UndefinedData; + public ref Float3 BRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1136,7 +1137,7 @@ public unsafe partial struct Float3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BGR => ref *(Float3*)UndefinedData; + public ref Float3 BGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index 608b995c..8319aa2e 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -42,7 +42,8 @@ public unsafe partial struct Float4 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref float this[int i] => ref *(float*)UndefinedData; + [UnscopedRef] + public ref float this[int i] => ref *(float*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -78,25 +79,25 @@ public unsafe partial struct Float4 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref float X => ref this.x; + public ref float X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref float Y => ref this.y; + public ref float Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref float Z => ref this.z; + public ref float Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// [UnscopedRef] - public readonly ref float W => ref this.w; + public ref float W => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -110,28 +111,28 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 XY => ref *(Float2*)UndefinedData; + public ref Float2 XY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 XZ => ref *(Float2*)UndefinedData; + public ref Float2 XZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 XW => ref *(Float2*)UndefinedData; + public ref Float2 XW => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 YX => ref *(Float2*)UndefinedData; + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -145,28 +146,28 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 YZ => ref *(Float2*)UndefinedData; + public ref Float2 YZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 YW => ref *(Float2*)UndefinedData; + public ref Float2 YW => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 ZX => ref *(Float2*)UndefinedData; + public ref Float2 ZX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 ZY => ref *(Float2*)UndefinedData; + public ref Float2 ZY => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -180,28 +181,28 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 ZW => ref *(Float2*)UndefinedData; + public ref Float2 ZW => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 WX => ref *(Float2*)UndefinedData; + public ref Float2 WX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 WY => ref *(Float2*)UndefinedData; + public ref Float2 WY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 WZ => ref *(Float2*)UndefinedData; + public ref Float2 WZ => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -257,14 +258,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XYZ => ref *(Float3*)UndefinedData; + public ref Float3 XYZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XYW => ref *(Float3*)UndefinedData; + public ref Float3 XYW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -278,7 +279,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XZY => ref *(Float3*)UndefinedData; + public ref Float3 XZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -292,7 +293,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XZW => ref *(Float3*)UndefinedData; + public ref Float3 XZW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -306,14 +307,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XWY => ref *(Float3*)UndefinedData; + public ref Float3 XWY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 XWZ => ref *(Float3*)UndefinedData; + public ref Float3 XWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -341,14 +342,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YXZ => ref *(Float3*)UndefinedData; + public ref Float3 YXZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YXW => ref *(Float3*)UndefinedData; + public ref Float3 YXW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -383,7 +384,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YZX => ref *(Float3*)UndefinedData; + public ref Float3 YZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -404,14 +405,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YZW => ref *(Float3*)UndefinedData; + public ref Float3 YZW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YWX => ref *(Float3*)UndefinedData; + public ref Float3 YWX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -425,7 +426,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 YWZ => ref *(Float3*)UndefinedData; + public ref Float3 YWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -446,7 +447,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZXY => ref *(Float3*)UndefinedData; + public ref Float3 ZXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -460,14 +461,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZXW => ref *(Float3*)UndefinedData; + public ref Float3 ZXW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZYX => ref *(Float3*)UndefinedData; + public ref Float3 ZYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -488,7 +489,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZYW => ref *(Float3*)UndefinedData; + public ref Float3 ZYW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -523,14 +524,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZWX => ref *(Float3*)UndefinedData; + public ref Float3 ZWX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ZWY => ref *(Float3*)UndefinedData; + public ref Float3 ZWY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -558,14 +559,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 WXY => ref *(Float3*)UndefinedData; + public ref Float3 WXY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 WXZ => ref *(Float3*)UndefinedData; + public ref Float3 WXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -579,7 +580,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 WYX => ref *(Float3*)UndefinedData; + public ref Float3 WYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -593,7 +594,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 WYZ => ref *(Float3*)UndefinedData; + public ref Float3 WYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -607,14 +608,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 WZX => ref *(Float3*)UndefinedData; + public ref Float3 WZX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 WZY => ref *(Float3*)UndefinedData; + public ref Float3 WZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -852,7 +853,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 XYZW => ref *(Float4*)UndefinedData; + public ref Float4 XYZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -873,7 +874,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 XYWZ => ref *(Float4*)UndefinedData; + public ref Float4 XYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -936,7 +937,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 XZYW => ref *(Float4*)UndefinedData; + public ref Float4 XZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -978,7 +979,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 XZWY => ref *(Float4*)UndefinedData; + public ref Float4 XZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1041,7 +1042,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 XWYZ => ref *(Float4*)UndefinedData; + public ref Float4 XWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1062,7 +1063,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 XWZY => ref *(Float4*)UndefinedData; + public ref Float4 XWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1188,7 +1189,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 YXZW => ref *(Float4*)UndefinedData; + public ref Float4 YXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1209,7 +1210,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 YXWZ => ref *(Float4*)UndefinedData; + public ref Float4 YXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1356,7 +1357,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 YZXW => ref *(Float4*)UndefinedData; + public ref Float4 YZXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1419,7 +1420,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 YZWX => ref *(Float4*)UndefinedData; + public ref Float4 YZWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1461,7 +1462,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 YWXZ => ref *(Float4*)UndefinedData; + public ref Float4 YWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1503,7 +1504,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 YWZX => ref *(Float4*)UndefinedData; + public ref Float4 YWZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1608,7 +1609,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ZXYW => ref *(Float4*)UndefinedData; + public ref Float4 ZXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1650,7 +1651,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ZXWY => ref *(Float4*)UndefinedData; + public ref Float4 ZXWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1692,7 +1693,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ZYXW => ref *(Float4*)UndefinedData; + public ref Float4 ZYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1755,7 +1756,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ZYWX => ref *(Float4*)UndefinedData; + public ref Float4 ZYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1902,7 +1903,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ZWXY => ref *(Float4*)UndefinedData; + public ref Float4 ZWXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1923,7 +1924,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ZWYX => ref *(Float4*)UndefinedData; + public ref Float4 ZWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2049,7 +2050,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 WXYZ => ref *(Float4*)UndefinedData; + public ref Float4 WXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2070,7 +2071,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 WXZY => ref *(Float4*)UndefinedData; + public ref Float4 WXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2133,7 +2134,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 WYXZ => ref *(Float4*)UndefinedData; + public ref Float4 WYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2175,7 +2176,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 WYZX => ref *(Float4*)UndefinedData; + public ref Float4 WYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2238,7 +2239,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 WZXY => ref *(Float4*)UndefinedData; + public ref Float4 WZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2259,7 +2260,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 WZYX => ref *(Float4*)UndefinedData; + public ref Float4 WZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2454,25 +2455,25 @@ public unsafe partial struct Float4 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref float R => ref this.x; + public ref float R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref float G => ref this.y; + public ref float G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref float B => ref this.z; + public ref float B => ref this.z; /// /// Gets a reference to the value representing the A component. /// [UnscopedRef] - public readonly ref float A => ref this.w; + public ref float A => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -2486,28 +2487,28 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 RG => ref *(Float2*)UndefinedData; + public ref Float2 RG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 RB => ref *(Float2*)UndefinedData; + public ref Float2 RB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 RA => ref *(Float2*)UndefinedData; + public ref Float2 RA => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 GR => ref *(Float2*)UndefinedData; + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2521,28 +2522,28 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 GB => ref *(Float2*)UndefinedData; + public ref Float2 GB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 GA => ref *(Float2*)UndefinedData; + public ref Float2 GA => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 BR => ref *(Float2*)UndefinedData; + public ref Float2 BR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 BG => ref *(Float2*)UndefinedData; + public ref Float2 BG => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2556,28 +2557,28 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 BA => ref *(Float2*)UndefinedData; + public ref Float2 BA => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 AR => ref *(Float2*)UndefinedData; + public ref Float2 AR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 AG => ref *(Float2*)UndefinedData; + public ref Float2 AG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float2 AB => ref *(Float2*)UndefinedData; + public ref Float2 AB => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2633,14 +2634,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RGB => ref *(Float3*)UndefinedData; + public ref Float3 RGB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RGA => ref *(Float3*)UndefinedData; + public ref Float3 RGA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2654,7 +2655,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RBG => ref *(Float3*)UndefinedData; + public ref Float3 RBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2668,7 +2669,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RBA => ref *(Float3*)UndefinedData; + public ref Float3 RBA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2682,14 +2683,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RAG => ref *(Float3*)UndefinedData; + public ref Float3 RAG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 RAB => ref *(Float3*)UndefinedData; + public ref Float3 RAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2717,14 +2718,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GRB => ref *(Float3*)UndefinedData; + public ref Float3 GRB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GRA => ref *(Float3*)UndefinedData; + public ref Float3 GRA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2759,7 +2760,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GBR => ref *(Float3*)UndefinedData; + public ref Float3 GBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2780,14 +2781,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GBA => ref *(Float3*)UndefinedData; + public ref Float3 GBA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GAR => ref *(Float3*)UndefinedData; + public ref Float3 GAR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2801,7 +2802,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 GAB => ref *(Float3*)UndefinedData; + public ref Float3 GAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2822,7 +2823,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BRG => ref *(Float3*)UndefinedData; + public ref Float3 BRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2836,14 +2837,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BRA => ref *(Float3*)UndefinedData; + public ref Float3 BRA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BGR => ref *(Float3*)UndefinedData; + public ref Float3 BGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2864,7 +2865,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BGA => ref *(Float3*)UndefinedData; + public ref Float3 BGA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2899,14 +2900,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BAR => ref *(Float3*)UndefinedData; + public ref Float3 BAR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 BAG => ref *(Float3*)UndefinedData; + public ref Float3 BAG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2934,14 +2935,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ARG => ref *(Float3*)UndefinedData; + public ref Float3 ARG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ARB => ref *(Float3*)UndefinedData; + public ref Float3 ARB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2955,7 +2956,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 AGR => ref *(Float3*)UndefinedData; + public ref Float3 AGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2969,7 +2970,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 AGB => ref *(Float3*)UndefinedData; + public ref Float3 AGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2983,14 +2984,14 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ABR => ref *(Float3*)UndefinedData; + public ref Float3 ABR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float3 ABG => ref *(Float3*)UndefinedData; + public ref Float3 ABG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -3228,7 +3229,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 RGBA => ref *(Float4*)UndefinedData; + public ref Float4 RGBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3249,7 +3250,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 RGAB => ref *(Float4*)UndefinedData; + public ref Float4 RGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3312,7 +3313,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 RBGA => ref *(Float4*)UndefinedData; + public ref Float4 RBGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3354,7 +3355,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 RBAG => ref *(Float4*)UndefinedData; + public ref Float4 RBAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3417,7 +3418,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 RAGB => ref *(Float4*)UndefinedData; + public ref Float4 RAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3438,7 +3439,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 RABG => ref *(Float4*)UndefinedData; + public ref Float4 RABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3564,7 +3565,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 GRBA => ref *(Float4*)UndefinedData; + public ref Float4 GRBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3585,7 +3586,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 GRAB => ref *(Float4*)UndefinedData; + public ref Float4 GRAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3732,7 +3733,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 GBRA => ref *(Float4*)UndefinedData; + public ref Float4 GBRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3795,7 +3796,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 GBAR => ref *(Float4*)UndefinedData; + public ref Float4 GBAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3837,7 +3838,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 GARB => ref *(Float4*)UndefinedData; + public ref Float4 GARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3879,7 +3880,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 GABR => ref *(Float4*)UndefinedData; + public ref Float4 GABR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3984,7 +3985,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 BRGA => ref *(Float4*)UndefinedData; + public ref Float4 BRGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4026,7 +4027,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 BRAG => ref *(Float4*)UndefinedData; + public ref Float4 BRAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4068,7 +4069,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 BGRA => ref *(Float4*)UndefinedData; + public ref Float4 BGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4131,7 +4132,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 BGAR => ref *(Float4*)UndefinedData; + public ref Float4 BGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4278,7 +4279,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 BARG => ref *(Float4*)UndefinedData; + public ref Float4 BARG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4299,7 +4300,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 BAGR => ref *(Float4*)UndefinedData; + public ref Float4 BAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4425,7 +4426,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ARGB => ref *(Float4*)UndefinedData; + public ref Float4 ARGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4446,7 +4447,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ARBG => ref *(Float4*)UndefinedData; + public ref Float4 ARBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4509,7 +4510,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 AGRB => ref *(Float4*)UndefinedData; + public ref Float4 AGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4551,7 +4552,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 AGBR => ref *(Float4*)UndefinedData; + public ref Float4 AGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4614,7 +4615,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ABRG => ref *(Float4*)UndefinedData; + public ref Float4 ABRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4635,7 +4636,7 @@ public unsafe partial struct Float4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Float4 ABGR => ref *(Float4*)UndefinedData; + public ref Float4 ABGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index f87304f7..e458c37e 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -35,18 +35,24 @@ public unsafe partial struct Float1x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref float this[int row] => ref *(float*)UndefinedData; + public ref float this[int row] => ref *(float*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -54,9 +60,12 @@ public unsafe partial struct Float1x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -65,15 +74,18 @@ public unsafe partial struct Float1x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -243,18 +255,24 @@ public unsafe partial struct Float1x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + public ref Float2 this[int row] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -262,9 +280,12 @@ public unsafe partial struct Float1x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -273,21 +294,24 @@ public unsafe partial struct Float1x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -553,18 +577,24 @@ public unsafe partial struct Float1x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + public ref Float3 this[int row] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -572,9 +602,12 @@ public unsafe partial struct Float1x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -583,27 +616,30 @@ public unsafe partial struct Float1x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -875,18 +911,24 @@ public unsafe partial struct Float1x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + public ref Float4 this[int row] => ref *(Float4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -894,9 +936,12 @@ public unsafe partial struct Float1x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -905,33 +950,36 @@ public unsafe partial struct Float1x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref float M14 => ref this.m14; + public ref float M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -1194,18 +1242,24 @@ public unsafe partial struct Float2x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref float this[int row] => ref *(float*)UndefinedData; + public ref float this[int row] => ref *(float*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1213,9 +1267,12 @@ public unsafe partial struct Float2x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1224,21 +1281,24 @@ public unsafe partial struct Float2x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -1508,18 +1568,24 @@ public unsafe partial struct Float2x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + public ref Float2 this[int row] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1527,9 +1593,12 @@ public unsafe partial struct Float2x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1538,33 +1607,36 @@ public unsafe partial struct Float2x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -1772,18 +1844,24 @@ public unsafe partial struct Float2x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + public ref Float3 this[int row] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1791,9 +1869,12 @@ public unsafe partial struct Float2x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1802,45 +1883,48 @@ public unsafe partial struct Float2x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref float M23 => ref this.m23; + public ref float M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -2146,18 +2230,24 @@ public unsafe partial struct Float2x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + public ref Float4 this[int row] => ref *(Float4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2165,9 +2255,12 @@ public unsafe partial struct Float2x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2176,57 +2269,60 @@ public unsafe partial struct Float2x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref float M14 => ref this.m14; + public ref float M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref float M23 => ref this.m23; + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref float M24 => ref this.m24; + public ref float M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -2492,18 +2588,24 @@ public unsafe partial struct Float3x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref float this[int row] => ref *(float*)UndefinedData; + public ref float this[int row] => ref *(float*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2511,9 +2613,12 @@ public unsafe partial struct Float3x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2522,27 +2627,30 @@ public unsafe partial struct Float3x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -2826,18 +2934,24 @@ public unsafe partial struct Float3x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + public ref Float2 this[int row] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2845,9 +2959,12 @@ public unsafe partial struct Float3x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2856,45 +2973,48 @@ public unsafe partial struct Float3x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref float M32 => ref this.m32; + public ref float M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -3207,18 +3327,24 @@ public unsafe partial struct Float3x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + public ref Float3 this[int row] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3226,9 +3352,12 @@ public unsafe partial struct Float3x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3237,63 +3366,66 @@ public unsafe partial struct Float3x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref float M23 => ref this.m23; + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref float M32 => ref this.m32; + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref float M33 => ref this.m33; + public ref float M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -3543,18 +3675,24 @@ public unsafe partial struct Float3x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + public ref Float4 this[int row] => ref *(Float4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3562,9 +3700,12 @@ public unsafe partial struct Float3x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3573,81 +3714,84 @@ public unsafe partial struct Float3x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref float M14 => ref this.m14; + public ref float M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref float M23 => ref this.m23; + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref float M24 => ref this.m24; + public ref float M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref float M32 => ref this.m32; + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref float M33 => ref this.m33; + public ref float M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref float M34 => ref this.m34; + public ref float M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -3922,18 +4066,24 @@ public unsafe partial struct Float4x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref float this[int row] => ref *(float*)UndefinedData; + public ref float this[int row] => ref *(float*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3941,9 +4091,12 @@ public unsafe partial struct Float4x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3952,33 +4105,36 @@ public unsafe partial struct Float4x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref float M41 => ref this.m41; + public ref float M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -4276,18 +4432,24 @@ public unsafe partial struct Float4x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + public ref Float2 this[int row] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4295,9 +4457,12 @@ public unsafe partial struct Float4x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4306,57 +4471,60 @@ public unsafe partial struct Float4x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref float M32 => ref this.m32; + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref float M41 => ref this.m41; + public ref float M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref float M42 => ref this.m42; + public ref float M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -4690,18 +4858,24 @@ public unsafe partial struct Float4x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + public ref Float3 this[int row] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4709,9 +4883,12 @@ public unsafe partial struct Float4x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4720,81 +4897,84 @@ public unsafe partial struct Float4x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref float M23 => ref this.m23; + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref float M32 => ref this.m32; + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref float M33 => ref this.m33; + public ref float M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref float M41 => ref this.m41; + public ref float M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref float M42 => ref this.m42; + public ref float M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref float M43 => ref this.m43; + public ref float M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -5156,18 +5336,24 @@ public unsafe partial struct Float4x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + public ref Float4 this[int row] => ref *(Float4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5175,9 +5361,12 @@ public unsafe partial struct Float4x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5186,105 +5375,108 @@ public unsafe partial struct Float4x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref float M11 => ref this.m11; + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref float M12 => ref this.m12; + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref float M13 => ref this.m13; + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref float M14 => ref this.m14; + public ref float M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref float M21 => ref this.m21; + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref float M22 => ref this.m22; + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref float M23 => ref this.m23; + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref float M24 => ref this.m24; + public ref float M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref float M31 => ref this.m31; + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref float M32 => ref this.m32; + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref float M33 => ref this.m33; + public ref float M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref float M34 => ref this.m34; + public ref float M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref float M41 => ref this.m41; + public ref float M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref float M42 => ref this.m42; + public ref float M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref float M43 => ref this.m43; + public ref float M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// [UnscopedRef] - public readonly ref float M44 => ref this.m44; + public ref float M44 => ref this.m44; /// /// Creates a new value with the same value for all its components. diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index a2f848bd..bb1f892c 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -36,7 +36,8 @@ public unsafe partial struct Int2 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref int this[int i] => ref *(int*)UndefinedData; + [UnscopedRef] + public ref int this[int i] => ref *(int*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -62,13 +63,13 @@ public unsafe partial struct Int2 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref int X => ref this.x; + public ref int X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref int Y => ref this.y; + public ref int Y => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -82,14 +83,14 @@ public unsafe partial struct Int2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 XY => ref *(Int2*)UndefinedData; + public ref Int2 XY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 YX => ref *(Int2*)UndefinedData; + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -270,13 +271,13 @@ public unsafe partial struct Int2 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref int R => ref this.x; + public ref int R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref int G => ref this.y; + public ref int G => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -290,14 +291,14 @@ public unsafe partial struct Int2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 RG => ref *(Int2*)UndefinedData; + public ref Int2 RG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 GR => ref *(Int2*)UndefinedData; + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index 416456b9..d9f6e94b 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -39,7 +39,8 @@ public unsafe partial struct Int3 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref int this[int i] => ref *(int*)UndefinedData; + [UnscopedRef] + public ref int this[int i] => ref *(int*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -70,19 +71,19 @@ public unsafe partial struct Int3 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref int X => ref this.x; + public ref int X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref int Y => ref this.y; + public ref int Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref int Z => ref this.z; + public ref int Z => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -96,21 +97,21 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 XY => ref *(Int2*)UndefinedData; + public ref Int2 XY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 XZ => ref *(Int2*)UndefinedData; + public ref Int2 XZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 YX => ref *(Int2*)UndefinedData; + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -124,21 +125,21 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 YZ => ref *(Int2*)UndefinedData; + public ref Int2 YZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 ZX => ref *(Int2*)UndefinedData; + public ref Int2 ZX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 ZY => ref *(Int2*)UndefinedData; + public ref Int2 ZY => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -187,7 +188,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XYZ => ref *(Int3*)UndefinedData; + public ref Int3 XYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -201,7 +202,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XZY => ref *(Int3*)UndefinedData; + public ref Int3 XZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -229,7 +230,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YXZ => ref *(Int3*)UndefinedData; + public ref Int3 YXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -257,7 +258,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YZX => ref *(Int3*)UndefinedData; + public ref Int3 YZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -285,7 +286,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZXY => ref *(Int3*)UndefinedData; + public ref Int3 ZXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -299,7 +300,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZYX => ref *(Int3*)UndefinedData; + public ref Int3 ZYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -907,19 +908,19 @@ public unsafe partial struct Int3 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref int R => ref this.x; + public ref int R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref int G => ref this.y; + public ref int G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref int B => ref this.z; + public ref int B => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -933,21 +934,21 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 RG => ref *(Int2*)UndefinedData; + public ref Int2 RG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 RB => ref *(Int2*)UndefinedData; + public ref Int2 RB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 GR => ref *(Int2*)UndefinedData; + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -961,21 +962,21 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 GB => ref *(Int2*)UndefinedData; + public ref Int2 GB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 BR => ref *(Int2*)UndefinedData; + public ref Int2 BR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 BG => ref *(Int2*)UndefinedData; + public ref Int2 BG => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -1024,7 +1025,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RGB => ref *(Int3*)UndefinedData; + public ref Int3 RGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1038,7 +1039,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RBG => ref *(Int3*)UndefinedData; + public ref Int3 RBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1066,7 +1067,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GRB => ref *(Int3*)UndefinedData; + public ref Int3 GRB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1094,7 +1095,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GBR => ref *(Int3*)UndefinedData; + public ref Int3 GBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1122,7 +1123,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BRG => ref *(Int3*)UndefinedData; + public ref Int3 BRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1136,7 +1137,7 @@ public unsafe partial struct Int3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BGR => ref *(Int3*)UndefinedData; + public ref Int3 BGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index ff96e908..91052f1b 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -42,7 +42,8 @@ public unsafe partial struct Int4 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref int this[int i] => ref *(int*)UndefinedData; + [UnscopedRef] + public ref int this[int i] => ref *(int*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -78,25 +79,25 @@ public unsafe partial struct Int4 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref int X => ref this.x; + public ref int X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref int Y => ref this.y; + public ref int Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref int Z => ref this.z; + public ref int Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// [UnscopedRef] - public readonly ref int W => ref this.w; + public ref int W => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -110,28 +111,28 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 XY => ref *(Int2*)UndefinedData; + public ref Int2 XY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 XZ => ref *(Int2*)UndefinedData; + public ref Int2 XZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 XW => ref *(Int2*)UndefinedData; + public ref Int2 XW => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 YX => ref *(Int2*)UndefinedData; + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -145,28 +146,28 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 YZ => ref *(Int2*)UndefinedData; + public ref Int2 YZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 YW => ref *(Int2*)UndefinedData; + public ref Int2 YW => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 ZX => ref *(Int2*)UndefinedData; + public ref Int2 ZX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 ZY => ref *(Int2*)UndefinedData; + public ref Int2 ZY => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -180,28 +181,28 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 ZW => ref *(Int2*)UndefinedData; + public ref Int2 ZW => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 WX => ref *(Int2*)UndefinedData; + public ref Int2 WX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 WY => ref *(Int2*)UndefinedData; + public ref Int2 WY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 WZ => ref *(Int2*)UndefinedData; + public ref Int2 WZ => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -257,14 +258,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XYZ => ref *(Int3*)UndefinedData; + public ref Int3 XYZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XYW => ref *(Int3*)UndefinedData; + public ref Int3 XYW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -278,7 +279,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XZY => ref *(Int3*)UndefinedData; + public ref Int3 XZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -292,7 +293,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XZW => ref *(Int3*)UndefinedData; + public ref Int3 XZW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -306,14 +307,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XWY => ref *(Int3*)UndefinedData; + public ref Int3 XWY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 XWZ => ref *(Int3*)UndefinedData; + public ref Int3 XWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -341,14 +342,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YXZ => ref *(Int3*)UndefinedData; + public ref Int3 YXZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YXW => ref *(Int3*)UndefinedData; + public ref Int3 YXW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -383,7 +384,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YZX => ref *(Int3*)UndefinedData; + public ref Int3 YZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -404,14 +405,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YZW => ref *(Int3*)UndefinedData; + public ref Int3 YZW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YWX => ref *(Int3*)UndefinedData; + public ref Int3 YWX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -425,7 +426,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 YWZ => ref *(Int3*)UndefinedData; + public ref Int3 YWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -446,7 +447,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZXY => ref *(Int3*)UndefinedData; + public ref Int3 ZXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -460,14 +461,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZXW => ref *(Int3*)UndefinedData; + public ref Int3 ZXW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZYX => ref *(Int3*)UndefinedData; + public ref Int3 ZYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -488,7 +489,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZYW => ref *(Int3*)UndefinedData; + public ref Int3 ZYW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -523,14 +524,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZWX => ref *(Int3*)UndefinedData; + public ref Int3 ZWX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ZWY => ref *(Int3*)UndefinedData; + public ref Int3 ZWY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -558,14 +559,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 WXY => ref *(Int3*)UndefinedData; + public ref Int3 WXY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 WXZ => ref *(Int3*)UndefinedData; + public ref Int3 WXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -579,7 +580,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 WYX => ref *(Int3*)UndefinedData; + public ref Int3 WYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -593,7 +594,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 WYZ => ref *(Int3*)UndefinedData; + public ref Int3 WYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -607,14 +608,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 WZX => ref *(Int3*)UndefinedData; + public ref Int3 WZX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 WZY => ref *(Int3*)UndefinedData; + public ref Int3 WZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -852,7 +853,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 XYZW => ref *(Int4*)UndefinedData; + public ref Int4 XYZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -873,7 +874,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 XYWZ => ref *(Int4*)UndefinedData; + public ref Int4 XYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -936,7 +937,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 XZYW => ref *(Int4*)UndefinedData; + public ref Int4 XZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -978,7 +979,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 XZWY => ref *(Int4*)UndefinedData; + public ref Int4 XZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1041,7 +1042,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 XWYZ => ref *(Int4*)UndefinedData; + public ref Int4 XWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1062,7 +1063,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 XWZY => ref *(Int4*)UndefinedData; + public ref Int4 XWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1188,7 +1189,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 YXZW => ref *(Int4*)UndefinedData; + public ref Int4 YXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1209,7 +1210,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 YXWZ => ref *(Int4*)UndefinedData; + public ref Int4 YXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1356,7 +1357,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 YZXW => ref *(Int4*)UndefinedData; + public ref Int4 YZXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1419,7 +1420,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 YZWX => ref *(Int4*)UndefinedData; + public ref Int4 YZWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1461,7 +1462,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 YWXZ => ref *(Int4*)UndefinedData; + public ref Int4 YWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1503,7 +1504,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 YWZX => ref *(Int4*)UndefinedData; + public ref Int4 YWZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1608,7 +1609,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ZXYW => ref *(Int4*)UndefinedData; + public ref Int4 ZXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1650,7 +1651,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ZXWY => ref *(Int4*)UndefinedData; + public ref Int4 ZXWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1692,7 +1693,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ZYXW => ref *(Int4*)UndefinedData; + public ref Int4 ZYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1755,7 +1756,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ZYWX => ref *(Int4*)UndefinedData; + public ref Int4 ZYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1902,7 +1903,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ZWXY => ref *(Int4*)UndefinedData; + public ref Int4 ZWXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1923,7 +1924,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ZWYX => ref *(Int4*)UndefinedData; + public ref Int4 ZWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2049,7 +2050,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 WXYZ => ref *(Int4*)UndefinedData; + public ref Int4 WXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2070,7 +2071,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 WXZY => ref *(Int4*)UndefinedData; + public ref Int4 WXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2133,7 +2134,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 WYXZ => ref *(Int4*)UndefinedData; + public ref Int4 WYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2175,7 +2176,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 WYZX => ref *(Int4*)UndefinedData; + public ref Int4 WYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2238,7 +2239,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 WZXY => ref *(Int4*)UndefinedData; + public ref Int4 WZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2259,7 +2260,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 WZYX => ref *(Int4*)UndefinedData; + public ref Int4 WZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2454,25 +2455,25 @@ public unsafe partial struct Int4 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref int R => ref this.x; + public ref int R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref int G => ref this.y; + public ref int G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref int B => ref this.z; + public ref int B => ref this.z; /// /// Gets a reference to the value representing the A component. /// [UnscopedRef] - public readonly ref int A => ref this.w; + public ref int A => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -2486,28 +2487,28 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 RG => ref *(Int2*)UndefinedData; + public ref Int2 RG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 RB => ref *(Int2*)UndefinedData; + public ref Int2 RB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 RA => ref *(Int2*)UndefinedData; + public ref Int2 RA => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 GR => ref *(Int2*)UndefinedData; + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2521,28 +2522,28 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 GB => ref *(Int2*)UndefinedData; + public ref Int2 GB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 GA => ref *(Int2*)UndefinedData; + public ref Int2 GA => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 BR => ref *(Int2*)UndefinedData; + public ref Int2 BR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 BG => ref *(Int2*)UndefinedData; + public ref Int2 BG => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2556,28 +2557,28 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 BA => ref *(Int2*)UndefinedData; + public ref Int2 BA => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 AR => ref *(Int2*)UndefinedData; + public ref Int2 AR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 AG => ref *(Int2*)UndefinedData; + public ref Int2 AG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int2 AB => ref *(Int2*)UndefinedData; + public ref Int2 AB => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2633,14 +2634,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RGB => ref *(Int3*)UndefinedData; + public ref Int3 RGB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RGA => ref *(Int3*)UndefinedData; + public ref Int3 RGA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2654,7 +2655,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RBG => ref *(Int3*)UndefinedData; + public ref Int3 RBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2668,7 +2669,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RBA => ref *(Int3*)UndefinedData; + public ref Int3 RBA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2682,14 +2683,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RAG => ref *(Int3*)UndefinedData; + public ref Int3 RAG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 RAB => ref *(Int3*)UndefinedData; + public ref Int3 RAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2717,14 +2718,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GRB => ref *(Int3*)UndefinedData; + public ref Int3 GRB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GRA => ref *(Int3*)UndefinedData; + public ref Int3 GRA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2759,7 +2760,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GBR => ref *(Int3*)UndefinedData; + public ref Int3 GBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2780,14 +2781,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GBA => ref *(Int3*)UndefinedData; + public ref Int3 GBA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GAR => ref *(Int3*)UndefinedData; + public ref Int3 GAR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2801,7 +2802,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 GAB => ref *(Int3*)UndefinedData; + public ref Int3 GAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2822,7 +2823,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BRG => ref *(Int3*)UndefinedData; + public ref Int3 BRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2836,14 +2837,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BRA => ref *(Int3*)UndefinedData; + public ref Int3 BRA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BGR => ref *(Int3*)UndefinedData; + public ref Int3 BGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2864,7 +2865,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BGA => ref *(Int3*)UndefinedData; + public ref Int3 BGA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2899,14 +2900,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BAR => ref *(Int3*)UndefinedData; + public ref Int3 BAR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 BAG => ref *(Int3*)UndefinedData; + public ref Int3 BAG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2934,14 +2935,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ARG => ref *(Int3*)UndefinedData; + public ref Int3 ARG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ARB => ref *(Int3*)UndefinedData; + public ref Int3 ARB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2955,7 +2956,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 AGR => ref *(Int3*)UndefinedData; + public ref Int3 AGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2969,7 +2970,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 AGB => ref *(Int3*)UndefinedData; + public ref Int3 AGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2983,14 +2984,14 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ABR => ref *(Int3*)UndefinedData; + public ref Int3 ABR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int3 ABG => ref *(Int3*)UndefinedData; + public ref Int3 ABG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -3228,7 +3229,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 RGBA => ref *(Int4*)UndefinedData; + public ref Int4 RGBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3249,7 +3250,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 RGAB => ref *(Int4*)UndefinedData; + public ref Int4 RGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3312,7 +3313,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 RBGA => ref *(Int4*)UndefinedData; + public ref Int4 RBGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3354,7 +3355,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 RBAG => ref *(Int4*)UndefinedData; + public ref Int4 RBAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3417,7 +3418,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 RAGB => ref *(Int4*)UndefinedData; + public ref Int4 RAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3438,7 +3439,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 RABG => ref *(Int4*)UndefinedData; + public ref Int4 RABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3564,7 +3565,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 GRBA => ref *(Int4*)UndefinedData; + public ref Int4 GRBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3585,7 +3586,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 GRAB => ref *(Int4*)UndefinedData; + public ref Int4 GRAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3732,7 +3733,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 GBRA => ref *(Int4*)UndefinedData; + public ref Int4 GBRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3795,7 +3796,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 GBAR => ref *(Int4*)UndefinedData; + public ref Int4 GBAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3837,7 +3838,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 GARB => ref *(Int4*)UndefinedData; + public ref Int4 GARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3879,7 +3880,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 GABR => ref *(Int4*)UndefinedData; + public ref Int4 GABR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3984,7 +3985,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 BRGA => ref *(Int4*)UndefinedData; + public ref Int4 BRGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4026,7 +4027,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 BRAG => ref *(Int4*)UndefinedData; + public ref Int4 BRAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4068,7 +4069,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 BGRA => ref *(Int4*)UndefinedData; + public ref Int4 BGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4131,7 +4132,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 BGAR => ref *(Int4*)UndefinedData; + public ref Int4 BGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4278,7 +4279,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 BARG => ref *(Int4*)UndefinedData; + public ref Int4 BARG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4299,7 +4300,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 BAGR => ref *(Int4*)UndefinedData; + public ref Int4 BAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4425,7 +4426,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ARGB => ref *(Int4*)UndefinedData; + public ref Int4 ARGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4446,7 +4447,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ARBG => ref *(Int4*)UndefinedData; + public ref Int4 ARBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4509,7 +4510,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 AGRB => ref *(Int4*)UndefinedData; + public ref Int4 AGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4551,7 +4552,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 AGBR => ref *(Int4*)UndefinedData; + public ref Int4 AGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4614,7 +4615,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ABRG => ref *(Int4*)UndefinedData; + public ref Int4 ABRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4635,7 +4636,7 @@ public unsafe partial struct Int4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref Int4 ABGR => ref *(Int4*)UndefinedData; + public ref Int4 ABGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index 50b5c630..05247962 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -35,18 +35,24 @@ public unsafe partial struct Int1x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref int this[int row] => ref *(int*)UndefinedData; + public ref int this[int row] => ref *(int*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -54,9 +60,12 @@ public unsafe partial struct Int1x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -65,15 +74,18 @@ public unsafe partial struct Int1x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -343,18 +355,24 @@ public unsafe partial struct Int1x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + public ref Int2 this[int row] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -362,9 +380,12 @@ public unsafe partial struct Int1x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -373,21 +394,24 @@ public unsafe partial struct Int1x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -753,18 +777,24 @@ public unsafe partial struct Int1x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + public ref Int3 this[int row] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -772,9 +802,12 @@ public unsafe partial struct Int1x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -783,27 +816,30 @@ public unsafe partial struct Int1x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -1175,18 +1211,24 @@ public unsafe partial struct Int1x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + public ref Int4 this[int row] => ref *(Int4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1194,9 +1236,12 @@ public unsafe partial struct Int1x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1205,33 +1250,36 @@ public unsafe partial struct Int1x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref int M14 => ref this.m14; + public ref int M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -1594,18 +1642,24 @@ public unsafe partial struct Int2x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref int this[int row] => ref *(int*)UndefinedData; + public ref int this[int row] => ref *(int*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1613,9 +1667,12 @@ public unsafe partial struct Int2x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1624,21 +1681,24 @@ public unsafe partial struct Int2x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -2008,18 +2068,24 @@ public unsafe partial struct Int2x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + public ref Int2 this[int row] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2027,9 +2093,12 @@ public unsafe partial struct Int2x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2038,33 +2107,36 @@ public unsafe partial struct Int2x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -2372,18 +2444,24 @@ public unsafe partial struct Int2x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + public ref Int3 this[int row] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2391,9 +2469,12 @@ public unsafe partial struct Int2x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2402,45 +2483,48 @@ public unsafe partial struct Int2x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref int M23 => ref this.m23; + public ref int M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -2846,18 +2930,24 @@ public unsafe partial struct Int2x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + public ref Int4 this[int row] => ref *(Int4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2865,9 +2955,12 @@ public unsafe partial struct Int2x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2876,57 +2969,60 @@ public unsafe partial struct Int2x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref int M14 => ref this.m14; + public ref int M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref int M23 => ref this.m23; + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref int M24 => ref this.m24; + public ref int M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -3292,18 +3388,24 @@ public unsafe partial struct Int3x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref int this[int row] => ref *(int*)UndefinedData; + public ref int this[int row] => ref *(int*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3311,9 +3413,12 @@ public unsafe partial struct Int3x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3322,27 +3427,30 @@ public unsafe partial struct Int3x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -3726,18 +3834,24 @@ public unsafe partial struct Int3x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + public ref Int2 this[int row] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3745,9 +3859,12 @@ public unsafe partial struct Int3x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3756,45 +3873,48 @@ public unsafe partial struct Int3x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref int M32 => ref this.m32; + public ref int M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -4207,18 +4327,24 @@ public unsafe partial struct Int3x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + public ref Int3 this[int row] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4226,9 +4352,12 @@ public unsafe partial struct Int3x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4237,63 +4366,66 @@ public unsafe partial struct Int3x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref int M23 => ref this.m23; + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref int M32 => ref this.m32; + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref int M33 => ref this.m33; + public ref int M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -4643,18 +4775,24 @@ public unsafe partial struct Int3x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + public ref Int4 this[int row] => ref *(Int4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4662,9 +4800,12 @@ public unsafe partial struct Int3x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4673,81 +4814,84 @@ public unsafe partial struct Int3x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref int M14 => ref this.m14; + public ref int M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref int M23 => ref this.m23; + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref int M24 => ref this.m24; + public ref int M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref int M32 => ref this.m32; + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref int M33 => ref this.m33; + public ref int M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref int M34 => ref this.m34; + public ref int M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -5122,18 +5266,24 @@ public unsafe partial struct Int4x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref int this[int row] => ref *(int*)UndefinedData; + public ref int this[int row] => ref *(int*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5141,9 +5291,12 @@ public unsafe partial struct Int4x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5152,33 +5305,36 @@ public unsafe partial struct Int4x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref int M41 => ref this.m41; + public ref int M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -5576,18 +5732,24 @@ public unsafe partial struct Int4x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + public ref Int2 this[int row] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5595,9 +5757,12 @@ public unsafe partial struct Int4x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5606,57 +5771,60 @@ public unsafe partial struct Int4x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref int M32 => ref this.m32; + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref int M41 => ref this.m41; + public ref int M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref int M42 => ref this.m42; + public ref int M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -6090,18 +6258,24 @@ public unsafe partial struct Int4x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + public ref Int3 this[int row] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -6109,9 +6283,12 @@ public unsafe partial struct Int4x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -6120,81 +6297,84 @@ public unsafe partial struct Int4x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref int M23 => ref this.m23; + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref int M32 => ref this.m32; + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref int M33 => ref this.m33; + public ref int M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref int M41 => ref this.m41; + public ref int M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref int M42 => ref this.m42; + public ref int M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref int M43 => ref this.m43; + public ref int M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -6656,18 +6836,24 @@ public unsafe partial struct Int4x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + public ref Int4 this[int row] => ref *(Int4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -6675,9 +6861,12 @@ public unsafe partial struct Int4x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -6686,105 +6875,108 @@ public unsafe partial struct Int4x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref int M11 => ref this.m11; + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref int M12 => ref this.m12; + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref int M13 => ref this.m13; + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref int M14 => ref this.m14; + public ref int M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref int M21 => ref this.m21; + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref int M22 => ref this.m22; + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref int M23 => ref this.m23; + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref int M24 => ref this.m24; + public ref int M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref int M31 => ref this.m31; + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref int M32 => ref this.m32; + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref int M33 => ref this.m33; + public ref int M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref int M34 => ref this.m34; + public ref int M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref int M41 => ref this.m41; + public ref int M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref int M42 => ref this.m42; + public ref int M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref int M43 => ref this.m43; + public ref int M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// [UnscopedRef] - public readonly ref int M44 => ref this.m44; + public ref int M44 => ref this.m44; /// /// Creates a new value with the same value for all its components. diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 514127f9..952d5834 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -150,18 +150,24 @@ public unsafe partial struct <#=fullTypeName#> /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref <#=rowTypeName#> this[int row] => ref *(<#=rowTypeName#>*)UndefinedData; + public ref <#=rowTypeName#> this[int row] => ref *(<#=rowTypeName#>*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(<#=typeName#>2*)UndefinedData; + public ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(<#=typeName#>2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -169,9 +175,12 @@ public unsafe partial struct <#=fullTypeName#> /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(<#=typeName#>3*)UndefinedData; + public ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(<#=typeName#>3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -180,9 +189,12 @@ public unsafe partial struct <#=fullTypeName#> /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(<#=typeName#>4*)UndefinedData; + public ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(<#=typeName#>4*)UndefinedData; <# for (int i = 1; i <= rows; i++) for (int j = 1; j <= columns; j++) @@ -197,14 +209,14 @@ public unsafe partial struct <#=fullTypeName#> { #> [UnscopedRef] - public readonly ref <#=elementTypeName#> M<#=i#><#=j#> => ref Unsafe.As(ref this.m<#=i#><#=j#>); + public ref <#=elementTypeName#> M<#=i#><#=j#> => ref Unsafe.As(ref this.m<#=i#><#=j#>); <# } else { #> [UnscopedRef] - public readonly ref <#=elementTypeName#> M<#=i#><#=j#> => ref this.m<#=i#><#=j#>; + public ref <#=elementTypeName#> M<#=i#><#=j#> => ref this.m<#=i#><#=j#>; <# } #> diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs index b61dfc08..5ad06ea4 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs @@ -35,7 +35,8 @@ public unsafe partial struct UInt2 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref uint this[int i] => ref *(uint*)UndefinedData; + [UnscopedRef] + public ref uint this[int i] => ref *(uint*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -61,13 +62,13 @@ public unsafe partial struct UInt2 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref uint X => ref this.x; + public ref uint X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref uint Y => ref this.y; + public ref uint Y => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -81,14 +82,14 @@ public unsafe partial struct UInt2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData; + public ref UInt2 XY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData; + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -269,13 +270,13 @@ public unsafe partial struct UInt2 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref uint R => ref this.x; + public ref uint R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref uint G => ref this.y; + public ref uint G => ref this.y; /// /// Gets a readonly reference to the value with the components , . @@ -289,14 +290,14 @@ public unsafe partial struct UInt2 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData; + public ref UInt2 RG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData; + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs index 73399234..cee8dfe4 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs @@ -38,7 +38,8 @@ public unsafe partial struct UInt3 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref uint this[int i] => ref *(uint*)UndefinedData; + [UnscopedRef] + public ref uint this[int i] => ref *(uint*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -69,19 +70,19 @@ public unsafe partial struct UInt3 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref uint X => ref this.x; + public ref uint X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref uint Y => ref this.y; + public ref uint Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref uint Z => ref this.z; + public ref uint Z => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -95,21 +96,21 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData; + public ref UInt2 XY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 XZ => ref *(UInt2*)UndefinedData; + public ref UInt2 XZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData; + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -123,21 +124,21 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 YZ => ref *(UInt2*)UndefinedData; + public ref UInt2 YZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 ZX => ref *(UInt2*)UndefinedData; + public ref UInt2 ZX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 ZY => ref *(UInt2*)UndefinedData; + public ref UInt2 ZY => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -186,7 +187,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XYZ => ref *(UInt3*)UndefinedData; + public ref UInt3 XYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -200,7 +201,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XZY => ref *(UInt3*)UndefinedData; + public ref UInt3 XZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -228,7 +229,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YXZ => ref *(UInt3*)UndefinedData; + public ref UInt3 YXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -256,7 +257,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YZX => ref *(UInt3*)UndefinedData; + public ref UInt3 YZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -284,7 +285,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZXY => ref *(UInt3*)UndefinedData; + public ref UInt3 ZXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -298,7 +299,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZYX => ref *(UInt3*)UndefinedData; + public ref UInt3 ZYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -906,19 +907,19 @@ public unsafe partial struct UInt3 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref uint R => ref this.x; + public ref uint R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref uint G => ref this.y; + public ref uint G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref uint B => ref this.z; + public ref uint B => ref this.z; /// /// Gets a readonly reference to the value with the components , . @@ -932,21 +933,21 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData; + public ref UInt2 RG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 RB => ref *(UInt2*)UndefinedData; + public ref UInt2 RB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData; + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -960,21 +961,21 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 GB => ref *(UInt2*)UndefinedData; + public ref UInt2 GB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 BR => ref *(UInt2*)UndefinedData; + public ref UInt2 BR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 BG => ref *(UInt2*)UndefinedData; + public ref UInt2 BG => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -1023,7 +1024,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RGB => ref *(UInt3*)UndefinedData; + public ref UInt3 RGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1037,7 +1038,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RBG => ref *(UInt3*)UndefinedData; + public ref UInt3 RBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1065,7 +1066,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GRB => ref *(UInt3*)UndefinedData; + public ref UInt3 GRB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1093,7 +1094,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GBR => ref *(UInt3*)UndefinedData; + public ref UInt3 GBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1121,7 +1122,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BRG => ref *(UInt3*)UndefinedData; + public ref UInt3 BRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -1135,7 +1136,7 @@ public unsafe partial struct UInt3 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BGR => ref *(UInt3*)UndefinedData; + public ref UInt3 BGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs index d4234fb7..5146b413 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs @@ -41,7 +41,8 @@ public unsafe partial struct UInt4 /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref uint this[int i] => ref *(uint*)UndefinedData; + [UnscopedRef] + public ref uint this[int i] => ref *(uint*)UndefinedData; /// /// Gets a value with all components set to 0. @@ -77,25 +78,25 @@ public unsafe partial struct UInt4 /// Gets a reference to the value representing the X component. /// [UnscopedRef] - public readonly ref uint X => ref this.x; + public ref uint X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] - public readonly ref uint Y => ref this.y; + public ref uint Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// [UnscopedRef] - public readonly ref uint Z => ref this.z; + public ref uint Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// [UnscopedRef] - public readonly ref uint W => ref this.w; + public ref uint W => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -109,28 +110,28 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData; + public ref UInt2 XY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 XZ => ref *(UInt2*)UndefinedData; + public ref UInt2 XZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 XW => ref *(UInt2*)UndefinedData; + public ref UInt2 XW => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData; + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -144,28 +145,28 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 YZ => ref *(UInt2*)UndefinedData; + public ref UInt2 YZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 YW => ref *(UInt2*)UndefinedData; + public ref UInt2 YW => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 ZX => ref *(UInt2*)UndefinedData; + public ref UInt2 ZX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 ZY => ref *(UInt2*)UndefinedData; + public ref UInt2 ZY => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -179,28 +180,28 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 ZW => ref *(UInt2*)UndefinedData; + public ref UInt2 ZW => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 WX => ref *(UInt2*)UndefinedData; + public ref UInt2 WX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 WY => ref *(UInt2*)UndefinedData; + public ref UInt2 WY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 WZ => ref *(UInt2*)UndefinedData; + public ref UInt2 WZ => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -256,14 +257,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XYZ => ref *(UInt3*)UndefinedData; + public ref UInt3 XYZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XYW => ref *(UInt3*)UndefinedData; + public ref UInt3 XYW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -277,7 +278,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XZY => ref *(UInt3*)UndefinedData; + public ref UInt3 XZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -291,7 +292,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XZW => ref *(UInt3*)UndefinedData; + public ref UInt3 XZW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -305,14 +306,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XWY => ref *(UInt3*)UndefinedData; + public ref UInt3 XWY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 XWZ => ref *(UInt3*)UndefinedData; + public ref UInt3 XWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -340,14 +341,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YXZ => ref *(UInt3*)UndefinedData; + public ref UInt3 YXZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YXW => ref *(UInt3*)UndefinedData; + public ref UInt3 YXW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -382,7 +383,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YZX => ref *(UInt3*)UndefinedData; + public ref UInt3 YZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -403,14 +404,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YZW => ref *(UInt3*)UndefinedData; + public ref UInt3 YZW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YWX => ref *(UInt3*)UndefinedData; + public ref UInt3 YWX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -424,7 +425,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 YWZ => ref *(UInt3*)UndefinedData; + public ref UInt3 YWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -445,7 +446,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZXY => ref *(UInt3*)UndefinedData; + public ref UInt3 ZXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -459,14 +460,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZXW => ref *(UInt3*)UndefinedData; + public ref UInt3 ZXW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZYX => ref *(UInt3*)UndefinedData; + public ref UInt3 ZYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -487,7 +488,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZYW => ref *(UInt3*)UndefinedData; + public ref UInt3 ZYW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -522,14 +523,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZWX => ref *(UInt3*)UndefinedData; + public ref UInt3 ZWX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ZWY => ref *(UInt3*)UndefinedData; + public ref UInt3 ZWY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -557,14 +558,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 WXY => ref *(UInt3*)UndefinedData; + public ref UInt3 WXY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 WXZ => ref *(UInt3*)UndefinedData; + public ref UInt3 WXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -578,7 +579,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 WYX => ref *(UInt3*)UndefinedData; + public ref UInt3 WYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -592,7 +593,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 WYZ => ref *(UInt3*)UndefinedData; + public ref UInt3 WYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -606,14 +607,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 WZX => ref *(UInt3*)UndefinedData; + public ref UInt3 WZX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 WZY => ref *(UInt3*)UndefinedData; + public ref UInt3 WZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -851,7 +852,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 XYZW => ref *(UInt4*)UndefinedData; + public ref UInt4 XYZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -872,7 +873,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 XYWZ => ref *(UInt4*)UndefinedData; + public ref UInt4 XYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -935,7 +936,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 XZYW => ref *(UInt4*)UndefinedData; + public ref UInt4 XZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -977,7 +978,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 XZWY => ref *(UInt4*)UndefinedData; + public ref UInt4 XZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1040,7 +1041,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 XWYZ => ref *(UInt4*)UndefinedData; + public ref UInt4 XWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1061,7 +1062,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 XWZY => ref *(UInt4*)UndefinedData; + public ref UInt4 XWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1187,7 +1188,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 YXZW => ref *(UInt4*)UndefinedData; + public ref UInt4 YXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1208,7 +1209,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 YXWZ => ref *(UInt4*)UndefinedData; + public ref UInt4 YXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1355,7 +1356,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 YZXW => ref *(UInt4*)UndefinedData; + public ref UInt4 YZXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1418,7 +1419,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 YZWX => ref *(UInt4*)UndefinedData; + public ref UInt4 YZWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1460,7 +1461,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 YWXZ => ref *(UInt4*)UndefinedData; + public ref UInt4 YWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1502,7 +1503,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 YWZX => ref *(UInt4*)UndefinedData; + public ref UInt4 YWZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1607,7 +1608,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ZXYW => ref *(UInt4*)UndefinedData; + public ref UInt4 ZXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1649,7 +1650,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ZXWY => ref *(UInt4*)UndefinedData; + public ref UInt4 ZXWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1691,7 +1692,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ZYXW => ref *(UInt4*)UndefinedData; + public ref UInt4 ZYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1754,7 +1755,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ZYWX => ref *(UInt4*)UndefinedData; + public ref UInt4 ZYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1901,7 +1902,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ZWXY => ref *(UInt4*)UndefinedData; + public ref UInt4 ZWXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -1922,7 +1923,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ZWYX => ref *(UInt4*)UndefinedData; + public ref UInt4 ZWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2048,7 +2049,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 WXYZ => ref *(UInt4*)UndefinedData; + public ref UInt4 WXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2069,7 +2070,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 WXZY => ref *(UInt4*)UndefinedData; + public ref UInt4 WXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2132,7 +2133,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 WYXZ => ref *(UInt4*)UndefinedData; + public ref UInt4 WYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2174,7 +2175,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 WYZX => ref *(UInt4*)UndefinedData; + public ref UInt4 WYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2237,7 +2238,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 WZXY => ref *(UInt4*)UndefinedData; + public ref UInt4 WZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2258,7 +2259,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 WZYX => ref *(UInt4*)UndefinedData; + public ref UInt4 WZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -2453,25 +2454,25 @@ public unsafe partial struct UInt4 /// Gets a reference to the value representing the R component. /// [UnscopedRef] - public readonly ref uint R => ref this.x; + public ref uint R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] - public readonly ref uint G => ref this.y; + public ref uint G => ref this.y; /// /// Gets a reference to the value representing the B component. /// [UnscopedRef] - public readonly ref uint B => ref this.z; + public ref uint B => ref this.z; /// /// Gets a reference to the value representing the A component. /// [UnscopedRef] - public readonly ref uint A => ref this.w; + public ref uint A => ref this.w; /// /// Gets a readonly reference to the value with the components , . @@ -2485,28 +2486,28 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData; + public ref UInt2 RG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 RB => ref *(UInt2*)UndefinedData; + public ref UInt2 RB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 RA => ref *(UInt2*)UndefinedData; + public ref UInt2 RA => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData; + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2520,28 +2521,28 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 GB => ref *(UInt2*)UndefinedData; + public ref UInt2 GB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 GA => ref *(UInt2*)UndefinedData; + public ref UInt2 GA => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 BR => ref *(UInt2*)UndefinedData; + public ref UInt2 BR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 BG => ref *(UInt2*)UndefinedData; + public ref UInt2 BG => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2555,28 +2556,28 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 BA => ref *(UInt2*)UndefinedData; + public ref UInt2 BA => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 AR => ref *(UInt2*)UndefinedData; + public ref UInt2 AR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 AG => ref *(UInt2*)UndefinedData; + public ref UInt2 AG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt2 AB => ref *(UInt2*)UndefinedData; + public ref UInt2 AB => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . @@ -2632,14 +2633,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RGB => ref *(UInt3*)UndefinedData; + public ref UInt3 RGB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RGA => ref *(UInt3*)UndefinedData; + public ref UInt3 RGA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2653,7 +2654,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RBG => ref *(UInt3*)UndefinedData; + public ref UInt3 RBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2667,7 +2668,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RBA => ref *(UInt3*)UndefinedData; + public ref UInt3 RBA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2681,14 +2682,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RAG => ref *(UInt3*)UndefinedData; + public ref UInt3 RAG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 RAB => ref *(UInt3*)UndefinedData; + public ref UInt3 RAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2716,14 +2717,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GRB => ref *(UInt3*)UndefinedData; + public ref UInt3 GRB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GRA => ref *(UInt3*)UndefinedData; + public ref UInt3 GRA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2758,7 +2759,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GBR => ref *(UInt3*)UndefinedData; + public ref UInt3 GBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2779,14 +2780,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GBA => ref *(UInt3*)UndefinedData; + public ref UInt3 GBA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GAR => ref *(UInt3*)UndefinedData; + public ref UInt3 GAR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2800,7 +2801,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 GAB => ref *(UInt3*)UndefinedData; + public ref UInt3 GAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2821,7 +2822,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BRG => ref *(UInt3*)UndefinedData; + public ref UInt3 BRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2835,14 +2836,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BRA => ref *(UInt3*)UndefinedData; + public ref UInt3 BRA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BGR => ref *(UInt3*)UndefinedData; + public ref UInt3 BGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2863,7 +2864,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BGA => ref *(UInt3*)UndefinedData; + public ref UInt3 BGA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2898,14 +2899,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BAR => ref *(UInt3*)UndefinedData; + public ref UInt3 BAR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 BAG => ref *(UInt3*)UndefinedData; + public ref UInt3 BAG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2933,14 +2934,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ARG => ref *(UInt3*)UndefinedData; + public ref UInt3 ARG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ARB => ref *(UInt3*)UndefinedData; + public ref UInt3 ARB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2954,7 +2955,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 AGR => ref *(UInt3*)UndefinedData; + public ref UInt3 AGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2968,7 +2969,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 AGB => ref *(UInt3*)UndefinedData; + public ref UInt3 AGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -2982,14 +2983,14 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ABR => ref *(UInt3*)UndefinedData; + public ref UInt3 ABR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt3 ABG => ref *(UInt3*)UndefinedData; + public ref UInt3 ABG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . @@ -3227,7 +3228,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 RGBA => ref *(UInt4*)UndefinedData; + public ref UInt4 RGBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3248,7 +3249,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 RGAB => ref *(UInt4*)UndefinedData; + public ref UInt4 RGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3311,7 +3312,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 RBGA => ref *(UInt4*)UndefinedData; + public ref UInt4 RBGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3353,7 +3354,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 RBAG => ref *(UInt4*)UndefinedData; + public ref UInt4 RBAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3416,7 +3417,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 RAGB => ref *(UInt4*)UndefinedData; + public ref UInt4 RAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3437,7 +3438,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 RABG => ref *(UInt4*)UndefinedData; + public ref UInt4 RABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3563,7 +3564,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 GRBA => ref *(UInt4*)UndefinedData; + public ref UInt4 GRBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3584,7 +3585,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 GRAB => ref *(UInt4*)UndefinedData; + public ref UInt4 GRAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3731,7 +3732,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 GBRA => ref *(UInt4*)UndefinedData; + public ref UInt4 GBRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3794,7 +3795,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 GBAR => ref *(UInt4*)UndefinedData; + public ref UInt4 GBAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3836,7 +3837,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 GARB => ref *(UInt4*)UndefinedData; + public ref UInt4 GARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3878,7 +3879,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 GABR => ref *(UInt4*)UndefinedData; + public ref UInt4 GABR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -3983,7 +3984,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 BRGA => ref *(UInt4*)UndefinedData; + public ref UInt4 BRGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4025,7 +4026,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 BRAG => ref *(UInt4*)UndefinedData; + public ref UInt4 BRAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4067,7 +4068,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 BGRA => ref *(UInt4*)UndefinedData; + public ref UInt4 BGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4130,7 +4131,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 BGAR => ref *(UInt4*)UndefinedData; + public ref UInt4 BGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4277,7 +4278,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 BARG => ref *(UInt4*)UndefinedData; + public ref UInt4 BARG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4298,7 +4299,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 BAGR => ref *(UInt4*)UndefinedData; + public ref UInt4 BAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4424,7 +4425,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ARGB => ref *(UInt4*)UndefinedData; + public ref UInt4 ARGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4445,7 +4446,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ARBG => ref *(UInt4*)UndefinedData; + public ref UInt4 ARBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4508,7 +4509,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 AGRB => ref *(UInt4*)UndefinedData; + public ref UInt4 AGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4550,7 +4551,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 AGBR => ref *(UInt4*)UndefinedData; + public ref UInt4 AGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4613,7 +4614,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ABRG => ref *(UInt4*)UndefinedData; + public ref UInt4 ABRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . @@ -4634,7 +4635,7 @@ public unsafe partial struct UInt4 /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] - public readonly ref UInt4 ABGR => ref *(UInt4*)UndefinedData; + public ref UInt4 ABGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . diff --git a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs index b3bc25db..47ab580e 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs @@ -34,18 +34,24 @@ public unsafe partial struct UInt1x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + public ref uint this[int row] => ref *(uint*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -53,9 +59,12 @@ public unsafe partial struct UInt1x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -64,15 +73,18 @@ public unsafe partial struct UInt1x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -317,18 +329,24 @@ public unsafe partial struct UInt1x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -336,9 +354,12 @@ public unsafe partial struct UInt1x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -347,21 +368,24 @@ public unsafe partial struct UInt1x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -618,18 +642,24 @@ public unsafe partial struct UInt1x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -637,9 +667,12 @@ public unsafe partial struct UInt1x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -648,27 +681,30 @@ public unsafe partial struct UInt1x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -931,18 +967,24 @@ public unsafe partial struct UInt1x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -950,9 +992,12 @@ public unsafe partial struct UInt1x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -961,33 +1006,36 @@ public unsafe partial struct UInt1x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref uint M14 => ref this.m14; + public ref uint M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -1241,18 +1289,24 @@ public unsafe partial struct UInt2x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + public ref uint this[int row] => ref *(uint*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1260,9 +1314,12 @@ public unsafe partial struct UInt2x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1271,21 +1328,24 @@ public unsafe partial struct UInt2x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -1560,18 +1620,24 @@ public unsafe partial struct UInt2x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1579,9 +1645,12 @@ public unsafe partial struct UInt2x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1590,33 +1659,36 @@ public unsafe partial struct UInt2x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -1899,18 +1971,24 @@ public unsafe partial struct UInt2x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1918,9 +1996,12 @@ public unsafe partial struct UInt2x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -1929,45 +2010,48 @@ public unsafe partial struct UInt2x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref uint M23 => ref this.m23; + public ref uint M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -2264,18 +2348,24 @@ public unsafe partial struct UInt2x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2283,9 +2373,12 @@ public unsafe partial struct UInt2x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2294,57 +2387,60 @@ public unsafe partial struct UInt2x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref uint M14 => ref this.m14; + public ref uint M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref uint M23 => ref this.m23; + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref uint M24 => ref this.m24; + public ref uint M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -2601,18 +2697,24 @@ public unsafe partial struct UInt3x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + public ref uint this[int row] => ref *(uint*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2620,9 +2722,12 @@ public unsafe partial struct UInt3x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2631,27 +2736,30 @@ public unsafe partial struct UInt3x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -2940,18 +3048,24 @@ public unsafe partial struct UInt3x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2959,9 +3073,12 @@ public unsafe partial struct UInt3x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -2970,45 +3087,48 @@ public unsafe partial struct UInt3x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref uint M32 => ref this.m32; + public ref uint M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -3312,18 +3432,24 @@ public unsafe partial struct UInt3x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3331,9 +3457,12 @@ public unsafe partial struct UInt3x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3342,63 +3471,66 @@ public unsafe partial struct UInt3x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref uint M23 => ref this.m23; + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref uint M32 => ref this.m32; + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref uint M33 => ref this.m33; + public ref uint M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -3723,18 +3855,24 @@ public unsafe partial struct UInt3x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3742,9 +3880,12 @@ public unsafe partial struct UInt3x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -3753,81 +3894,84 @@ public unsafe partial struct UInt3x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref uint M14 => ref this.m14; + public ref uint M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref uint M23 => ref this.m23; + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref uint M24 => ref this.m24; + public ref uint M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref uint M32 => ref this.m32; + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref uint M33 => ref this.m33; + public ref uint M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref uint M34 => ref this.m34; + public ref uint M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -4093,18 +4237,24 @@ public unsafe partial struct UInt4x1 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + public ref uint this[int row] => ref *(uint*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4112,9 +4262,12 @@ public unsafe partial struct UInt4x1 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4123,33 +4276,36 @@ public unsafe partial struct UInt4x1 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref uint M41 => ref this.m41; + public ref uint M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -4452,18 +4608,24 @@ public unsafe partial struct UInt4x2 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4471,9 +4633,12 @@ public unsafe partial struct UInt4x2 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4482,57 +4647,60 @@ public unsafe partial struct UInt4x2 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref uint M32 => ref this.m32; + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref uint M41 => ref this.m41; + public ref uint M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref uint M42 => ref this.m42; + public ref uint M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -4857,18 +5025,24 @@ public unsafe partial struct UInt4x3 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4876,9 +5050,12 @@ public unsafe partial struct UInt4x3 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -4887,81 +5064,84 @@ public unsafe partial struct UInt4x3 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref uint M23 => ref this.m23; + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref uint M32 => ref this.m32; + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref uint M33 => ref this.m33; + public ref uint M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref uint M41 => ref this.m41; + public ref uint M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref uint M42 => ref this.m42; + public ref uint M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref uint M43 => ref this.m43; + public ref uint M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -5314,18 +5494,24 @@ public unsafe partial struct UInt4x4 /// Gets a reference to a specific row in the current instance. /// /// The row to access. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. /// /// The identifier of the first item to index. /// The identifier of the second item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5333,9 +5519,12 @@ public unsafe partial struct UInt4x4 /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// [UnscopedRef] - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; /// /// Gets a swizzled reference to a specific sequence of items in the current instance. @@ -5344,105 +5533,108 @@ public unsafe partial struct UInt4x4 /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// s [UnscopedRef] - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the component at position [1, 1]. /// [UnscopedRef] - public readonly ref uint M11 => ref this.m11; + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// [UnscopedRef] - public readonly ref uint M12 => ref this.m12; + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// [UnscopedRef] - public readonly ref uint M13 => ref this.m13; + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// [UnscopedRef] - public readonly ref uint M14 => ref this.m14; + public ref uint M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// [UnscopedRef] - public readonly ref uint M21 => ref this.m21; + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// [UnscopedRef] - public readonly ref uint M22 => ref this.m22; + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// [UnscopedRef] - public readonly ref uint M23 => ref this.m23; + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// [UnscopedRef] - public readonly ref uint M24 => ref this.m24; + public ref uint M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// [UnscopedRef] - public readonly ref uint M31 => ref this.m31; + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// [UnscopedRef] - public readonly ref uint M32 => ref this.m32; + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// [UnscopedRef] - public readonly ref uint M33 => ref this.m33; + public ref uint M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// [UnscopedRef] - public readonly ref uint M34 => ref this.m34; + public ref uint M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// [UnscopedRef] - public readonly ref uint M41 => ref this.m41; + public ref uint M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// [UnscopedRef] - public readonly ref uint M42 => ref this.m42; + public ref uint M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// [UnscopedRef] - public readonly ref uint M43 => ref this.m43; + public ref uint M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// [UnscopedRef] - public readonly ref uint M44 => ref this.m44; + public ref uint M44 => ref this.m44; /// /// Creates a new value with the same value for all its components. diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 110d660f..d84b74d2 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -113,7 +113,8 @@ public unsafe partial struct <#=typeName#> /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. - public readonly ref <#=hlslElementTypeName#> this[int i] => ref *(<#=hlslElementTypeName#>*)UndefinedData; + [UnscopedRef] + public ref <#=hlslElementTypeName#> this[int i] => ref *(<#=hlslElementTypeName#>*)UndefinedData; <# // Generate the true/false and zero/one properties @@ -194,7 +195,7 @@ public unsafe partial struct <#=typeName#> string propertyType = propertyName.Length == 1 ? hlslElementTypeName : $"{elementTypeName}{propertyName.Length}"; bool isReadonly = propertyName.Distinct().Count() < propertyName.Length; - string refType = isReadonly ? "ref readonly" : "ref"; + string refType = isReadonly ? "readonly ref readonly" : "ref"; // XML docs WriteLine("/// "); @@ -211,11 +212,11 @@ public unsafe partial struct <#=typeName#> if (isBoolType) { // For bool types, also reinterpret cast from int to bool (the backing field is int to ensure all 4 bytes are initialized) - WriteLine($"public readonly {refType} {propertyType} {propertyName} => ref Unsafe.As(ref this.{fieldName});"); + WriteLine($"public {refType} {propertyType} {propertyName} => ref Unsafe.As(ref this.{fieldName});"); } else { - WriteLine($"public readonly {refType} {propertyType} {propertyName} => ref this.{fieldName};"); + WriteLine($"public {refType} {propertyType} {propertyName} => ref this.{fieldName};"); } } else @@ -230,7 +231,7 @@ public unsafe partial struct <#=typeName#> // Property WriteLine("[UnscopedRef]"); - Write($"public readonly {refType} {propertyType} {propertyName} "); + Write($"public {refType} {propertyType} {propertyName} "); WriteLine($"=> ref *({propertyType}*)UndefinedData;"); } }