diff --git a/ComputeSharp.sln b/ComputeSharp.sln index ab206e9f..01972b73 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -104,21 +104,18 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.Dynamic.NuGet", "ComputeSharp.Dynamic.NuGet", "{CBA545B4-31EF-4E9F-A1A8-2A1290B54046}" ProjectSection(SolutionItems) = preProject tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj = tests\ComputeSharp.Dynamic.NuGet\ComputeSharp.Dynamic.NuGet.csproj - tests\ComputeSharp.Dynamic.NuGet\nuget.config = tests\ComputeSharp.Dynamic.NuGet\nuget.config tests\ComputeSharp.Dynamic.NuGet\Program.cs = tests\ComputeSharp.Dynamic.NuGet\Program.cs EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.Pix.NuGet", "ComputeSharp.Pix.NuGet", "{C0B903AA-F32C-4760-B4B6-199AC4FE1C5A}" ProjectSection(SolutionItems) = preProject tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj = tests\ComputeSharp.Pix.NuGet\ComputeSharp.Pix.NuGet.csproj - tests\ComputeSharp.Pix.NuGet\nuget.config = tests\ComputeSharp.Pix.NuGet\nuget.config tests\ComputeSharp.Pix.NuGet\Program.cs = tests\ComputeSharp.Pix.NuGet\Program.cs EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeSharp.NuGet", "ComputeSharp.NuGet", "{E3403F19-A0D8-4317-8A54-322C7A13F2A2}" ProjectSection(SolutionItems) = preProject tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj = tests\ComputeSharp.NuGet\ComputeSharp.NuGet.csproj - tests\ComputeSharp.NuGet\nuget.config = tests\ComputeSharp.NuGet\nuget.config tests\ComputeSharp.NuGet\Program.cs = tests\ComputeSharp.NuGet\Program.cs EndProjectSection EndProject diff --git a/Directory.Build.props b/Directory.Build.props index 6b5b8f5d..d517d3b7 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,12 +1,20 @@ true - 10.0 + 11.0 enable true $(NoWarn);MSB3270 + + https://api.nuget.org/v3/index.json; + https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json; + + + + + $(MSBuildThisFileDirectory)artifacts/ diff --git a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj index 41726b30..65673a59 100644 --- a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj +++ b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj @@ -15,6 +15,7 @@ manually linking the source files from ComputeSharp\Core in here. We only need them to extract metadata and to match members based on full name, so the types being in the generator assembly are not an issue.--> + diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs index ca1d1688..c3e5d87e 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs @@ -1,8 +1,8 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -30,7 +30,8 @@ public unsafe partial struct Bool2 /// /// 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 bool this[int i] => ref *(bool*)UndefinedData; + [UnscopedRef] + public ref bool this[int i] => ref *(bool*)UndefinedData; /// /// Gets a value with all components set to . @@ -55,357 +56,417 @@ public unsafe partial struct Bool2 /// /// Gets a reference to the value representing the X component. /// - public readonly ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.x)), 1)); + [UnscopedRef] + public ref bool X => ref Unsafe.As(ref this.x); /// /// Gets a reference to the value representing the Y component. /// - public readonly ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.y)), 1)); + [UnscopedRef] + public ref bool Y => ref Unsafe.As(ref this.y); /// /// Gets a readonly 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 readonly Bool2 XX => ref *(Bool2*)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. - public readonly ref Bool2 XY => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 XY => ref *(Bool2*)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. - public readonly ref Bool2 YX => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 YX => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 YY => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYY => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.x)), 1)); + [UnscopedRef] + public ref bool R => ref Unsafe.As(ref this.x); /// /// Gets a reference to the value representing the G component. /// - public readonly ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.y)), 1)); + [UnscopedRef] + public ref bool G => ref Unsafe.As(ref this.y); /// /// Gets a readonly 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 readonly Bool2 RR => ref *(Bool2*)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. - public readonly ref Bool2 RG => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 RG => ref *(Bool2*)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. - public readonly ref Bool2 GR => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 GR => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 GG => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGG => ref *(Bool4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs index a1f145bb..01fea3c5 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs @@ -1,8 +1,8 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -33,7 +33,8 @@ public unsafe partial struct Bool3 /// /// 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 bool this[int i] => ref *(bool*)UndefinedData; + [UnscopedRef] + public ref bool this[int i] => ref *(bool*)UndefinedData; /// /// Gets a value with all components set to . @@ -63,1435 +64,1675 @@ public unsafe partial struct Bool3 /// /// Gets a reference to the value representing the X component. /// - public readonly ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.x)), 1)); + [UnscopedRef] + public ref bool X => ref Unsafe.As(ref this.x); /// /// Gets a reference to the value representing the Y component. /// - public readonly ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.y)), 1)); + [UnscopedRef] + public ref bool Y => ref Unsafe.As(ref this.y); /// /// Gets a reference to the value representing the Z component. /// - public readonly ref bool Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.z)), 1)); + [UnscopedRef] + public ref bool Z => ref Unsafe.As(ref this.z); /// /// Gets a readonly 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 readonly Bool2 XX => ref *(Bool2*)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. - public readonly ref Bool2 XY => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 XY => ref *(Bool2*)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. - public readonly ref Bool2 XZ => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 XZ => ref *(Bool2*)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. - public readonly ref Bool2 YX => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 YX => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 YY => ref *(Bool2*)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. - public readonly ref Bool2 YZ => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 YZ => ref *(Bool2*)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. - public readonly ref Bool2 ZX => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 ZX => ref *(Bool2*)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. - public readonly ref Bool2 ZY => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 ZY => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 ZZ => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XYY => ref *(Bool3*)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. - public readonly ref Bool3 XYZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XZX => ref *(Bool3*)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. - public readonly ref Bool3 XZY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YXY => ref *(Bool3*)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. - public readonly ref Bool3 YXZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYZ => ref *(Bool3*)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. - public readonly ref Bool3 YZX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZXX => ref *(Bool3*)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. - public readonly ref Bool3 ZXY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZXZ => ref *(Bool3*)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. - public readonly ref Bool3 ZYX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.x)), 1)); + [UnscopedRef] + public ref bool R => ref Unsafe.As(ref this.x); /// /// Gets a reference to the value representing the G component. /// - public readonly ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.y)), 1)); + [UnscopedRef] + public ref bool G => ref Unsafe.As(ref this.y); /// /// Gets a reference to the value representing the B component. /// - public readonly ref bool B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.z)), 1)); + [UnscopedRef] + public ref bool B => ref Unsafe.As(ref this.z); /// /// Gets a readonly 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 readonly Bool2 RR => ref *(Bool2*)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. - public readonly ref Bool2 RG => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 RG => ref *(Bool2*)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. - public readonly ref Bool2 RB => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 RB => ref *(Bool2*)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. - public readonly ref Bool2 GR => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 GR => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 GG => ref *(Bool2*)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. - public readonly ref Bool2 GB => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 GB => ref *(Bool2*)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. - public readonly ref Bool2 BR => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 BR => ref *(Bool2*)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. - public readonly ref Bool2 BG => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 BG => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 BB => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RGG => ref *(Bool3*)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. - public readonly ref Bool3 RGB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RBR => ref *(Bool3*)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. - public readonly ref Bool3 RBG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RBB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GRG => ref *(Bool3*)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. - public readonly ref Bool3 GRB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GRB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGB => ref *(Bool3*)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. - public readonly ref Bool3 GBR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GBB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BRR => ref *(Bool3*)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. - public readonly ref Bool3 BRG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BRB => ref *(Bool3*)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. - public readonly ref Bool3 BGR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BBB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBBB => ref *(Bool4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs index 7b2aad24..3a838e9c 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs @@ -1,8 +1,8 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -36,7 +36,8 @@ public unsafe partial struct Bool4 /// /// 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 bool this[int i] => ref *(bool*)UndefinedData; + [UnscopedRef] + public ref bool this[int i] => ref *(bool*)UndefinedData; /// /// Gets a value with all components set to . @@ -71,4073 +72,4753 @@ public unsafe partial struct Bool4 /// /// Gets a reference to the value representing the X component. /// - public readonly ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.x)), 1)); + [UnscopedRef] + public ref bool X => ref Unsafe.As(ref this.x); /// /// Gets a reference to the value representing the Y component. /// - public readonly ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.y)), 1)); + [UnscopedRef] + public ref bool Y => ref Unsafe.As(ref this.y); /// /// Gets a reference to the value representing the Z component. /// - public readonly ref bool Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.z)), 1)); + [UnscopedRef] + public ref bool Z => ref Unsafe.As(ref this.z); /// /// Gets a reference to the value representing the W component. /// - public readonly ref bool W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.w)), 1)); + [UnscopedRef] + public ref bool W => ref Unsafe.As(ref this.w); /// /// Gets a readonly 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 readonly Bool2 XX => ref *(Bool2*)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. - public readonly ref Bool2 XY => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 XY => ref *(Bool2*)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. - public readonly ref Bool2 XZ => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 XZ => ref *(Bool2*)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. - public readonly ref Bool2 XW => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 XW => ref *(Bool2*)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. - public readonly ref Bool2 YX => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 YX => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 YY => ref *(Bool2*)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. - public readonly ref Bool2 YZ => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 YZ => ref *(Bool2*)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. - public readonly ref Bool2 YW => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 YW => ref *(Bool2*)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. - public readonly ref Bool2 ZX => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 ZX => ref *(Bool2*)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. - public readonly ref Bool2 ZY => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 ZY => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 ZZ => ref *(Bool2*)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. - public readonly ref Bool2 ZW => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 ZW => ref *(Bool2*)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. - public readonly ref Bool2 WX => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 WX => ref *(Bool2*)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. - public readonly ref Bool2 WY => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 WY => ref *(Bool2*)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. - public readonly ref Bool2 WZ => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 WZ => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 WW => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XXW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XYY => ref *(Bool3*)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. - public readonly ref Bool3 XYZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XYZ => ref *(Bool3*)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. - public readonly ref Bool3 XYW => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XYW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XZX => ref *(Bool3*)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. - public readonly ref Bool3 XZY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XZZ => ref *(Bool3*)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. - public readonly ref Bool3 XZW => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XZW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XWX => ref *(Bool3*)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. - public readonly ref Bool3 XWY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XWY => ref *(Bool3*)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. - public readonly ref Bool3 XWZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 XWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 XWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YXY => ref *(Bool3*)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. - public readonly ref Bool3 YXZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YXZ => ref *(Bool3*)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. - public readonly ref Bool3 YXW => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YXW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YYW => ref *(Bool3*)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. - public readonly ref Bool3 YZX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YZZ => ref *(Bool3*)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. - public readonly ref Bool3 YZW => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YZW => ref *(Bool3*)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. - public readonly ref Bool3 YWX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YWX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YWY => ref *(Bool3*)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. - public readonly ref Bool3 YWZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 YWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 YWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZXX => ref *(Bool3*)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. - public readonly ref Bool3 ZXY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZXZ => ref *(Bool3*)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. - public readonly ref Bool3 ZXW => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZXW => ref *(Bool3*)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. - public readonly ref Bool3 ZYX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZYZ => ref *(Bool3*)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. - public readonly ref Bool3 ZYW => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZYW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZZW => ref *(Bool3*)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. - public readonly ref Bool3 ZWX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZWX => ref *(Bool3*)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. - public readonly ref Bool3 ZWY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ZWY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ZWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WXX => ref *(Bool3*)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. - public readonly ref Bool3 WXY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 WXY => ref *(Bool3*)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. - public readonly ref Bool3 WXZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 WXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WXW => ref *(Bool3*)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. - public readonly ref Bool3 WYX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 WYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WYY => ref *(Bool3*)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. - public readonly ref Bool3 WYZ => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 WYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WYW => ref *(Bool3*)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. - public readonly ref Bool3 WZX => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 WZX => ref *(Bool3*)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. - public readonly ref Bool3 WZY => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 WZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WZW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WWX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WWY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 WWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYZZ => ref *(Bool4*)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. - public readonly ref Bool4 XYZW => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 XYZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYWY => ref *(Bool4*)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. - public readonly ref Bool4 XYWZ => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 XYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZYZ => ref *(Bool4*)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. - public readonly ref Bool4 XZYW => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 XZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZWX => ref *(Bool4*)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. - public readonly ref Bool4 XZWY => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 XZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWYY => ref *(Bool4*)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. - public readonly ref Bool4 XWYZ => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 XWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWZX => ref *(Bool4*)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. - public readonly ref Bool4 XWZY => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 XWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 XWWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXZZ => ref *(Bool4*)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. - public readonly ref Bool4 YXZW => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 YXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXWY => ref *(Bool4*)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. - public readonly ref Bool4 YXWZ => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 YXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZXZ => ref *(Bool4*)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. - public readonly ref Bool4 YZXW => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 YZXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZZW => ref *(Bool4*)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. - public readonly ref Bool4 YZWX => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 YZWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWXY => ref *(Bool4*)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. - public readonly ref Bool4 YWXZ => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 YWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWYW => ref *(Bool4*)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. - public readonly ref Bool4 YWZX => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 YWZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 YWWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXYZ => ref *(Bool4*)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. - public readonly ref Bool4 ZXYW => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ZXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXWX => ref *(Bool4*)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. - public readonly ref Bool4 ZXWY => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ZXWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYXZ => ref *(Bool4*)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. - public readonly ref Bool4 ZYXW => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ZYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYZW => ref *(Bool4*)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. - public readonly ref Bool4 ZYWX => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ZYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWXX => ref *(Bool4*)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. - public readonly ref Bool4 ZWXY => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ZWXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWXW => ref *(Bool4*)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. - public readonly ref Bool4 ZWYX => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ZWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ZWWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXYY => ref *(Bool4*)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. - public readonly ref Bool4 WXYZ => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 WXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXZX => ref *(Bool4*)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. - public readonly ref Bool4 WXZY => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 WXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYXY => ref *(Bool4*)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. - public readonly ref Bool4 WYXZ => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 WYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYYW => ref *(Bool4*)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. - public readonly ref Bool4 WYZX => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 WYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZXX => ref *(Bool4*)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. - public readonly ref Bool4 WZXY => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 WZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZXW => ref *(Bool4*)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. - public readonly ref Bool4 WZYX => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 WZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 WWWW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.x)), 1)); + [UnscopedRef] + public ref bool R => ref Unsafe.As(ref this.x); /// /// Gets a reference to the value representing the G component. /// - public readonly ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.y)), 1)); + [UnscopedRef] + public ref bool G => ref Unsafe.As(ref this.y); /// /// Gets a reference to the value representing the B component. /// - public readonly ref bool B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.z)), 1)); + [UnscopedRef] + public ref bool B => ref Unsafe.As(ref this.z); /// /// Gets a reference to the value representing the A component. /// - public readonly ref bool A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.w)), 1)); + [UnscopedRef] + public ref bool A => ref Unsafe.As(ref this.w); /// /// Gets a readonly 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 readonly Bool2 RR => ref *(Bool2*)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. - public readonly ref Bool2 RG => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 RG => ref *(Bool2*)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. - public readonly ref Bool2 RB => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 RB => ref *(Bool2*)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. - public readonly ref Bool2 RA => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 RA => ref *(Bool2*)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. - public readonly ref Bool2 GR => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 GR => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 GG => ref *(Bool2*)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. - public readonly ref Bool2 GB => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 GB => ref *(Bool2*)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. - public readonly ref Bool2 GA => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 GA => ref *(Bool2*)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. - public readonly ref Bool2 BR => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 BR => ref *(Bool2*)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. - public readonly ref Bool2 BG => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 BG => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 BB => ref *(Bool2*)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. - public readonly ref Bool2 BA => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 BA => ref *(Bool2*)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. - public readonly ref Bool2 AR => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 AR => ref *(Bool2*)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. - public readonly ref Bool2 AG => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 AG => ref *(Bool2*)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. - public readonly ref Bool2 AB => ref *(Bool2*)UndefinedData; + [UnscopedRef] + public ref Bool2 AB => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool2 AA => ref *(Bool2*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RRA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RGG => ref *(Bool3*)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. - public readonly ref Bool3 RGB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RGB => ref *(Bool3*)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. - public readonly ref Bool3 RGA => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RGA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RBR => ref *(Bool3*)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. - public readonly ref Bool3 RBG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RBB => ref *(Bool3*)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. - public readonly ref Bool3 RBA => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RBA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RAR => ref *(Bool3*)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. - public readonly ref Bool3 RAG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RAG => ref *(Bool3*)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. - public readonly ref Bool3 RAB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 RAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 RAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GRG => ref *(Bool3*)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. - public readonly ref Bool3 GRB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GRB => ref *(Bool3*)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. - public readonly ref Bool3 GRA => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GRA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GGA => ref *(Bool3*)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. - public readonly ref Bool3 GBR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GBB => ref *(Bool3*)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. - public readonly ref Bool3 GBA => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GBA => ref *(Bool3*)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. - public readonly ref Bool3 GAR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GAR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GAG => ref *(Bool3*)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. - public readonly ref Bool3 GAB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 GAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 GAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BRR => ref *(Bool3*)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. - public readonly ref Bool3 BRG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BRB => ref *(Bool3*)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. - public readonly ref Bool3 BRA => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BRA => ref *(Bool3*)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. - public readonly ref Bool3 BGR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BGB => ref *(Bool3*)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. - public readonly ref Bool3 BGA => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BGA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BBB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BBA => ref *(Bool3*)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. - public readonly ref Bool3 BAR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BAR => ref *(Bool3*)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. - public readonly ref Bool3 BAG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 BAG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 BAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ARR => ref *(Bool3*)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. - public readonly ref Bool3 ARG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ARG => ref *(Bool3*)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. - public readonly ref Bool3 ARB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ARB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ARA => ref *(Bool3*)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. - public readonly ref Bool3 AGR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 AGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 AGG => ref *(Bool3*)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. - public readonly ref Bool3 AGB => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 AGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 AGA => ref *(Bool3*)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. - public readonly ref Bool3 ABR => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ABR => ref *(Bool3*)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. - public readonly ref Bool3 ABG => ref *(Bool3*)UndefinedData; + [UnscopedRef] + public ref Bool3 ABG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ABB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 ABA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 AAR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 AAG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 AAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool3 AAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RRAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGBB => ref *(Bool4*)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. - public readonly ref Bool4 RGBA => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 RGBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGAG => ref *(Bool4*)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. - public readonly ref Bool4 RGAB => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 RGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBGB => ref *(Bool4*)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. - public readonly ref Bool4 RBGA => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 RBGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBAR => ref *(Bool4*)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. - public readonly ref Bool4 RBAG => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 RBAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RBAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RARR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RARG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RARA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RAGG => ref *(Bool4*)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. - public readonly ref Bool4 RAGB => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 RAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RAGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RABR => ref *(Bool4*)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. - public readonly ref Bool4 RABG => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 RABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 RAAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRBB => ref *(Bool4*)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. - public readonly ref Bool4 GRBA => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 GRBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRAG => ref *(Bool4*)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. - public readonly ref Bool4 GRAB => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 GRAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GRAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBRB => ref *(Bool4*)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. - public readonly ref Bool4 GBRA => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 GBRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBBA => ref *(Bool4*)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. - public readonly ref Bool4 GBAR => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 GBAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GBAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GARR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GARG => ref *(Bool4*)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. - public readonly ref Bool4 GARB => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 GARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GARA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAGA => ref *(Bool4*)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. - public readonly ref Bool4 GABR => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 GABR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 GAAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRGB => ref *(Bool4*)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. - public readonly ref Bool4 BRGA => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 BRGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRAR => ref *(Bool4*)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. - public readonly ref Bool4 BRAG => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 BRAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BRAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGRB => ref *(Bool4*)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. - public readonly ref Bool4 BGRA => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 BGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGBA => ref *(Bool4*)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. - public readonly ref Bool4 BGAR => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 BGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BBAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BARR => ref *(Bool4*)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. - public readonly ref Bool4 BARG => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 BARG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BARA => ref *(Bool4*)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. - public readonly ref Bool4 BAGR => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 BAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BAGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BAGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BABR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 BAAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARGG => ref *(Bool4*)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. - public readonly ref Bool4 ARGB => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ARGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARBR => ref *(Bool4*)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. - public readonly ref Bool4 ARBG => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ARBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ARAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGRG => ref *(Bool4*)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. - public readonly ref Bool4 AGRB => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 AGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGGA => ref *(Bool4*)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. - public readonly ref Bool4 AGBR => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 AGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABRR => ref *(Bool4*)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. - public readonly ref Bool4 ABRG => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ABRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABRA => ref *(Bool4*)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. - public readonly ref Bool4 ABGR => ref *(Bool4*)UndefinedData; + [UnscopedRef] + public ref Bool4 ABGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 ABAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AARR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AARG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AARA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AABR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly 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 readonly Bool4 AAAA => ref *(Bool4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs b/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs index 954a4df4..aa33c216 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs @@ -1,8 +1,8 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #pragma warning disable CS0660, CS0661 @@ -34,16 +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. - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -51,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -61,13 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Creates a new value with the same value for all its components. @@ -165,16 +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. - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -182,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -192,18 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Creates a new value with the same value for all its components. @@ -313,16 +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. - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -330,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -340,23 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Creates a new value with the same value for all its components. @@ -472,16 +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. - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -489,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -499,28 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m14)), 1)); + [UnscopedRef] + public ref bool M14 => ref Unsafe.As(ref this.m14); /// /// Creates a new value with the same value for all its components. @@ -627,16 +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. - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -644,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -654,18 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Creates a new value with the same value for all its components. @@ -793,16 +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. - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -810,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -820,28 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Creates a new value with the same value for all its components. @@ -977,16 +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. - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -994,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1004,38 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m23)), 1)); + [UnscopedRef] + public ref bool M23 => ref Unsafe.As(ref this.m23); /// /// Creates a new value with the same value for all its components. @@ -1185,16 +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. - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1202,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1212,48 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m14)), 1)); + [UnscopedRef] + public ref bool M14 => ref Unsafe.As(ref this.m14); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m23)), 1)); + [UnscopedRef] + public ref bool M23 => ref Unsafe.As(ref this.m23); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref bool M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m24)), 1)); + [UnscopedRef] + public ref bool M24 => ref Unsafe.As(ref this.m24); /// /// Creates a new value with the same value for all its components. @@ -1363,16 +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. - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1380,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1390,23 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Creates a new value with the same value for all its components. @@ -1548,16 +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. - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1565,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1575,38 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m32)), 1)); + [UnscopedRef] + public ref bool M32 => ref Unsafe.As(ref this.m32); /// /// Creates a new value with the same value for all its components. @@ -1763,16 +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. - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1780,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1790,53 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m23)), 1)); + [UnscopedRef] + public ref bool M23 => ref Unsafe.As(ref this.m23); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m32)), 1)); + [UnscopedRef] + public ref bool M32 => ref Unsafe.As(ref this.m32); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m33)), 1)); + [UnscopedRef] + public ref bool M33 => ref Unsafe.As(ref this.m33); /// /// Creates a new value with the same value for all its components. @@ -2014,16 +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. - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2031,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2041,68 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m14)), 1)); + [UnscopedRef] + public ref bool M14 => ref Unsafe.As(ref this.m14); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m23)), 1)); + [UnscopedRef] + public ref bool M23 => ref Unsafe.As(ref this.m23); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref bool M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m24)), 1)); + [UnscopedRef] + public ref bool M24 => ref Unsafe.As(ref this.m24); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m32)), 1)); + [UnscopedRef] + public ref bool M32 => ref Unsafe.As(ref this.m32); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m33)), 1)); + [UnscopedRef] + public ref bool M33 => ref Unsafe.As(ref this.m33); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref bool M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m34)), 1)); + [UnscopedRef] + public ref bool M34 => ref Unsafe.As(ref this.m34); /// /// Creates a new value with the same value for all its components. @@ -2221,16 +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. - public readonly ref bool this[int row] => ref *(bool*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2238,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2248,28 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m41)), 1)); + [UnscopedRef] + public ref bool M41 => ref Unsafe.As(ref this.m41); /// /// Creates a new value with the same value for all its components. @@ -2425,16 +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. - public readonly ref Bool2 this[int row] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2442,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2452,48 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m32)), 1)); + [UnscopedRef] + public ref bool M32 => ref Unsafe.As(ref this.m32); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m41)), 1)); + [UnscopedRef] + public ref bool M41 => ref Unsafe.As(ref this.m41); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref bool M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m42)), 1)); + [UnscopedRef] + public ref bool M42 => ref Unsafe.As(ref this.m42); /// /// Creates a new value with the same value for all its components. @@ -2671,16 +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. - public readonly ref Bool3 this[int row] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2688,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2698,68 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m23)), 1)); + [UnscopedRef] + public ref bool M23 => ref Unsafe.As(ref this.m23); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m32)), 1)); + [UnscopedRef] + public ref bool M32 => ref Unsafe.As(ref this.m32); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m33)), 1)); + [UnscopedRef] + public ref bool M33 => ref Unsafe.As(ref this.m33); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m41)), 1)); + [UnscopedRef] + public ref bool M41 => ref Unsafe.As(ref this.m41); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref bool M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m42)), 1)); + [UnscopedRef] + public ref bool M42 => ref Unsafe.As(ref this.m42); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref bool M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m43)), 1)); + [UnscopedRef] + public ref bool M43 => ref Unsafe.As(ref this.m43); /// /// Creates a new value with the same value for all its components. @@ -2965,16 +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. - public readonly ref Bool4 this[int row] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2982,8 +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. - public readonly ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2992,88 +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. - public readonly ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m11)), 1)); + [UnscopedRef] + public ref bool M11 => ref Unsafe.As(ref this.m11); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m12)), 1)); + [UnscopedRef] + public ref bool M12 => ref Unsafe.As(ref this.m12); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m13)), 1)); + [UnscopedRef] + public ref bool M13 => ref Unsafe.As(ref this.m13); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m14)), 1)); + [UnscopedRef] + public ref bool M14 => ref Unsafe.As(ref this.m14); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m21)), 1)); + [UnscopedRef] + public ref bool M21 => ref Unsafe.As(ref this.m21); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m22)), 1)); + [UnscopedRef] + public ref bool M22 => ref Unsafe.As(ref this.m22); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m23)), 1)); + [UnscopedRef] + public ref bool M23 => ref Unsafe.As(ref this.m23); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref bool M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m24)), 1)); + [UnscopedRef] + public ref bool M24 => ref Unsafe.As(ref this.m24); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m31)), 1)); + [UnscopedRef] + public ref bool M31 => ref Unsafe.As(ref this.m31); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m32)), 1)); + [UnscopedRef] + public ref bool M32 => ref Unsafe.As(ref this.m32); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m33)), 1)); + [UnscopedRef] + public ref bool M33 => ref Unsafe.As(ref this.m33); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref bool M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m34)), 1)); + [UnscopedRef] + public ref bool M34 => ref Unsafe.As(ref this.m34); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m41)), 1)); + [UnscopedRef] + public ref bool M41 => ref Unsafe.As(ref this.m41); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref bool M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m42)), 1)); + [UnscopedRef] + public ref bool M42 => ref Unsafe.As(ref this.m42); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref bool M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m43)), 1)); + [UnscopedRef] + public ref bool M43 => ref Unsafe.As(ref this.m43); /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public readonly ref bool M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m44)), 1)); + [UnscopedRef] + public ref bool M44 => ref Unsafe.As(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 da4767ab..131c1b32 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs @@ -1,10 +1,10 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -60,357 +61,417 @@ public unsafe partial struct Double2 /// /// Gets a reference to the value representing the X component. /// - public readonly ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref double X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref double Y => ref this.y; /// /// Gets a readonly 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 readonly Double2 XX => 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. - public readonly ref Double2 XY => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 YX => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 YY => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYY => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref double R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref double G => ref this.y; /// /// Gets a readonly 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 readonly Double2 RR => 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. - public readonly ref Double2 RG => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 GR => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 GG => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGG => ref *(Double4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs index 1dcfc3a3..d21af61e 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs @@ -1,10 +1,10 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -68,1435 +69,1675 @@ public unsafe partial struct Double3 /// /// Gets a reference to the value representing the X component. /// - public readonly ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref double X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref double Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref double Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref double Z => ref this.z; /// /// Gets a readonly 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 readonly Double2 XX => 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. - public readonly ref Double2 XY => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 XZ => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 YX => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 YY => 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. - public readonly ref Double2 YZ => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 ZX => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 ZY => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 ZY => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 ZZ => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XYY => 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. - public readonly ref Double3 XYZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 XYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XZX => 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. - public readonly ref Double3 XZY => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 XZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YXY => 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. - public readonly ref Double3 YXZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 YXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYZ => 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. - public readonly ref Double3 YZX => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 YZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZXX => 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. - public readonly ref Double3 ZXY => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ZXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZXZ => 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. - public readonly ref Double3 ZYX => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ZYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZZZ => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref double R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref double G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref double B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref double B => ref this.z; /// /// Gets a readonly 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 readonly Double2 RR => 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. - public readonly ref Double2 RG => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 RB => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 GR => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 GG => 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. - public readonly ref Double2 GB => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 BR => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 BG => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 BG => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 BB => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RGG => 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. - public readonly ref Double3 RGB => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 RGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RBR => 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. - public readonly ref Double3 RBG => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 RBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RBB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GRG => 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. - public readonly ref Double3 GRB => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 GRB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGB => 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. - public readonly ref Double3 GBR => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 GBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GBB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BRR => 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. - public readonly ref Double3 BRG => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 BRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BRB => 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. - public readonly ref Double3 BGR => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 BGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BBB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBBB => ref *(Double4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs index 6aa4489a..9f5f2f49 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs @@ -1,10 +1,10 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -76,4073 +77,4753 @@ public unsafe partial struct Double4 /// /// Gets a reference to the value representing the X component. /// - public readonly ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref double X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref double Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref double Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref double Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// - public readonly ref double W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref double W => ref this.w; /// /// Gets a readonly 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 readonly Double2 XX => 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. - public readonly ref Double2 XY => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 XZ => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 XW => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 YX => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 YY => 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. - public readonly ref Double2 YZ => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 YW => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 ZX => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 ZY => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 ZY => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 ZZ => 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. - public readonly ref Double2 ZW => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 WX => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 WY => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 WZ => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 WZ => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 WW => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XXW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XYY => 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. - public readonly ref Double3 XYZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 XYW => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 XYW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XZX => 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. - public readonly ref Double3 XZY => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 XZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XZZ => 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. - public readonly ref Double3 XZW => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 XZW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XWX => 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. - public readonly ref Double3 XWY => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 XWZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 XWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 XWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YXY => 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. - public readonly ref Double3 YXZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 YXW => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 YXW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YYW => 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. - public readonly ref Double3 YZX => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 YZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YZZ => 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. - public readonly ref Double3 YZW => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 YWX => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 YWX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YWY => 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. - public readonly ref Double3 YWZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 YWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 YWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZXX => 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. - public readonly ref Double3 ZXY => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ZXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZXZ => 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. - public readonly ref Double3 ZXW => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 ZYX => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ZYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZYZ => 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. - public readonly ref Double3 ZYW => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ZYW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZZW => 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. - public readonly ref Double3 ZWX => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 ZWY => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ZWY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ZWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WXX => 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. - public readonly ref Double3 WXY => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 WXZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 WXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WXW => 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. - public readonly ref Double3 WYX => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 WYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WYY => 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. - public readonly ref Double3 WYZ => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 WYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WYW => 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. - public readonly ref Double3 WZX => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 WZY => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 WZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WZW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WWX => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WWY => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 WWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYZZ => ref *(Double4*)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. - public readonly ref Double4 XYZW => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 XYZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYWY => ref *(Double4*)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. - public readonly ref Double4 XYWZ => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 XYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZYZ => ref *(Double4*)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. - public readonly ref Double4 XZYW => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 XZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZWX => ref *(Double4*)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. - public readonly ref Double4 XZWY => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 XZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWYY => ref *(Double4*)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. - public readonly ref Double4 XWYZ => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 XWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWZX => ref *(Double4*)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. - public readonly ref Double4 XWZY => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 XWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 XWWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXZZ => ref *(Double4*)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. - public readonly ref Double4 YXZW => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 YXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXWY => ref *(Double4*)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. - public readonly ref Double4 YXWZ => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 YXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZXZ => ref *(Double4*)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. - public readonly ref Double4 YZXW => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 YZXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZZW => ref *(Double4*)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. - public readonly ref Double4 YZWX => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 YZWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWXY => ref *(Double4*)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. - public readonly ref Double4 YWXZ => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 YWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWYW => ref *(Double4*)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. - public readonly ref Double4 YWZX => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 YWZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 YWWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXYZ => ref *(Double4*)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. - public readonly ref Double4 ZXYW => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ZXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXWX => ref *(Double4*)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. - public readonly ref Double4 ZXWY => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ZXWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYXZ => ref *(Double4*)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. - public readonly ref Double4 ZYXW => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ZYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYZW => ref *(Double4*)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. - public readonly ref Double4 ZYWX => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ZYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWXX => ref *(Double4*)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. - public readonly ref Double4 ZWXY => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ZWXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWXW => ref *(Double4*)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. - public readonly ref Double4 ZWYX => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ZWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ZWWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXYY => ref *(Double4*)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. - public readonly ref Double4 WXYZ => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 WXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXZX => ref *(Double4*)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. - public readonly ref Double4 WXZY => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 WXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYXY => ref *(Double4*)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. - public readonly ref Double4 WYXZ => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 WYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYYW => ref *(Double4*)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. - public readonly ref Double4 WYZX => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 WYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZXX => ref *(Double4*)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. - public readonly ref Double4 WZXY => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 WZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZXW => ref *(Double4*)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. - public readonly ref Double4 WZYX => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 WZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 WWWW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref double R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref double G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref double B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref double B => ref this.z; /// /// Gets a reference to the value representing the A component. /// - public readonly ref double A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref double A => ref this.w; /// /// Gets a readonly 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 readonly Double2 RR => 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. - public readonly ref Double2 RG => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 RB => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 RA => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 GR => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 GG => 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. - public readonly ref Double2 GB => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 GA => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 BR => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 BG => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 BG => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 BB => 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. - public readonly ref Double2 BA => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 AR => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 AG => ref *(Double2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double2 AB => ref *(Double2*)UndefinedData; + [UnscopedRef] + public ref Double2 AB => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double2 AA => ref *(Double2*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RRA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RGG => 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. - public readonly ref Double3 RGB => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 RGA => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 RGA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RBR => 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. - public readonly ref Double3 RBG => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 RBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RBB => 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. - public readonly ref Double3 RBA => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 RBA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RAR => 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. - public readonly ref Double3 RAG => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 RAB => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 RAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 RAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GRG => 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. - public readonly ref Double3 GRB => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 GRA => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 GRA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GGA => 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. - public readonly ref Double3 GBR => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 GBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GBB => 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. - public readonly ref Double3 GBA => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 GAR => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 GAR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GAG => 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. - public readonly ref Double3 GAB => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 GAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 GAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BRR => 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. - public readonly ref Double3 BRG => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 BRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BRB => 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. - public readonly ref Double3 BRA => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 BGR => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 BGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BGB => 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. - public readonly ref Double3 BGA => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 BGA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BBB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BBA => 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. - public readonly ref Double3 BAR => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 BAG => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 BAG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 BAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ARR => 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. - public readonly ref Double3 ARG => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 ARB => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ARB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ARA => 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. - public readonly ref Double3 AGR => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 AGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 AGG => 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. - public readonly ref Double3 AGB => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 AGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 AGA => 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. - public readonly ref Double3 ABR => ref *(Double3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Double3 ABG => ref *(Double3*)UndefinedData; + [UnscopedRef] + public ref Double3 ABG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ABB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 ABA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 AAR => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 AAG => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 AAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double3 AAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RRAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGBB => ref *(Double4*)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. - public readonly ref Double4 RGBA => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 RGBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGAG => ref *(Double4*)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. - public readonly ref Double4 RGAB => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 RGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBGB => ref *(Double4*)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. - public readonly ref Double4 RBGA => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 RBGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBAR => ref *(Double4*)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. - public readonly ref Double4 RBAG => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 RBAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RBAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RARR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RARG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RARA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RAGG => ref *(Double4*)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. - public readonly ref Double4 RAGB => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 RAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RAGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RABR => ref *(Double4*)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. - public readonly ref Double4 RABG => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 RABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 RAAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRBB => ref *(Double4*)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. - public readonly ref Double4 GRBA => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 GRBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRAG => ref *(Double4*)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. - public readonly ref Double4 GRAB => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 GRAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GRAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBRB => ref *(Double4*)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. - public readonly ref Double4 GBRA => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 GBRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBBA => ref *(Double4*)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. - public readonly ref Double4 GBAR => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 GBAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GBAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GARR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GARG => ref *(Double4*)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. - public readonly ref Double4 GARB => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 GARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GARA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAGA => ref *(Double4*)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. - public readonly ref Double4 GABR => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 GABR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 GAAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRGB => ref *(Double4*)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. - public readonly ref Double4 BRGA => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 BRGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRAR => ref *(Double4*)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. - public readonly ref Double4 BRAG => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 BRAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BRAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGRB => ref *(Double4*)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. - public readonly ref Double4 BGRA => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 BGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGBA => ref *(Double4*)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. - public readonly ref Double4 BGAR => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 BGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BBAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BARR => ref *(Double4*)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. - public readonly ref Double4 BARG => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 BARG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BARA => ref *(Double4*)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. - public readonly ref Double4 BAGR => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 BAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BAGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BAGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BABR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 BAAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARGG => ref *(Double4*)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. - public readonly ref Double4 ARGB => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ARGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARBR => ref *(Double4*)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. - public readonly ref Double4 ARBG => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ARBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ARAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGRG => ref *(Double4*)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. - public readonly ref Double4 AGRB => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 AGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGGA => ref *(Double4*)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. - public readonly ref Double4 AGBR => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 AGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABRR => ref *(Double4*)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. - public readonly ref Double4 ABRG => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ABRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABRA => ref *(Double4*)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. - public readonly ref Double4 ABGR => ref *(Double4*)UndefinedData; + [UnscopedRef] + public ref Double4 ABGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 ABAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AARR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AARG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AARA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AABR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly 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 readonly Double4 AAAA => ref *(Double4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs b/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs index 5344d2de..093bbaca 100644 --- a/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs @@ -1,8 +1,8 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #pragma warning disable CS0660, CS0661 @@ -34,16 +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. - public readonly ref double this[int row] => ref *(double*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -51,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -61,13 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -219,16 +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. - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -236,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -246,18 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -421,16 +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. - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -438,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -448,23 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -634,16 +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. - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -651,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -661,28 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref double M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -843,16 +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. - public readonly ref double this[int row] => ref *(double*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -860,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -870,18 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -1063,16 +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. - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1080,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1090,28 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -1301,16 +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. - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1318,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1328,38 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref double M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -1563,16 +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. - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1580,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1590,48 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref double M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref double M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -1795,16 +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. - public readonly ref double this[int row] => ref *(double*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1812,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1822,23 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -2034,16 +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. - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2051,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2061,38 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref double M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -2303,16 +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. - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2320,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2330,53 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref double M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -2608,16 +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. - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2625,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2635,68 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref double M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref double M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref double M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref double M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -2869,16 +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. - public readonly ref double this[int row] => ref *(double*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2886,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2896,28 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref double M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -3127,16 +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. - public readonly ref Double2 this[int row] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3144,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3154,48 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref double M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref double M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -3427,16 +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. - public readonly ref Double3 this[int row] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3444,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3454,68 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref double M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref double M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref double M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref double M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -3775,16 +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. - public readonly ref Double4 this[int row] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3792,8 +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. - public readonly ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3802,88 +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. - public readonly ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref double M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref double M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref double M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref double M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref double M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref double M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref double M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref double M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref double M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref double M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref double M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref double M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref double M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref double M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref double M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref double M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref double M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref double M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref double M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public readonly ref double M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m44), 1)); + [UnscopedRef] + 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 0d57e369..0e5be499 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -1,11 +1,11 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -61,357 +62,417 @@ public unsafe partial struct Float2 /// /// Gets a reference to the value representing the X component. /// - public readonly ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref float X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref float Y => ref this.y; /// /// Gets a readonly 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 readonly Float2 XX => 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. - public readonly ref Float2 XY => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 YX => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 YY => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYY => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref float R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref float G => ref this.y; /// /// Gets a readonly 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 readonly Float2 RR => 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. - public readonly ref Float2 RG => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 GR => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 GG => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGG => ref *(Float4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index fcc3c0d8..e86e54ab 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -1,11 +1,11 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -69,1435 +70,1675 @@ public unsafe partial struct Float3 /// /// Gets a reference to the value representing the X component. /// - public readonly ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref float X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref float Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref float Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref float Z => ref this.z; /// /// Gets a readonly 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 readonly Float2 XX => 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. - public readonly ref Float2 XY => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 XZ => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 YX => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 YY => 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. - public readonly ref Float2 YZ => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 ZX => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 ZY => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 ZY => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 ZZ => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XYY => 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. - public readonly ref Float3 XYZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 XYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XZX => 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. - public readonly ref Float3 XZY => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 XZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YXY => 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. - public readonly ref Float3 YXZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 YXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYZ => 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. - public readonly ref Float3 YZX => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 YZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZXX => 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. - public readonly ref Float3 ZXY => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ZXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZXZ => 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. - public readonly ref Float3 ZYX => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ZYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZZZ => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref float R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref float G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref float B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref float B => ref this.z; /// /// Gets a readonly 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 readonly Float2 RR => 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. - public readonly ref Float2 RG => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 RB => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 GR => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 GG => 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. - public readonly ref Float2 GB => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 BR => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 BG => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 BG => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 BB => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RGG => 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. - public readonly ref Float3 RGB => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 RGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RBR => 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. - public readonly ref Float3 RBG => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 RBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RBB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GRG => 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. - public readonly ref Float3 GRB => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 GRB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGB => 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. - public readonly ref Float3 GBR => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 GBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GBB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BRR => 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. - public readonly ref Float3 BRG => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 BRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BRB => 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. - public readonly ref Float3 BGR => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 BGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BBB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBBB => ref *(Float4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index 199d5dd2..847e24ee 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -1,11 +1,11 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -77,4073 +78,4753 @@ public unsafe partial struct Float4 /// /// Gets a reference to the value representing the X component. /// - public readonly ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref float X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref float Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref float Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref float Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// - public readonly ref float W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref float W => ref this.w; /// /// Gets a readonly 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 readonly Float2 XX => 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. - public readonly ref Float2 XY => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 XZ => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 XW => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 YX => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 YY => 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. - public readonly ref Float2 YZ => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 YW => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 ZX => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 ZY => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 ZY => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 ZZ => 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. - public readonly ref Float2 ZW => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 WX => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 WY => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 WZ => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 WZ => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 WW => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XXW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XYY => 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. - public readonly ref Float3 XYZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 XYW => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 XYW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XZX => 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. - public readonly ref Float3 XZY => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 XZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XZZ => 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. - public readonly ref Float3 XZW => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 XZW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XWX => 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. - public readonly ref Float3 XWY => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 XWZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 XWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 XWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YXY => 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. - public readonly ref Float3 YXZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 YXW => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 YXW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YYW => 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. - public readonly ref Float3 YZX => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 YZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YZZ => 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. - public readonly ref Float3 YZW => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 YWX => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 YWX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YWY => 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. - public readonly ref Float3 YWZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 YWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 YWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZXX => 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. - public readonly ref Float3 ZXY => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ZXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZXZ => 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. - public readonly ref Float3 ZXW => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 ZYX => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ZYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZYZ => 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. - public readonly ref Float3 ZYW => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ZYW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZZW => 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. - public readonly ref Float3 ZWX => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 ZWY => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ZWY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ZWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WXX => 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. - public readonly ref Float3 WXY => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 WXZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 WXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WXW => 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. - public readonly ref Float3 WYX => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 WYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WYY => 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. - public readonly ref Float3 WYZ => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 WYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WYW => 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. - public readonly ref Float3 WZX => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 WZY => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 WZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WZW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WWX => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WWY => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 WWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYZZ => ref *(Float4*)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. - public readonly ref Float4 XYZW => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 XYZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYWY => ref *(Float4*)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. - public readonly ref Float4 XYWZ => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 XYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZYZ => ref *(Float4*)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. - public readonly ref Float4 XZYW => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 XZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZWX => ref *(Float4*)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. - public readonly ref Float4 XZWY => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 XZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWYY => ref *(Float4*)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. - public readonly ref Float4 XWYZ => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 XWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWZX => ref *(Float4*)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. - public readonly ref Float4 XWZY => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 XWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 XWWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXZZ => ref *(Float4*)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. - public readonly ref Float4 YXZW => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 YXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXWY => ref *(Float4*)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. - public readonly ref Float4 YXWZ => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 YXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZXZ => ref *(Float4*)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. - public readonly ref Float4 YZXW => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 YZXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZZW => ref *(Float4*)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. - public readonly ref Float4 YZWX => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 YZWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWXY => ref *(Float4*)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. - public readonly ref Float4 YWXZ => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 YWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWYW => ref *(Float4*)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. - public readonly ref Float4 YWZX => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 YWZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 YWWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXYZ => ref *(Float4*)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. - public readonly ref Float4 ZXYW => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ZXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXWX => ref *(Float4*)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. - public readonly ref Float4 ZXWY => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ZXWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYXZ => ref *(Float4*)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. - public readonly ref Float4 ZYXW => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ZYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYZW => ref *(Float4*)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. - public readonly ref Float4 ZYWX => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ZYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWXX => ref *(Float4*)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. - public readonly ref Float4 ZWXY => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ZWXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWXW => ref *(Float4*)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. - public readonly ref Float4 ZWYX => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ZWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ZWWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXYY => ref *(Float4*)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. - public readonly ref Float4 WXYZ => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 WXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXZX => ref *(Float4*)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. - public readonly ref Float4 WXZY => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 WXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYXY => ref *(Float4*)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. - public readonly ref Float4 WYXZ => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 WYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYYW => ref *(Float4*)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. - public readonly ref Float4 WYZX => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 WYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZXX => ref *(Float4*)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. - public readonly ref Float4 WZXY => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 WZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZXW => ref *(Float4*)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. - public readonly ref Float4 WZYX => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 WZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 WWWW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref float R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref float G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref float B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref float B => ref this.z; /// /// Gets a reference to the value representing the A component. /// - public readonly ref float A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref float A => ref this.w; /// /// Gets a readonly 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 readonly Float2 RR => 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. - public readonly ref Float2 RG => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 RB => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 RA => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 GR => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 GG => 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. - public readonly ref Float2 GB => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 GA => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 BR => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 BG => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 BG => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 BB => 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. - public readonly ref Float2 BA => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 AR => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 AG => ref *(Float2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float2 AB => ref *(Float2*)UndefinedData; + [UnscopedRef] + public ref Float2 AB => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float2 AA => ref *(Float2*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RRA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RGG => 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. - public readonly ref Float3 RGB => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 RGA => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 RGA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RBR => 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. - public readonly ref Float3 RBG => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 RBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RBB => 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. - public readonly ref Float3 RBA => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 RBA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RAR => 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. - public readonly ref Float3 RAG => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 RAB => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 RAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 RAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GRG => 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. - public readonly ref Float3 GRB => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 GRA => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 GRA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GGA => 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. - public readonly ref Float3 GBR => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 GBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GBB => 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. - public readonly ref Float3 GBA => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 GAR => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 GAR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GAG => 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. - public readonly ref Float3 GAB => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 GAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 GAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BRR => 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. - public readonly ref Float3 BRG => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 BRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BRB => 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. - public readonly ref Float3 BRA => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 BGR => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 BGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BGB => 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. - public readonly ref Float3 BGA => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 BGA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BBB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BBA => 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. - public readonly ref Float3 BAR => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 BAG => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 BAG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 BAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ARR => 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. - public readonly ref Float3 ARG => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 ARB => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ARB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ARA => 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. - public readonly ref Float3 AGR => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 AGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 AGG => 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. - public readonly ref Float3 AGB => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 AGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 AGA => 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. - public readonly ref Float3 ABR => ref *(Float3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Float3 ABG => ref *(Float3*)UndefinedData; + [UnscopedRef] + public ref Float3 ABG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ABB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 ABA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 AAR => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 AAG => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 AAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float3 AAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RRAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGBB => ref *(Float4*)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. - public readonly ref Float4 RGBA => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 RGBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGAG => ref *(Float4*)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. - public readonly ref Float4 RGAB => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 RGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBGB => ref *(Float4*)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. - public readonly ref Float4 RBGA => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 RBGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBAR => ref *(Float4*)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. - public readonly ref Float4 RBAG => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 RBAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RBAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RARR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RARG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RARA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RAGG => ref *(Float4*)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. - public readonly ref Float4 RAGB => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 RAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RAGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RABR => ref *(Float4*)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. - public readonly ref Float4 RABG => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 RABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 RAAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRBB => ref *(Float4*)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. - public readonly ref Float4 GRBA => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 GRBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRAG => ref *(Float4*)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. - public readonly ref Float4 GRAB => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 GRAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GRAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBRB => ref *(Float4*)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. - public readonly ref Float4 GBRA => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 GBRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBBA => ref *(Float4*)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. - public readonly ref Float4 GBAR => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 GBAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GBAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GARR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GARG => ref *(Float4*)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. - public readonly ref Float4 GARB => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 GARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GARA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAGA => ref *(Float4*)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. - public readonly ref Float4 GABR => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 GABR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 GAAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRGB => ref *(Float4*)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. - public readonly ref Float4 BRGA => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 BRGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRAR => ref *(Float4*)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. - public readonly ref Float4 BRAG => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 BRAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BRAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGRB => ref *(Float4*)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. - public readonly ref Float4 BGRA => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 BGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGBA => ref *(Float4*)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. - public readonly ref Float4 BGAR => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 BGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BBAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BARR => ref *(Float4*)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. - public readonly ref Float4 BARG => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 BARG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BARA => ref *(Float4*)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. - public readonly ref Float4 BAGR => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 BAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BAGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BAGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BABR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 BAAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARGG => ref *(Float4*)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. - public readonly ref Float4 ARGB => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ARGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARBR => ref *(Float4*)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. - public readonly ref Float4 ARBG => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ARBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ARAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGRG => ref *(Float4*)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. - public readonly ref Float4 AGRB => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 AGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGGA => ref *(Float4*)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. - public readonly ref Float4 AGBR => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 AGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABRR => ref *(Float4*)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. - public readonly ref Float4 ABRG => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ABRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABRA => ref *(Float4*)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. - public readonly ref Float4 ABGR => ref *(Float4*)UndefinedData; + [UnscopedRef] + public ref Float4 ABGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 ABAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AARR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AARG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AARA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AABR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly 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 readonly Float4 AAAA => ref *(Float4*)UndefinedData; #if !SOURCE_GENERATOR diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 026093b4..e458c37e 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -1,9 +1,9 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #pragma warning disable CS0660, CS0661 @@ -35,16 +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. - public readonly ref float this[int row] => ref *(float*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -52,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -62,13 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -238,16 +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. - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -255,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -265,18 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -542,16 +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. - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -559,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -569,23 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -857,16 +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. - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -874,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -884,28 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref float M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -1168,16 +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. - public readonly ref float this[int row] => ref *(float*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1185,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1195,18 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -1476,16 +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. - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1493,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1503,28 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -1732,16 +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. - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1749,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1759,38 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref float M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -2096,16 +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. - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2113,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2123,48 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref float M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref float M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref float M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -2430,16 +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. - public readonly ref float this[int row] => ref *(float*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2447,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2457,23 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -2757,16 +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. - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2774,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2784,38 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref float M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -3128,16 +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. - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3145,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3155,53 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref float M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -3451,16 +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. - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3468,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3478,68 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref float M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref float M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref float M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref float M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref float M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref float M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -3814,16 +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. - public readonly ref float this[int row] => ref *(float*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3831,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3841,28 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref float M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -4160,16 +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. - public readonly ref Float2 this[int row] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4177,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4187,48 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref float M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref float M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref float M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -4562,16 +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. - public readonly ref Float3 this[int row] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4579,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4589,68 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref float M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref float M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref float M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref float M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref float M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref float M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -5012,16 +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. - public readonly ref Float4 this[int row] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5029,8 +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. - public readonly ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5039,88 +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. - public readonly ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref float M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref float M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref float M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref float M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref float M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref float M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref float M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref float M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref float M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref float M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref float M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref float M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref float M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref float M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref float M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref float M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref float M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref float M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref float M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public readonly ref float M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m44), 1)); + [UnscopedRef] + 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 9066df25..c8e1ea58 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -1,11 +1,11 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -61,357 +62,417 @@ public unsafe partial struct Int2 /// /// Gets a reference to the value representing the X component. /// - public readonly ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref int X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref int Y => ref this.y; /// /// Gets a readonly 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 readonly Int2 XX => 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. - public readonly ref Int2 XY => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 YX => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 YY => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYY => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref int R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref int G => ref this.y; /// /// Gets a readonly 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 readonly Int2 RR => 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. - public readonly ref Int2 RG => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 GR => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 GG => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGG => ref *(Int4*)UndefinedData; #if !SOURCE_GENERATOR @@ -640,7 +701,6 @@ 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. public static Int2 operator ~(Int2 xy) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -676,7 +736,6 @@ public unsafe partial struct Int2 /// The result of shifting left by . /// 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 static Int2 operator <<(Int2 xy, UInt2 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index 8dfad0ef..3385e8f7 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -1,11 +1,11 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -69,1435 +70,1675 @@ public unsafe partial struct Int3 /// /// Gets a reference to the value representing the X component. /// - public readonly ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref int X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref int Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref int Z => ref this.z; /// /// Gets a readonly 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 readonly Int2 XX => 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. - public readonly ref Int2 XY => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 XZ => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 YX => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 YY => 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. - public readonly ref Int2 YZ => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 ZX => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 ZY => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 ZY => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 ZZ => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XYY => 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. - public readonly ref Int3 XYZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 XYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XZX => 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. - public readonly ref Int3 XZY => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 XZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YXY => 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. - public readonly ref Int3 YXZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 YXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYZ => 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. - public readonly ref Int3 YZX => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 YZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZXX => 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. - public readonly ref Int3 ZXY => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ZXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZXZ => 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. - public readonly ref Int3 ZYX => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ZYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZZZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref int R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref int G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref int B => ref this.z; /// /// Gets a readonly 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 readonly Int2 RR => 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. - public readonly ref Int2 RG => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 RB => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 GR => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 GG => 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. - public readonly ref Int2 GB => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 BR => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 BG => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 BG => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 BB => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RGG => 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. - public readonly ref Int3 RGB => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 RGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RBR => 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. - public readonly ref Int3 RBG => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 RBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RBB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GRG => 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. - public readonly ref Int3 GRB => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 GRB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGB => 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. - public readonly ref Int3 GBR => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 GBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GBB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BRR => 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. - public readonly ref Int3 BRG => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 BRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BRB => 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. - public readonly ref Int3 BGR => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 BGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BBB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBBB => ref *(Int4*)UndefinedData; #if !SOURCE_GENERATOR @@ -1726,7 +1967,6 @@ 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. public static Int3 operator ~(Int3 xyz) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1762,7 +2002,6 @@ public unsafe partial struct Int3 /// The result of shifting left by . /// 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 static Int3 operator <<(Int3 xyz, UInt3 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index d7e64606..24ddf313 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -1,11 +1,11 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using ComputeSharp.Core.Intrinsics.Attributes; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -77,4073 +78,4753 @@ public unsafe partial struct Int4 /// /// Gets a reference to the value representing the X component. /// - public readonly ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref int X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref int Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref int Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// - public readonly ref int W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref int W => ref this.w; /// /// Gets a readonly 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 readonly Int2 XX => 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. - public readonly ref Int2 XY => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 XZ => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 XW => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 YX => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 YY => 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. - public readonly ref Int2 YZ => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 YW => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 ZX => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 ZY => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 ZY => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 ZZ => 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. - public readonly ref Int2 ZW => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 WX => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 WY => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 WZ => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 WZ => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 WW => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XXW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XYY => 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. - public readonly ref Int3 XYZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 XYW => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 XYW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XZX => 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. - public readonly ref Int3 XZY => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 XZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XZZ => 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. - public readonly ref Int3 XZW => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 XZW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XWX => 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. - public readonly ref Int3 XWY => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 XWZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 XWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 XWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YXY => 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. - public readonly ref Int3 YXZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 YXW => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 YXW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YYW => 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. - public readonly ref Int3 YZX => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 YZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YZZ => 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. - public readonly ref Int3 YZW => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 YWX => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 YWX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YWY => 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. - public readonly ref Int3 YWZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 YWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 YWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZXX => 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. - public readonly ref Int3 ZXY => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ZXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZXZ => 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. - public readonly ref Int3 ZXW => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 ZYX => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ZYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZYZ => 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. - public readonly ref Int3 ZYW => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ZYW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZZW => 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. - public readonly ref Int3 ZWX => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 ZWY => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ZWY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ZWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WXX => 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. - public readonly ref Int3 WXY => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 WXZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 WXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WXW => 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. - public readonly ref Int3 WYX => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 WYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WYY => 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. - public readonly ref Int3 WYZ => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 WYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WYW => 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. - public readonly ref Int3 WZX => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 WZY => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 WZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WZW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WWX => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WWY => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 WWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYZZ => ref *(Int4*)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. - public readonly ref Int4 XYZW => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 XYZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYWY => ref *(Int4*)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. - public readonly ref Int4 XYWZ => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 XYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZYZ => ref *(Int4*)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. - public readonly ref Int4 XZYW => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 XZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZWX => ref *(Int4*)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. - public readonly ref Int4 XZWY => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 XZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWYY => ref *(Int4*)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. - public readonly ref Int4 XWYZ => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 XWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWZX => ref *(Int4*)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. - public readonly ref Int4 XWZY => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 XWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 XWWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXZZ => ref *(Int4*)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. - public readonly ref Int4 YXZW => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 YXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXWY => ref *(Int4*)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. - public readonly ref Int4 YXWZ => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 YXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZXZ => ref *(Int4*)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. - public readonly ref Int4 YZXW => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 YZXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZZW => ref *(Int4*)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. - public readonly ref Int4 YZWX => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 YZWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWXY => ref *(Int4*)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. - public readonly ref Int4 YWXZ => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 YWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWYW => ref *(Int4*)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. - public readonly ref Int4 YWZX => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 YWZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 YWWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXYZ => ref *(Int4*)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. - public readonly ref Int4 ZXYW => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ZXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXWX => ref *(Int4*)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. - public readonly ref Int4 ZXWY => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ZXWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYXZ => ref *(Int4*)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. - public readonly ref Int4 ZYXW => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ZYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYZW => ref *(Int4*)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. - public readonly ref Int4 ZYWX => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ZYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWXX => ref *(Int4*)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. - public readonly ref Int4 ZWXY => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ZWXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWXW => ref *(Int4*)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. - public readonly ref Int4 ZWYX => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ZWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ZWWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXYY => ref *(Int4*)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. - public readonly ref Int4 WXYZ => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 WXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXZX => ref *(Int4*)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. - public readonly ref Int4 WXZY => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 WXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYXY => ref *(Int4*)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. - public readonly ref Int4 WYXZ => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 WYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYYW => ref *(Int4*)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. - public readonly ref Int4 WYZX => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 WYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZXX => ref *(Int4*)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. - public readonly ref Int4 WZXY => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 WZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZXW => ref *(Int4*)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. - public readonly ref Int4 WZYX => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 WZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 WWWW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref int R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref int G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref int B => ref this.z; /// /// Gets a reference to the value representing the A component. /// - public readonly ref int A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref int A => ref this.w; /// /// Gets a readonly 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 readonly Int2 RR => 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. - public readonly ref Int2 RG => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 RB => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 RA => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 GR => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 GG => 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. - public readonly ref Int2 GB => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 GA => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 BR => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 BG => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 BG => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 BB => 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. - public readonly ref Int2 BA => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 AR => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 AG => ref *(Int2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int2 AB => ref *(Int2*)UndefinedData; + [UnscopedRef] + public ref Int2 AB => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int2 AA => ref *(Int2*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RRA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RGG => 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. - public readonly ref Int3 RGB => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 RGA => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 RGA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RBR => 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. - public readonly ref Int3 RBG => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 RBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RBB => 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. - public readonly ref Int3 RBA => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 RBA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RAR => 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. - public readonly ref Int3 RAG => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 RAB => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 RAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 RAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GRG => 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. - public readonly ref Int3 GRB => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 GRA => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 GRA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GGA => 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. - public readonly ref Int3 GBR => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 GBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GBB => 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. - public readonly ref Int3 GBA => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 GAR => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 GAR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GAG => 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. - public readonly ref Int3 GAB => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 GAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 GAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BRR => 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. - public readonly ref Int3 BRG => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 BRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BRB => 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. - public readonly ref Int3 BRA => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 BGR => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 BGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BGB => 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. - public readonly ref Int3 BGA => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 BGA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BBB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BBA => 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. - public readonly ref Int3 BAR => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 BAG => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 BAG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 BAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ARR => 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. - public readonly ref Int3 ARG => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 ARB => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ARB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ARA => 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. - public readonly ref Int3 AGR => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 AGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 AGG => 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. - public readonly ref Int3 AGB => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 AGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 AGA => 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. - public readonly ref Int3 ABR => ref *(Int3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref Int3 ABG => ref *(Int3*)UndefinedData; + [UnscopedRef] + public ref Int3 ABG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ABB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 ABA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 AAR => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 AAG => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 AAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int3 AAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RRAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGBB => ref *(Int4*)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. - public readonly ref Int4 RGBA => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 RGBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGAG => ref *(Int4*)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. - public readonly ref Int4 RGAB => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 RGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBGB => ref *(Int4*)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. - public readonly ref Int4 RBGA => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 RBGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBAR => ref *(Int4*)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. - public readonly ref Int4 RBAG => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 RBAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RBAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RARR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RARG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RARA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RAGG => ref *(Int4*)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. - public readonly ref Int4 RAGB => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 RAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RAGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RABR => ref *(Int4*)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. - public readonly ref Int4 RABG => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 RABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 RAAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRBB => ref *(Int4*)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. - public readonly ref Int4 GRBA => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 GRBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRAG => ref *(Int4*)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. - public readonly ref Int4 GRAB => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 GRAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GRAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBRB => ref *(Int4*)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. - public readonly ref Int4 GBRA => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 GBRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBBA => ref *(Int4*)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. - public readonly ref Int4 GBAR => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 GBAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GBAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GARR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GARG => ref *(Int4*)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. - public readonly ref Int4 GARB => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 GARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GARA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAGA => ref *(Int4*)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. - public readonly ref Int4 GABR => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 GABR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 GAAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRGB => ref *(Int4*)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. - public readonly ref Int4 BRGA => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 BRGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRAR => ref *(Int4*)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. - public readonly ref Int4 BRAG => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 BRAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BRAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGRB => ref *(Int4*)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. - public readonly ref Int4 BGRA => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 BGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGBA => ref *(Int4*)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. - public readonly ref Int4 BGAR => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 BGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BBAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BARR => ref *(Int4*)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. - public readonly ref Int4 BARG => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 BARG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BARA => ref *(Int4*)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. - public readonly ref Int4 BAGR => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 BAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BAGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BAGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BABR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 BAAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARGG => ref *(Int4*)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. - public readonly ref Int4 ARGB => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ARGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARBR => ref *(Int4*)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. - public readonly ref Int4 ARBG => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ARBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ARAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGRG => ref *(Int4*)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. - public readonly ref Int4 AGRB => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 AGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGGA => ref *(Int4*)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. - public readonly ref Int4 AGBR => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 AGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABRR => ref *(Int4*)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. - public readonly ref Int4 ABRG => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ABRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABRA => ref *(Int4*)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. - public readonly ref Int4 ABGR => ref *(Int4*)UndefinedData; + [UnscopedRef] + public ref Int4 ABGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 ABAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AARR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AARG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AARA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AABR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly 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 readonly Int4 AAAA => ref *(Int4*)UndefinedData; #if !SOURCE_GENERATOR @@ -4372,7 +5053,6 @@ 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. public static Int4 operator ~(Int4 xyzw) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -4408,7 +5088,6 @@ public unsafe partial struct Int4 /// The result of shifting left by . /// 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 static Int4 operator <<(Int4 xyzw, UInt4 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index 03b54736..86627011 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -1,9 +1,9 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using ComputeSharp.Core.Intrinsics.Attributes; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #pragma warning disable CS0660, CS0661 @@ -35,16 +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. - public readonly ref int this[int row] => ref *(int*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -52,8 +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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -62,13 +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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -197,7 +214,6 @@ public unsafe partial struct Int1x1 /// 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 static Int1x1 operator ~(Int1x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -233,7 +249,6 @@ public unsafe partial struct Int1x1 /// The result of shifting left by . /// 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 static Int1x1 operator <<(Int1x1 matrix, UInt1x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -338,16 +353,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. - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -355,8 +378,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -365,18 +392,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -590,7 +623,6 @@ public unsafe partial struct Int1x2 /// 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 static Int1x2 operator ~(Int1x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -626,7 +658,6 @@ public unsafe partial struct Int1x2 /// The result of shifting left by . /// 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 static Int1x2 operator <<(Int1x2 matrix, UInt1x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -742,16 +773,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. - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -759,8 +798,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -769,23 +812,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -1000,7 +1050,6 @@ public unsafe partial struct Int1x3 /// 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 static Int1x3 operator ~(Int1x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1036,7 +1085,6 @@ public unsafe partial struct Int1x3 /// The result of shifting left by . /// 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 static Int1x3 operator <<(Int1x3 matrix, UInt1x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -1157,16 +1205,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. - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1174,8 +1230,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1184,28 +1244,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref int M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -1421,7 +1489,6 @@ public unsafe partial struct Int1x4 /// 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 static Int1x4 operator ~(Int1x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1457,7 +1524,6 @@ public unsafe partial struct Int1x4 /// The result of shifting left by . /// 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 static Int1x4 operator <<(Int1x4 matrix, UInt1x4 amount) => default; -#endif /// /// Bitwise ands a value. @@ -1568,16 +1634,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. - public readonly ref int this[int row] => ref *(int*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1585,8 +1659,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1595,18 +1673,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -1806,7 +1890,6 @@ public unsafe partial struct Int2x1 /// 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 static Int2x1 operator ~(Int2x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1842,7 +1925,6 @@ public unsafe partial struct Int2x1 /// The result of shifting left by . /// 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 static Int2x1 operator <<(Int2x1 matrix, UInt2x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -1976,16 +2058,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. - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1993,8 +2083,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2003,28 +2097,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -2156,7 +2258,6 @@ public unsafe partial struct Int2x2 /// 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 static Int2x2 operator ~(Int2x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -2192,7 +2293,6 @@ public unsafe partial struct Int2x2 /// The result of shifting left by . /// 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 static Int2x2 operator <<(Int2x2 matrix, UInt2x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -2332,16 +2432,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. - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2349,8 +2457,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2359,38 +2471,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref int M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -2608,7 +2730,6 @@ public unsafe partial struct Int2x3 /// 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 static Int2x3 operator ~(Int2x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -2644,7 +2765,6 @@ public unsafe partial struct Int2x3 /// The result of shifting left by . /// 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 static Int2x3 operator <<(Int2x3 matrix, UInt2x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -2796,16 +2916,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. - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2813,8 +2941,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2823,48 +2955,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref int M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref int M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref int M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -3084,7 +3228,6 @@ public unsafe partial struct Int2x4 /// 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 static Int2x4 operator ~(Int2x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -3120,7 +3263,6 @@ public unsafe partial struct Int2x4 /// The result of shifting left by . /// 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 static Int2x4 operator <<(Int2x4 matrix, UInt2x4 amount) => default; -#endif /// /// Bitwise ands a value. @@ -3230,16 +3372,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. - public readonly ref int this[int row] => ref *(int*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3247,8 +3397,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3257,23 +3411,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -3474,7 +3635,6 @@ public unsafe partial struct Int3x1 /// 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 static Int3x1 operator ~(Int3x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -3510,7 +3670,6 @@ public unsafe partial struct Int3x1 /// The result of shifting left by . /// 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 static Int3x1 operator <<(Int3x1 matrix, UInt3x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -3657,16 +3816,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. - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3674,8 +3841,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3684,38 +3855,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref int M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -3933,7 +4114,6 @@ public unsafe partial struct Int3x2 /// 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 static Int3x2 operator ~(Int3x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -3969,7 +4149,6 @@ public unsafe partial struct Int3x2 /// The result of shifting left by . /// 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 static Int3x2 operator <<(Int3x2 matrix, UInt3x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -4128,16 +4307,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. - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4145,8 +4332,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4155,53 +4346,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref int M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -4338,7 +4542,6 @@ public unsafe partial struct Int3x3 /// 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 static Int3x3 operator ~(Int3x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -4374,7 +4577,6 @@ public unsafe partial struct Int3x3 /// The result of shifting left by . /// 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 static Int3x3 operator <<(Int3x3 matrix, UInt3x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -4551,16 +4753,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. - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4568,8 +4778,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4578,68 +4792,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref int M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref int M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref int M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref int M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref int M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref int M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -4863,7 +5093,6 @@ public unsafe partial struct Int3x4 /// 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 static Int3x4 operator ~(Int3x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -4899,7 +5128,6 @@ public unsafe partial struct Int3x4 /// The result of shifting left by . /// 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 static Int3x4 operator <<(Int3x4 matrix, UInt3x4 amount) => default; -#endif /// /// Bitwise ands a value. @@ -5014,16 +5242,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. - public readonly ref int this[int row] => ref *(int*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5031,8 +5267,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5041,28 +5281,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref int M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -5264,7 +5512,6 @@ public unsafe partial struct Int4x1 /// 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 static Int4x1 operator ~(Int4x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -5300,7 +5547,6 @@ public unsafe partial struct Int4x1 /// The result of shifting left by . /// 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 static Int4x1 operator <<(Int4x1 matrix, UInt4x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -5460,16 +5706,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. - public readonly ref Int2 this[int row] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5477,8 +5731,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5487,48 +5745,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref int M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref int M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref int M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -5748,7 +6018,6 @@ public unsafe partial struct Int4x2 /// 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 static Int4x2 operator ~(Int4x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -5784,7 +6053,6 @@ public unsafe partial struct Int4x2 /// The result of shifting left by . /// 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 static Int4x2 operator <<(Int4x2 matrix, UInt4x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -5962,16 +6230,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. - public readonly ref Int3 this[int row] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5979,8 +6255,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5989,68 +6269,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref int M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref int M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref int M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref int M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref int M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref int M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -6274,7 +6570,6 @@ public unsafe partial struct Int4x3 /// 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 static Int4x3 operator ~(Int4x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -6310,7 +6605,6 @@ public unsafe partial struct Int4x3 /// The result of shifting left by . /// 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 static Int4x3 operator <<(Int4x3 matrix, UInt4x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -6512,16 +6806,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. - public readonly ref Int4 this[int row] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -6529,8 +6831,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. - public readonly ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -6539,88 +6845,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. - public readonly ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref int M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref int M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref int M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref int M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref int M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref int M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref int M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref int M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref int M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref int M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref int M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref int M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref int M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref int M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref int M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref int M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref int M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref int M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref int M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public readonly ref int M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m44), 1)); + [UnscopedRef] + public ref int M44 => ref this.m44; /// /// Creates a new value with the same value for all its components. @@ -6764,7 +7090,6 @@ public unsafe partial struct Int4x4 /// 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 static Int4x4 operator ~(Int4x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -6800,7 +7125,6 @@ public unsafe partial struct Int4x4 /// The result of shifting left by . /// 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 static Int4x4 operator <<(Int4x4 matrix, UInt4x4 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index a4134dcd..d1129567 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -9,6 +9,7 @@ void GenerateAllMatrixProperties(string typeName, int elementSize) { #> +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; <# @@ -19,7 +20,6 @@ using System.Runtime.InteropServices; #> #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #pragma warning disable CS0660, CS0661 @@ -150,16 +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. - public readonly ref <#=rowTypeName#> this[int row] => ref *(<#=rowTypeName#>*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(<#=typeName#>2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -167,8 +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. - public readonly ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(<#=typeName#>3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -177,8 +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. - public readonly ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(<#=typeName#>4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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++) @@ -192,13 +208,15 @@ public unsafe partial struct <#=fullTypeName#> if (isBoolType) { #> - public readonly ref <#=elementTypeName#> M<#=i#><#=j#> => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.m<#=i#><#=j#>)), 1)); + [UnscopedRef] + public ref <#=elementTypeName#> M<#=i#><#=j#> => ref Unsafe.As(ref this.m<#=i#><#=j#>); <# } else { #> - public readonly ref <#=elementTypeName#> M<#=i#><#=j#> => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m<#=i#><#=j#>), 1)); + [UnscopedRef] + public ref <#=elementTypeName#> M<#=i#><#=j#> => ref this.m<#=i#><#=j#>; <# } #> @@ -410,7 +428,6 @@ public unsafe partial struct <#=fullTypeName#> /// 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 static <#=fullTypeName#> operator ~(<#=fullTypeName#> matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -446,7 +463,6 @@ public unsafe partial struct <#=fullTypeName#> /// The result of shifting left by . /// 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 static <#=fullTypeName#> operator <<(<#=fullTypeName#> matrix, UInt<#=rows#>x<#=columns#> amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs index 7fdeb3ec..29125e97 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs @@ -1,10 +1,10 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -60,357 +61,417 @@ public unsafe partial struct UInt2 /// /// Gets a reference to the value representing the X component. /// - public readonly ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref uint X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref uint Y => ref this.y; /// /// Gets a readonly 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 readonly UInt2 XX => 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. - public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 YY => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYY => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref uint R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref uint G => ref this.y; /// /// Gets a readonly 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 readonly UInt2 RR => 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. - public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 GG => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGG => ref *(UInt4*)UndefinedData; #if !SOURCE_GENERATOR @@ -543,7 +604,6 @@ 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. public static UInt2 operator ~(UInt2 xy) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -579,7 +639,6 @@ public unsafe partial struct UInt2 /// The result of shifting left by . /// 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 static UInt2 operator <<(UInt2 xy, UInt2 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs index 8afabad5..ff57fbb8 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs @@ -1,10 +1,10 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -68,1435 +69,1675 @@ public unsafe partial struct UInt3 /// /// Gets a reference to the value representing the X component. /// - public readonly ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref uint X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref uint Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref uint Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref uint Z => ref this.z; /// /// Gets a readonly 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 readonly UInt2 XX => 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. - public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 XZ => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 YY => 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. - public readonly ref UInt2 YZ => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 ZX => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 ZY => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 ZY => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 ZZ => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XYY => 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. - public readonly ref UInt3 XYZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 XYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XZX => 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. - public readonly ref UInt3 XZY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 XZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YXY => 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. - public readonly ref UInt3 YXZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 YXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYZ => 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. - public readonly ref UInt3 YZX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 YZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZXX => 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. - public readonly ref UInt3 ZXY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ZXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZXZ => 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. - public readonly ref UInt3 ZYX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ZYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref uint R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref uint G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref uint B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref uint B => ref this.z; /// /// Gets a readonly 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 readonly UInt2 RR => 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. - public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 RB => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 GG => 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. - public readonly ref UInt2 GB => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 BR => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 BG => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 BG => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 BB => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RGG => 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. - public readonly ref UInt3 RGB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 RGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RBR => 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. - public readonly ref UInt3 RBG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 RBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RBB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GRG => 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. - public readonly ref UInt3 GRB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 GRB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGB => 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. - public readonly ref UInt3 GBR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 GBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GBB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BRR => 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. - public readonly ref UInt3 BRG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 BRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BRB => 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. - public readonly ref UInt3 BGR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 BGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BBB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBBB => ref *(UInt4*)UndefinedData; #if !SOURCE_GENERATOR @@ -1629,7 +1870,6 @@ 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. public static UInt3 operator ~(UInt3 xyz) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1665,7 +1905,6 @@ public unsafe partial struct UInt3 /// The result of shifting left by . /// 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 static UInt3 operator <<(UInt3 xyz, UInt3 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs index 83db512a..31e4c0c5 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs @@ -1,10 +1,10 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -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. @@ -76,4073 +77,4753 @@ public unsafe partial struct UInt4 /// /// Gets a reference to the value representing the X component. /// - public readonly ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref uint X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// - public readonly ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref uint Y => ref this.y; /// /// Gets a reference to the value representing the Z component. /// - public readonly ref uint Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref uint Z => ref this.z; /// /// Gets a reference to the value representing the W component. /// - public readonly ref uint W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref uint W => ref this.w; /// /// Gets a readonly 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 readonly UInt2 XX => 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. - public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 XZ => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 XW => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 YY => 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. - public readonly ref UInt2 YZ => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 YW => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 ZX => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 ZY => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 ZY => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 ZZ => 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. - public readonly ref UInt2 ZW => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 WX => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 WY => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 WZ => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 WZ => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 WW => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XXW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XYY => 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. - public readonly ref UInt3 XYZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 XYW => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 XYW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XZX => 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. - public readonly ref UInt3 XZY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 XZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XZZ => 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. - public readonly ref UInt3 XZW => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 XZW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XWX => 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. - public readonly ref UInt3 XWY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 XWZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 XWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 XWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YXY => 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. - public readonly ref UInt3 YXZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 YXW => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 YXW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YYW => 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. - public readonly ref UInt3 YZX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 YZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YZZ => 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. - public readonly ref UInt3 YZW => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 YWX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 YWX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YWY => 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. - public readonly ref UInt3 YWZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 YWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 YWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZXX => 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. - public readonly ref UInt3 ZXY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ZXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZXZ => 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. - public readonly ref UInt3 ZXW => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 ZYX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ZYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZYZ => 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. - public readonly ref UInt3 ZYW => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ZYW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZZW => 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. - public readonly ref UInt3 ZWX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 ZWY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ZWY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ZWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WXX => 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. - public readonly ref UInt3 WXY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 WXZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 WXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WXW => 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. - public readonly ref UInt3 WYX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 WYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WYY => 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. - public readonly ref UInt3 WYZ => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 WYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WYW => 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. - public readonly ref UInt3 WZX => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 WZY => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 WZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WZW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WWX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WWY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 WWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYZZ => ref *(UInt4*)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. - public readonly ref UInt4 XYZW => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 XYZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYWY => ref *(UInt4*)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. - public readonly ref UInt4 XYWZ => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 XYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZYZ => ref *(UInt4*)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. - public readonly ref UInt4 XZYW => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 XZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZWX => ref *(UInt4*)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. - public readonly ref UInt4 XZWY => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 XZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWYY => ref *(UInt4*)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. - public readonly ref UInt4 XWYZ => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 XWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWZX => ref *(UInt4*)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. - public readonly ref UInt4 XWZY => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 XWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 XWWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXZZ => ref *(UInt4*)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. - public readonly ref UInt4 YXZW => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 YXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXWY => ref *(UInt4*)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. - public readonly ref UInt4 YXWZ => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 YXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZXZ => ref *(UInt4*)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. - public readonly ref UInt4 YZXW => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 YZXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZZW => ref *(UInt4*)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. - public readonly ref UInt4 YZWX => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 YZWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWXY => ref *(UInt4*)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. - public readonly ref UInt4 YWXZ => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 YWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWYW => ref *(UInt4*)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. - public readonly ref UInt4 YWZX => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 YWZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 YWWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXYZ => ref *(UInt4*)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. - public readonly ref UInt4 ZXYW => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ZXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXWX => ref *(UInt4*)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. - public readonly ref UInt4 ZXWY => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ZXWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYXZ => ref *(UInt4*)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. - public readonly ref UInt4 ZYXW => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ZYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYZW => ref *(UInt4*)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. - public readonly ref UInt4 ZYWX => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ZYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWXX => ref *(UInt4*)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. - public readonly ref UInt4 ZWXY => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ZWXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWXW => ref *(UInt4*)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. - public readonly ref UInt4 ZWYX => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ZWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ZWWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXYY => ref *(UInt4*)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. - public readonly ref UInt4 WXYZ => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 WXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXZX => ref *(UInt4*)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. - public readonly ref UInt4 WXZY => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 WXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYXY => ref *(UInt4*)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. - public readonly ref UInt4 WYXZ => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 WYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYYW => ref *(UInt4*)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. - public readonly ref UInt4 WYZX => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 WYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZXX => ref *(UInt4*)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. - public readonly ref UInt4 WZXY => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 WZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZXW => ref *(UInt4*)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. - public readonly ref UInt4 WZYX => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 WZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 WWWW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public readonly ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); + [UnscopedRef] + public ref uint R => ref this.x; /// /// Gets a reference to the value representing the G component. /// - public readonly ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); + [UnscopedRef] + public ref uint G => ref this.y; /// /// Gets a reference to the value representing the B component. /// - public readonly ref uint B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); + [UnscopedRef] + public ref uint B => ref this.z; /// /// Gets a reference to the value representing the A component. /// - public readonly ref uint A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.w), 1)); + [UnscopedRef] + public ref uint A => ref this.w; /// /// Gets a readonly 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 readonly UInt2 RR => 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. - public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 RB => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 RA => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 GG => 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. - public readonly ref UInt2 GB => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 GA => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 BR => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 BG => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 BG => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 BB => 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. - public readonly ref UInt2 BA => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 AR => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 AG => ref *(UInt2*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt2 AB => ref *(UInt2*)UndefinedData; + [UnscopedRef] + public ref UInt2 AB => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt2 AA => ref *(UInt2*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RRA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RGG => 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. - public readonly ref UInt3 RGB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 RGA => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 RGA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RBR => 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. - public readonly ref UInt3 RBG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 RBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RBB => 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. - public readonly ref UInt3 RBA => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 RBA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RAR => 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. - public readonly ref UInt3 RAG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 RAB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 RAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 RAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GRG => 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. - public readonly ref UInt3 GRB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 GRA => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 GRA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GGA => 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. - public readonly ref UInt3 GBR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 GBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GBB => 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. - public readonly ref UInt3 GBA => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 GAR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 GAR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GAG => 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. - public readonly ref UInt3 GAB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 GAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 GAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BRR => 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. - public readonly ref UInt3 BRG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 BRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BRB => 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. - public readonly ref UInt3 BRA => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 BGR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 BGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BGB => 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. - public readonly ref UInt3 BGA => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 BGA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BBB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BBA => 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. - public readonly ref UInt3 BAR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 BAG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 BAG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 BAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ARR => 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. - public readonly ref UInt3 ARG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 ARB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ARB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ARA => 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. - public readonly ref UInt3 AGR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 AGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 AGG => 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. - public readonly ref UInt3 AGB => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 AGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 AGA => 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. - public readonly ref UInt3 ABR => ref *(UInt3*)UndefinedData; + [UnscopedRef] + 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. - public readonly ref UInt3 ABG => ref *(UInt3*)UndefinedData; + [UnscopedRef] + public ref UInt3 ABG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ABB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 ABA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 AAR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 AAG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 AAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt3 AAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RRAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGBB => ref *(UInt4*)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. - public readonly ref UInt4 RGBA => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 RGBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGAG => ref *(UInt4*)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. - public readonly ref UInt4 RGAB => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 RGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBGB => ref *(UInt4*)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. - public readonly ref UInt4 RBGA => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 RBGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBAR => ref *(UInt4*)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. - public readonly ref UInt4 RBAG => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 RBAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RBAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RARR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RARG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RARA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RAGG => ref *(UInt4*)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. - public readonly ref UInt4 RAGB => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 RAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RAGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RABR => ref *(UInt4*)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. - public readonly ref UInt4 RABG => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 RABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 RAAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRBB => ref *(UInt4*)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. - public readonly ref UInt4 GRBA => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 GRBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRAG => ref *(UInt4*)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. - public readonly ref UInt4 GRAB => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 GRAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GRAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBRB => ref *(UInt4*)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. - public readonly ref UInt4 GBRA => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 GBRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBBA => ref *(UInt4*)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. - public readonly ref UInt4 GBAR => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 GBAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GBAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GARR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GARG => ref *(UInt4*)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. - public readonly ref UInt4 GARB => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 GARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GARA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAGA => ref *(UInt4*)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. - public readonly ref UInt4 GABR => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 GABR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 GAAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRGB => ref *(UInt4*)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. - public readonly ref UInt4 BRGA => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 BRGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRAR => ref *(UInt4*)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. - public readonly ref UInt4 BRAG => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 BRAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BRAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGRB => ref *(UInt4*)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. - public readonly ref UInt4 BGRA => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 BGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGBA => ref *(UInt4*)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. - public readonly ref UInt4 BGAR => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 BGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BBAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BARR => ref *(UInt4*)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. - public readonly ref UInt4 BARG => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 BARG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BARA => ref *(UInt4*)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. - public readonly ref UInt4 BAGR => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 BAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BAGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BAGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BABR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 BAAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARGG => ref *(UInt4*)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. - public readonly ref UInt4 ARGB => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ARGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARBR => ref *(UInt4*)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. - public readonly ref UInt4 ARBG => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ARBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ARAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGRG => ref *(UInt4*)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. - public readonly ref UInt4 AGRB => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 AGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGGA => ref *(UInt4*)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. - public readonly ref UInt4 AGBR => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 AGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABRR => ref *(UInt4*)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. - public readonly ref UInt4 ABRG => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ABRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABRA => ref *(UInt4*)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. - public readonly ref UInt4 ABGR => ref *(UInt4*)UndefinedData; + [UnscopedRef] + public ref UInt4 ABGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 ABAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AARR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AARG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AARA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AABR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly 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 readonly UInt4 AAAA => ref *(UInt4*)UndefinedData; #if !SOURCE_GENERATOR @@ -4275,7 +4956,6 @@ 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. public static UInt4 operator ~(UInt4 xyzw) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -4311,7 +4991,6 @@ public unsafe partial struct UInt4 /// The result of shifting left by . /// 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 static UInt4 operator <<(UInt4 xyzw, UInt4 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs index 4a5fefa6..365620dd 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs @@ -1,8 +1,8 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #pragma warning disable CS0660, CS0661 @@ -34,16 +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. - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -51,8 +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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -61,13 +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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Creates a new value with the same value for all its components. @@ -171,7 +188,6 @@ public unsafe partial struct UInt1x1 /// 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 static UInt1x1 operator ~(UInt1x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -207,7 +223,6 @@ public unsafe partial struct UInt1x1 /// The result of shifting left by . /// 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 static UInt1x1 operator <<(UInt1x1 matrix, UInt1x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -312,16 +327,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. - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -329,8 +352,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -339,18 +366,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Creates a new value with the same value for all its components. @@ -455,7 +488,6 @@ public unsafe partial struct UInt1x2 /// 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 static UInt1x2 operator ~(UInt1x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -491,7 +523,6 @@ public unsafe partial struct UInt1x2 /// The result of shifting left by . /// 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 static UInt1x2 operator <<(UInt1x2 matrix, UInt1x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -607,16 +638,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. - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -624,8 +663,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -634,23 +677,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Creates a new value with the same value for all its components. @@ -756,7 +806,6 @@ public unsafe partial struct UInt1x3 /// 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 static UInt1x3 operator ~(UInt1x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -792,7 +841,6 @@ public unsafe partial struct UInt1x3 /// The result of shifting left by . /// 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 static UInt1x3 operator <<(UInt1x3 matrix, UInt1x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -913,16 +961,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. - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -930,8 +986,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -940,28 +1000,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref uint M14 => ref this.m14; /// /// Creates a new value with the same value for all its components. @@ -1068,7 +1136,6 @@ public unsafe partial struct UInt1x4 /// 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 static UInt1x4 operator ~(UInt1x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1104,7 +1171,6 @@ public unsafe partial struct UInt1x4 /// The result of shifting left by . /// 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 static UInt1x4 operator <<(UInt1x4 matrix, UInt1x4 amount) => default; -#endif /// /// Bitwise ands a value. @@ -1215,16 +1281,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. - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1232,8 +1306,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1242,18 +1320,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Creates a new value with the same value for all its components. @@ -1358,7 +1442,6 @@ public unsafe partial struct UInt2x1 /// 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 static UInt2x1 operator ~(UInt2x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1394,7 +1477,6 @@ public unsafe partial struct UInt2x1 /// The result of shifting left by . /// 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 static UInt2x1 operator <<(UInt2x1 matrix, UInt2x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -1528,16 +1610,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. - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1545,8 +1635,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1555,28 +1649,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Creates a new value with the same value for all its components. @@ -1683,7 +1785,6 @@ public unsafe partial struct UInt2x2 /// 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 static UInt2x2 operator ~(UInt2x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -1719,7 +1820,6 @@ public unsafe partial struct UInt2x2 /// The result of shifting left by . /// 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 static UInt2x2 operator <<(UInt2x2 matrix, UInt2x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -1859,16 +1959,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. - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1876,8 +1984,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -1886,38 +1998,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref uint M23 => ref this.m23; /// /// Creates a new value with the same value for all its components. @@ -2026,7 +2148,6 @@ public unsafe partial struct UInt2x3 /// 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 static UInt2x3 operator ~(UInt2x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -2062,7 +2183,6 @@ public unsafe partial struct UInt2x3 /// The result of shifting left by . /// 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 static UInt2x3 operator <<(UInt2x3 matrix, UInt2x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -2214,16 +2334,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. - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2231,8 +2359,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2241,48 +2373,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref uint M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref uint M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref uint M24 => ref this.m24; /// /// Creates a new value with the same value for all its components. @@ -2393,7 +2537,6 @@ public unsafe partial struct UInt2x4 /// 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 static UInt2x4 operator ~(UInt2x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -2429,7 +2572,6 @@ public unsafe partial struct UInt2x4 /// The result of shifting left by . /// 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 static UInt2x4 operator <<(UInt2x4 matrix, UInt2x4 amount) => default; -#endif /// /// Bitwise ands a value. @@ -2539,16 +2681,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. - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2556,8 +2706,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2566,23 +2720,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Creates a new value with the same value for all its components. @@ -2688,7 +2849,6 @@ public unsafe partial struct UInt3x1 /// 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 static UInt3x1 operator ~(UInt3x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -2724,7 +2884,6 @@ public unsafe partial struct UInt3x1 /// The result of shifting left by . /// 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 static UInt3x1 operator <<(UInt3x1 matrix, UInt3x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -2871,16 +3030,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. - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2888,8 +3055,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -2898,38 +3069,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref uint M32 => ref this.m32; /// /// Creates a new value with the same value for all its components. @@ -3038,7 +3219,6 @@ public unsafe partial struct UInt3x2 /// 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 static UInt3x2 operator ~(UInt3x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -3074,7 +3254,6 @@ public unsafe partial struct UInt3x2 /// The result of shifting left by . /// 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 static UInt3x2 operator <<(UInt3x2 matrix, UInt3x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -3233,16 +3412,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. - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3250,8 +3437,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3260,53 +3451,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref uint M33 => ref this.m33; /// /// Creates a new value with the same value for all its components. @@ -3418,7 +3622,6 @@ public unsafe partial struct UInt3x3 /// 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 static UInt3x3 operator ~(UInt3x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -3454,7 +3657,6 @@ public unsafe partial struct UInt3x3 /// The result of shifting left by . /// 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 static UInt3x3 operator <<(UInt3x3 matrix, UInt3x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -3631,16 +3833,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. - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3648,8 +3858,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -3658,68 +3872,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref uint M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref uint M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref uint M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref uint M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref uint M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref uint M34 => ref this.m34; /// /// Creates a new value with the same value for all its components. @@ -3834,7 +4064,6 @@ public unsafe partial struct UInt3x4 /// 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 static UInt3x4 operator ~(UInt3x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -3870,7 +4099,6 @@ public unsafe partial struct UInt3x4 /// The result of shifting left by . /// 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 static UInt3x4 operator <<(UInt3x4 matrix, UInt3x4 amount) => default; -#endif /// /// Bitwise ands a value. @@ -3985,16 +4213,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. - public readonly ref uint this[int row] => ref *(uint*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4002,8 +4238,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4012,28 +4252,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref uint M41 => ref this.m41; /// /// Creates a new value with the same value for all its components. @@ -4140,7 +4388,6 @@ public unsafe partial struct UInt4x1 /// 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 static UInt4x1 operator ~(UInt4x1 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -4176,7 +4423,6 @@ public unsafe partial struct UInt4x1 /// The result of shifting left by . /// 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 static UInt4x1 operator <<(UInt4x1 matrix, UInt4x1 amount) => default; -#endif /// /// Bitwise ands a value. @@ -4336,16 +4582,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. - public readonly ref UInt2 this[int row] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4353,8 +4607,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4363,48 +4621,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref uint M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref uint M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref uint M42 => ref this.m42; /// /// Creates a new value with the same value for all its components. @@ -4515,7 +4785,6 @@ public unsafe partial struct UInt4x2 /// 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 static UInt4x2 operator ~(UInt4x2 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -4551,7 +4820,6 @@ public unsafe partial struct UInt4x2 /// The result of shifting left by . /// 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 static UInt4x2 operator <<(UInt4x2 matrix, UInt4x2 amount) => default; -#endif /// /// Bitwise ands a value. @@ -4729,16 +4997,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. - public readonly ref UInt3 this[int row] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4746,8 +5022,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -4756,68 +5036,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref uint M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref uint M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref uint M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref uint M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref uint M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref uint M43 => ref this.m43; /// /// Creates a new value with the same value for all its components. @@ -4932,7 +5228,6 @@ public unsafe partial struct UInt4x3 /// 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 static UInt4x3 operator ~(UInt4x3 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -4968,7 +5263,6 @@ public unsafe partial struct UInt4x3 /// The result of shifting left by . /// 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 static UInt4x3 operator <<(UInt4x3 matrix, UInt4x3 amount) => default; -#endif /// /// Bitwise ands a value. @@ -5170,16 +5464,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. - public readonly ref UInt4 this[int row] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. - public readonly ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5187,8 +5489,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. - public readonly ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + /// + [UnscopedRef] + 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. @@ -5197,88 +5503,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. - public readonly ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData; + /// + /// Unlike with vector types, these properties cannot validate in advance which combinations are writeable, so callers should ensure proper use. + /// 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 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]. /// - public readonly ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m11), 1)); + [UnscopedRef] + public ref uint M11 => ref this.m11; /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public readonly ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m12), 1)); + [UnscopedRef] + public ref uint M12 => ref this.m12; /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public readonly ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m13), 1)); + [UnscopedRef] + public ref uint M13 => ref this.m13; /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public readonly ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m14), 1)); + [UnscopedRef] + public ref uint M14 => ref this.m14; /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public readonly ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m21), 1)); + [UnscopedRef] + public ref uint M21 => ref this.m21; /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public readonly ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m22), 1)); + [UnscopedRef] + public ref uint M22 => ref this.m22; /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public readonly ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m23), 1)); + [UnscopedRef] + public ref uint M23 => ref this.m23; /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public readonly ref uint M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m24), 1)); + [UnscopedRef] + public ref uint M24 => ref this.m24; /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public readonly ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m31), 1)); + [UnscopedRef] + public ref uint M31 => ref this.m31; /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public readonly ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m32), 1)); + [UnscopedRef] + public ref uint M32 => ref this.m32; /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public readonly ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m33), 1)); + [UnscopedRef] + public ref uint M33 => ref this.m33; /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public readonly ref uint M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m34), 1)); + [UnscopedRef] + public ref uint M34 => ref this.m34; /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public readonly ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m41), 1)); + [UnscopedRef] + public ref uint M41 => ref this.m41; /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public readonly ref uint M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m42), 1)); + [UnscopedRef] + public ref uint M42 => ref this.m42; /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public readonly ref uint M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m43), 1)); + [UnscopedRef] + public ref uint M43 => ref this.m43; /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public readonly ref uint M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m44), 1)); + [UnscopedRef] + public ref uint M44 => ref this.m44; /// /// Creates a new value with the same value for all its components. @@ -5397,7 +5723,6 @@ public unsafe partial struct UInt4x4 /// 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 static UInt4x4 operator ~(UInt4x4 matrix) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -5433,7 +5758,6 @@ public unsafe partial struct UInt4x4 /// The result of shifting left by . /// 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 static UInt4x4 operator <<(UInt4x4 matrix, UInt4x4 amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 6b75ac34..54fe23af 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -53,10 +53,22 @@ void GenerateVectorProperties(string typeName, int elementSize) int i = int.Parse(Regex.Match(typeName, @"\d+$").Value); string formattable = elementTypeName == "Bool" ? "" : "ISpanFormattable"; + List namespaces = new List + { + "System.Diagnostics.CodeAnalysis", + "System.Runtime.CompilerServices", + "System.Runtime.InteropServices" + }; + if (elementTypeName != "Bool") { - WriteLine("using System;"); - WriteLine("using System.Globalization;"); + namespaces.Add("System"); + namespaces.Add("System.Globalization"); + } + + foreach (string name in namespaces.OrderBy(name => name)) + { + WriteLine($"using {name};"); } if (elementTypeName == "Float" || elementTypeName == "Int") @@ -64,11 +76,8 @@ void GenerateVectorProperties(string typeName, int elementSize) WriteLine("using ComputeSharp.Core.Intrinsics.Attributes;"); } #> -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; -using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable @@ -113,7 +122,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 +204,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("/// "); @@ -206,16 +216,16 @@ public unsafe partial struct <#=typeName#> char fieldName = "xyzw"["xyzwrgba".IndexOf(propertyName.ToLower()) % 4]; // Property - Write($"public readonly {refType} {propertyType} {propertyName} "); + WriteLine("[UnscopedRef]"); 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($"=> ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.As(ref Unsafe.AsRef(in this.{fieldName})), 1));"); + WriteLine($"public {refType} {propertyType} {propertyName} => ref Unsafe.As(ref this.{fieldName});"); } else { - WriteLine($"=> ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.{fieldName}), 1));"); + WriteLine($"public {refType} {propertyType} {propertyName} => ref this.{fieldName};"); } } else @@ -229,7 +239,8 @@ public unsafe partial struct <#=typeName#> WriteLine("/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior."); // Property - Write($"public readonly {refType} {propertyType} {propertyName} "); + WriteLine("[UnscopedRef]"); + Write($"public {refType} {propertyType} {propertyName} "); WriteLine($"=> ref *({propertyType}*)UndefinedData;"); } } @@ -492,7 +503,6 @@ public unsafe partial struct <#=typeName#> /// 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 static <#=typeName#> operator ~(<#=typeName#> <#=argumentName#>) => default; -#if NEEDS_CSHARP_11 /// /// Shifts right a value. /// @@ -528,7 +538,6 @@ public unsafe partial struct <#=typeName#> /// The result of shifting left by . /// 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 static <#=typeName#> operator <<(<#=typeName#> <#=argumentName#>, UInt<#=i#> amount) => default; -#endif /// /// Bitwise ands a value. diff --git a/src/ComputeSharp.Core/Properties/Polyfills/UnscopedRefAttribute.cs b/src/ComputeSharp.Core/Properties/Polyfills/UnscopedRefAttribute.cs new file mode 100644 index 00000000..c57a296a --- /dev/null +++ b/src/ComputeSharp.Core/Properties/Polyfills/UnscopedRefAttribute.cs @@ -0,0 +1,36 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace System.Diagnostics.CodeAnalysis; + +/// +/// Used to indicate a byref escapes and is not scoped. +/// +/// +/// +/// There are several cases where the C# compiler treats a as implicitly +/// - where the compiler does not allow the to escape the method. +/// +/// +/// For example: +/// +/// for instance methods. +/// parameters that refer to types. +/// parameters. +/// +/// +/// +/// This attribute is used in those instances where the should be allowed to escape. +/// +/// +/// Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for +/// API authors to understand the lifetime implications of applying this attribute and how it may impact their users. +/// +/// +[AttributeUsage( + AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter, + AllowMultiple = false, + Inherited = false)] +internal sealed class UnscopedRefAttribute : Attribute +{ +} \ No newline at end of file diff --git a/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj index b261d67a..872389bd 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj +++ b/src/ComputeSharp.D2D1.SourceGenerators/ComputeSharp.D2D1.SourceGenerators.csproj @@ -15,6 +15,7 @@ + @@ -91,7 +92,7 @@ - + diff --git a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj index 3125ca55..181e7103 100644 --- a/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj +++ b/src/ComputeSharp.D2D1/ComputeSharp.D2D1.csproj @@ -4,12 +4,6 @@ bin\Release ComputeSharp.D2D1.xml - - - - - - diff --git a/src/ComputeSharp.D2D1/Properties/Polyfills/CompilerFeatureRequiredAttribute.cs b/src/ComputeSharp.D2D1/Properties/Polyfills/CompilerFeatureRequiredAttribute.cs new file mode 100644 index 00000000..ab911b2a --- /dev/null +++ b/src/ComputeSharp.D2D1/Properties/Polyfills/CompilerFeatureRequiredAttribute.cs @@ -0,0 +1,40 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace System.Runtime.CompilerServices; + +/// +/// Indicates that compiler support for a particular feature is required for the location where this attribute is applied. +/// +[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)] +internal sealed class CompilerFeatureRequiredAttribute : Attribute +{ + /// + /// Initializes the with the identifier of the syntax used. + /// + /// The name of the compiler feature. + public CompilerFeatureRequiredAttribute(string featureName) + { + FeatureName = featureName; + } + + /// + /// The name of the compiler feature. + /// + public string FeatureName { get; } + + /// + /// If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand . + /// + public bool IsOptional { get; init; } + + /// + /// The used for the ref structs C# feature. + /// + public const string RefStructs = nameof(RefStructs); + + /// + /// The used for the required members C# feature. + /// + public const string RequiredMembers = nameof(RequiredMembers); +} \ No newline at end of file diff --git a/src/ComputeSharp.D2D1/Properties/Polyfills/RequiredMemberAttribute.cs b/src/ComputeSharp.D2D1/Properties/Polyfills/RequiredMemberAttribute.cs new file mode 100644 index 00000000..a9bc75c6 --- /dev/null +++ b/src/ComputeSharp.D2D1/Properties/Polyfills/RequiredMemberAttribute.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +namespace System.Runtime.CompilerServices; + +/// +/// Specifies that a type has required members or that a member is required. +/// +[AttributeUsage( + AttributeTargets.Class | + AttributeTargets.Struct | + AttributeTargets.Field | + AttributeTargets.Property, + AllowMultiple = false, + Inherited = false)] +internal sealed class RequiredMemberAttribute : Attribute +{ +} \ No newline at end of file diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs new file mode 100644 index 00000000..b3e28d2c --- /dev/null +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs @@ -0,0 +1,139 @@ +using System; +#if NET6_0_OR_GREATER +using System.Buffers.Text; +#endif +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Text; +#if !NET6_0_OR_GREATER +using ComputeSharp.D2D1.NetStandard.System.Text; +#endif + +namespace ComputeSharp.D2D1.Shaders.Interop.Buffers; + +/// +/// Helpers for the type. +/// +internal static class ArrayPoolBinaryWriterExtensions +{ + /// + /// Writes the raw value of type into the buffer. + /// + /// The type of value to write. + /// The target instance to write data to. + /// The value to write. + /// This method will just blit the data of into the target buffer. + public static unsafe void WriteRaw(this in ArrayPoolBufferWriter writer, scoped in T value) + where T : unmanaged + { + Span span = writer.GetSpan(sizeof(T)); + + Unsafe.WriteUnaligned(ref MemoryMarshal.GetReference(span), value); + + writer.Advance(sizeof(T)); + } + + /// + /// Writes the raw value of type into the buffer. + /// + /// The type of value to write. + /// The target instance to write data to. + /// The value to write. + public static unsafe void WriteRaw(this in ArrayPoolBufferWriter writer, scoped in T value) + where T : unmanaged + { + Span span = writer.GetSpan(1); + + MemoryMarshal.GetReference(span) = value; + + writer.Advance(1); + } + + /// + /// Writes the raw data from the input into the buffer. + /// + /// The type of values in the target writer. + /// The target instance to write data to. + /// The data to write. + public static void WriteRaw(this in ArrayPoolBufferWriter writer, scoped ReadOnlySpan data) + where T : unmanaged + { + Span span = writer.GetSpan(data.Length); + + data.CopyTo(span); + + writer.Advance(data.Length); + } + +#if !NET6_0_OR_GREATER + /// + /// Writes the raw data from the input into the buffer. + /// + /// The target instance to write data to. + /// The data to write. + public static void WriteRaw(this in ArrayPoolBufferWriter writer, string data) + { + Span span = writer.GetSpan(data.Length); + + data.AsSpan().CopyTo(span); + + writer.Advance(data.Length); + } +#endif + + /// + /// Writes an value as UTF8 bytes into the buffer. + /// + /// The target instance to write data to. + /// The value to write. + public static void WriteAsUtf8(this in ArrayPoolBufferWriter writer, int value) + { +#if NET6_0_OR_GREATER + // Get a span of at least 10 elements (10 is the length of int.MaxValue as text) + Span span = writer.GetSpan(10); + + _ = Utf8Formatter.TryFormat(value, span, out int bytesWritten); + + writer.Advance(bytesWritten); +#else + // Just accept the allocation on .NET Standard 2.0 + writer.WriteAsUtf8(value.ToString()); +#endif + } + + /// + /// Writes text as UTF8 bytes into the buffer. + /// + /// The target instance to write data to. + /// The text to write. + public static void WriteAsUtf8(this in ArrayPoolBufferWriter writer, string text) + { + int maximumByteSize = Encoding.UTF8.GetMaxByteCount(text.Length); + + Span span = writer.GetSpan(maximumByteSize); + + int writtenBytes = Encoding.UTF8.GetBytes(text.AsSpan(), span); + + writer.Advance(writtenBytes); + } + + /// + /// Writes an value as Unicode bytes into the buffer. + /// + /// The target instance to write data to. + /// The value to write. + public static void WriteAsUnicode(this in ArrayPoolBufferWriter writer, int value) + { +#if NET6_0_OR_GREATER + // Get a span of at least 10 elements (10 is the length of int.MaxValue as text) + Span span = writer.GetSpan(10); + + _ = value.TryFormat(span, out int charsWritten); + + writer.Advance(charsWritten); +#else + // Just accept the allocation on .NET Standard 2.0 + writer.WriteRaw(value.ToString().AsSpan()); +#endif + } +} \ No newline at end of file diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter{T}.cs similarity index 72% rename from src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter.cs rename to src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter{T}.cs index dfc2c329..162894c2 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter{T}.cs @@ -5,29 +5,32 @@ using System.Diagnostics.CodeAnalysis; using System.Numerics; #endif using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Text; #if !NET6_0_OR_GREATER -using ComputeSharp.D2D1.NetStandard.System.Text; using BitOperations = ComputeSharp.D2D1.NetStandard.System.Buffers.BitOperations; #endif namespace ComputeSharp.D2D1.Shaders.Interop.Buffers; -/// -/// Represents a heap-based, array-backed output sink into which binary data can be written. -/// -internal ref struct ArrayPoolBinaryWriter +/// +internal static class ArrayPoolBinaryWriter { /// /// The default buffer size to use to expand empty arrays. /// public const int DefaultInitialBufferSize = 256; +} +/// +/// Represents a heap-based, array-backed output sink into which data can be written. +/// +/// The type of values to write. +internal ref struct ArrayPoolBufferWriter + where T : unmanaged +{ /// - /// The underlying array. + /// The underlying array. /// - private byte[]? array; + private T[]? array; /// /// The starting offset within . @@ -35,23 +38,24 @@ internal ref struct ArrayPoolBinaryWriter private int index; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ArrayPoolBinaryWriter(int capacity) + public ArrayPoolBufferWriter(int capacity) { - this.array = ArrayPool.Shared.Rent(capacity); + this.array = ArrayPool.Shared.Rent(capacity); this.index = 0; } /// /// Gets the data written to the underlying buffer so far, as a . /// - public ReadOnlySpan WrittenSpan + [UnscopedRef] + public readonly ReadOnlySpan WrittenSpan { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - byte[]? array = this.array; + T[]? array = this.array; if (array is null) { @@ -62,44 +66,17 @@ internal ref struct ArrayPoolBinaryWriter } } - /// - /// Writes a value of type into the buffer. - /// - /// The type of value to write. - /// The value to write. - public unsafe void Write(in T value) - where T : unmanaged - { - Span span = GetSpan(sizeof(T)); - - MemoryMarshal.Write(span, ref Unsafe.AsRef(in value)); - - Advance(sizeof(T)); - } - - /// - /// Writes text as UTF8 bytes into the buffer. - /// - /// The text to write. - public unsafe void WriteAsUtf8(string text) - { - int maximumByteSize = Encoding.UTF8.GetMaxByteCount(text.Length); - - Span span = GetSpan(maximumByteSize); - - int writtenBytes = Encoding.UTF8.GetBytes(text.AsSpan(), span); - - Advance(writtenBytes); - } - /// /// Advances the current writer. /// /// The amount to advance. - /// Must be called after . - private void Advance(int count) + /// + /// Must be called after . + /// This and the methods below are to enable mutating extensions. + /// + internal readonly void Advance(int count) { - byte[]? array = this.array; + T[]? array = this.array; if (array is null) { @@ -116,7 +93,7 @@ internal ref struct ArrayPoolBinaryWriter ThrowArgumentExceptionForAdvancedTooFar(); } - this.index += count; + Unsafe.AsRef(in this.index) += count; } /// @@ -124,7 +101,8 @@ internal ref struct ArrayPoolBinaryWriter /// /// The capacity to request. /// A to write data to. - private Span GetSpan(int sizeHint = 0) + [UnscopedRef] + internal readonly Span GetSpan(int sizeHint = 0) { CheckBufferAndEnsureCapacity(sizeHint); @@ -136,9 +114,9 @@ internal ref struct ArrayPoolBinaryWriter /// /// The minimum number of items to ensure space for in . [MethodImpl(MethodImplOptions.AggressiveInlining)] - private void CheckBufferAndEnsureCapacity(int sizeHint) + private readonly void CheckBufferAndEnsureCapacity(int sizeHint) { - byte[]? array = this.array; + T[]? array = this.array; if (array is null) { @@ -166,7 +144,7 @@ internal ref struct ArrayPoolBinaryWriter /// /// The minimum number of items to ensure space for in . [MethodImpl(MethodImplOptions.NoInlining)] - private void ResizeBuffer(int sizeHint) + private readonly unsafe void ResizeBuffer(int sizeHint) { uint minimumSize = (uint)this.index + (uint)sizeHint; @@ -180,19 +158,19 @@ internal ref struct ArrayPoolBinaryWriter minimumSize = BitOperations.RoundUpToPowerOf2(minimumSize); } - byte[] newArray = ArrayPool.Shared.Rent((int)minimumSize); + T[] newArray = ArrayPool.Shared.Rent((int)minimumSize); - Buffer.BlockCopy(this.array!, 0, newArray, 0, this.index); + Buffer.BlockCopy(this.array!, 0, newArray, 0, this.index * sizeof(T)); - ArrayPool.Shared.Return(this.array!); + ArrayPool.Shared.Return(this.array!); - this.array = newArray; + Unsafe.AsRef(in this.array) = newArray; } /// public void Dispose() { - byte[]? array = this.array; + T[]? array = this.array; if (array is null) { @@ -201,7 +179,7 @@ internal ref struct ArrayPoolBinaryWriter this.array = null; - ArrayPool.Shared.Return(array); + ArrayPool.Shared.Return(array); } /// diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs index 583abe7c..d79fcfb4 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1PixelShaderEffect.cs @@ -1,7 +1,5 @@ using System; -using System.Globalization; using System.Runtime.CompilerServices; -using System.Text; using ComputeSharp.D2D1.Extensions; using ComputeSharp.D2D1.Helpers; using ComputeSharp.D2D1.Interop.Effects; @@ -84,80 +82,96 @@ public static unsafe class D2D1PixelShaderEffect PixelShaderEffect.For.Initialize(mapperFactory); - // Setup the input string - StringBuilder effectInputsBuilder = new(); + using ArrayPoolBufferWriter writer = new(ArrayPoolBinaryWriter.DefaultInitialBufferSize); + // Build the XML text + writer.WriteRaw(""" + + + + + + + + + """); + + // Add the input nodes for (int i = 0; i < PixelShaderEffect.For.InputCount; i++) { - effectInputsBuilder.Append(""); + writer.WriteRaw(" + + """); } - // Prepare the XML with a variable number of inputs - string xml = @$" - - - - - - - {effectInputsBuilder} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"; + // Write the last part of the XML (including the buffer property) + writer.WriteRaw(""" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + """); - fixed (char* pXml = xml) + // Null terminator for the text + writer.WriteRaw('\0'); + + fixed (char* pXml = writer.WrittenSpan) fixed (char* pBufferPropertyName = "ConstantBuffer") fixed (char* pResourceTextureManager0PropertyName = "ResourceTextureManager0") fixed (char* pResourceTextureManager1PropertyName = "ResourceTextureManager1") @@ -328,167 +342,175 @@ public static unsafe class D2D1PixelShaderEffect PixelShaderEffect.For.Initialize(mapperFactory); - using ArrayPoolBinaryWriter writer = new(ArrayPoolBinaryWriter.DefaultInitialBufferSize); + using ArrayPoolBufferWriter writer = new(ArrayPoolBinaryWriter.DefaultInitialBufferSize); // Blob id - writer.Write(D2D1EffectRegistrationData.V1.BlobId); + writer.WriteRaw(D2D1EffectRegistrationData.V1.BlobId); // Effect id and number of inputs - writer.Write(PixelShaderEffect.For.Id); - writer.Write(PixelShaderEffect.For.InputCount); + writer.WriteRaw(PixelShaderEffect.For.Id); + writer.WriteRaw(PixelShaderEffect.For.InputCount); // Build the XML text - writer.WriteAsUtf8(@" - - + + - - - - - "); + writer.WriteRaw(""" + '/> + + + + + + """u8); // Add the input nodes for (int i = 0; i < PixelShaderEffect.For.InputCount; i++) { - writer.WriteAsUtf8(""); + writer.WriteRaw(" + + """u8); } // Write the last part of the XML (including the buffer property) - writer.WriteAsUtf8(@" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"); + writer.WriteRaw(""" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + """u8); // Null terminator for the text - writer.Write((byte)'\0'); + writer.WriteRaw((byte)'\0'); // Bindings - writer.Write(17); - writer.WriteAsUtf8("ConstantBuffer"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetConstantBuffer); - writer.Write((nint)PixelShaderEffect.SetConstantBuffer); - writer.WriteAsUtf8("ResourceTextureManager0"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager0); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager0); - writer.WriteAsUtf8("ResourceTextureManager1"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager1); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager1); - writer.WriteAsUtf8("ResourceTextureManager2"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager2); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager2); - writer.WriteAsUtf8("ResourceTextureManager3"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager3); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager3); - writer.WriteAsUtf8("ResourceTextureManager4"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager4); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager4); - writer.WriteAsUtf8("ResourceTextureManager5"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager5); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager5); - writer.WriteAsUtf8("ResourceTextureManager6"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager6); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager6); - writer.WriteAsUtf8("ResourceTextureManager7"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager7); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager7); - writer.WriteAsUtf8("ResourceTextureManager8"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager8); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager8); - writer.WriteAsUtf8("ResourceTextureManager9"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager9); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager9); - writer.WriteAsUtf8("ResourceTextureManager10"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager10); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager10); - writer.WriteAsUtf8("ResourceTextureManager11"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager11); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager11); - writer.WriteAsUtf8("ResourceTextureManager12"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager12); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager12); - writer.WriteAsUtf8("ResourceTextureManager13"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager13); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager13); - writer.WriteAsUtf8("ResourceTextureManager14"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager14); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager14); - writer.WriteAsUtf8("ResourceTextureManager15"); - writer.Write((byte)'\0'); - writer.Write((nint)PixelShaderEffect.GetResourceTextureManager15); - writer.Write((nint)PixelShaderEffect.SetResourceTextureManager15); + writer.WriteRaw(17); + writer.WriteRaw("ConstantBuffer"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetConstantBuffer); + writer.WriteRaw((nint)PixelShaderEffect.SetConstantBuffer); + writer.WriteRaw("ResourceTextureManager0"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager0); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager0); + writer.WriteRaw("ResourceTextureManager1"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager1); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager1); + writer.WriteRaw("ResourceTextureManager2"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager2); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager2); + writer.WriteRaw("ResourceTextureManager3"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager3); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager3); + writer.WriteRaw("ResourceTextureManager4"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager4); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager4); + writer.WriteRaw("ResourceTextureManager5"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager5); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager5); + writer.WriteRaw("ResourceTextureManager6"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager6); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager6); + writer.WriteRaw("ResourceTextureManager7"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager7); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager7); + writer.WriteRaw("ResourceTextureManager8"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager8); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager8); + writer.WriteRaw("ResourceTextureManager9"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager9); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager9); + writer.WriteRaw("ResourceTextureManager10"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager10); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager10); + writer.WriteRaw("ResourceTextureManager11"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager11); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager11); + writer.WriteRaw("ResourceTextureManager12"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager12); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager12); + writer.WriteRaw("ResourceTextureManager13"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager13); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager13); + writer.WriteRaw("ResourceTextureManager14"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager14); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager14); + writer.WriteRaw("ResourceTextureManager15"u8); + writer.WriteRaw((byte)'\0'); + writer.WriteRaw((nint)PixelShaderEffect.GetResourceTextureManager15); + writer.WriteRaw((nint)PixelShaderEffect.SetResourceTextureManager15); // Effect factory - writer.Write((nint)PixelShaderEffect.For.Factory); + writer.WriteRaw((nint)PixelShaderEffect.For.Factory); effectId = PixelShaderEffect.For.Id; diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Factories/Abstract/D2D1TransformMapperFactory{T, TParameters, TTransformMapper}.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Factories/Abstract/D2D1TransformMapperFactory{T, TParameters, TTransformMapper}.cs index ec21e16b..f65fc762 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Factories/Abstract/D2D1TransformMapperFactory{T, TParameters, TTransformMapper}.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Factories/Abstract/D2D1TransformMapperFactory{T, TParameters, TTransformMapper}.cs @@ -20,5 +20,5 @@ internal abstract class D2D1TransformMapperFactory /// The instance to use to retrieve parameters for the transform mapper. /// - public D2D1TransformMapperParametersAccessor? ParametersAccessor { get; init; } + public required D2D1TransformMapperParametersAccessor ParametersAccessor { get; init; } } \ No newline at end of file diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1AffineTransformMapperFactory.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1AffineTransformMapperFactory.cs index 9b9f662c..e3d8945c 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1AffineTransformMapperFactory.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1AffineTransformMapperFactory.cs @@ -106,12 +106,12 @@ internal sealed class D2D1AffineTransformMapperFactory /// /// Gets the instance to get the dynamic affine transform matrix. /// - public D2D1TransformMapperFactory.Accessor? Accessor { get; init; } + public required D2D1TransformMapperFactory.Accessor Accessor { get; init; } /// public override Matrix3x2 Get(in T shader) { - return Accessor!(in shader); + return Accessor(in shader); } } diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1InflateTransformMapperFactory.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1InflateTransformMapperFactory.cs index 819390d9..9e5b8a0e 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1InflateTransformMapperFactory.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Factories/D2D1InflateTransformMapperFactory.cs @@ -68,7 +68,7 @@ internal sealed class D2D1InflateTransformMapperFactory : D2D1TransformMapper /// /// Gets the instance to get the dynamic inflate amount. /// - public D2D1TransformMapperFactory.Accessor? Accessor { get; init; } + public required D2D1TransformMapperFactory.Accessor Accessor { get; init; } /// public override (int, int, int, int) Get(in T shader) @@ -87,7 +87,7 @@ internal sealed class D2D1InflateTransformMapperFactory : D2D1TransformMapper /// /// Gets the instance to get the dynamic inflate LTRB amount. /// - public D2D1TransformMapperFactory.Accessor<(int, int, int, int)>? Accessor { get; init; } + public required D2D1TransformMapperFactory.Accessor<(int, int, int, int)> Accessor { get; init; } /// public override (int, int, int, int) Get(in T shader) diff --git a/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.ID3DInclude.cs b/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.ID3DInclude.cs index 23455d02..260bcdcf 100644 --- a/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.ID3DInclude.cs +++ b/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.ID3DInclude.cs @@ -1,6 +1,4 @@ -using System; -using System.IO; -using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -46,16 +44,6 @@ partial class D3DCompiler /// private static readonly void** Vtbl = InitVtbl(); - /// - /// A pointer to a buffer with the contents of d2d1effecthelpers.hlsli. - /// - private static void* d2D1EffectHelpersData; - - /// - /// The size of the buffer in . - /// - private static int d2D1EffectHelpersSize; - /// /// Builds the custom method table pointer for . /// @@ -99,14 +87,8 @@ partial class D3DCompiler { if (new string(pFileName) == "d2d1effecthelpers.hlsli") { - // Load the header if needed - if (d2D1EffectHelpersData is null) - { - d2D1EffectHelpersData = LoadD2D1EffectHelpersHeader(out d2D1EffectHelpersSize); - } - - *ppData = d2D1EffectHelpersData; - *pBytes = (uint)d2D1EffectHelpersSize; + *ppData = (byte*)Unsafe.AsPointer(ref MemoryMarshal.GetReference(D2D1EffectHelpers.TextUtf8)); + *pBytes = (uint)D2D1EffectHelpers.TextUtf8.Length; return S.S_OK; } @@ -120,34 +102,5 @@ partial class D3DCompiler { return S.S_OK; } - - /// - /// Loads the d2d1effecthelpers.hlsli header into a persistent buffer. - /// - /// The size of the header. - /// A pointer to a buffer with the contents of d2d1effecthelpers.hlsli. - private static void* LoadD2D1EffectHelpersHeader(out int size) - { -#if SOURCE_GENERATOR - const string headerFilename = "ComputeSharp.D2D1.SourceGenerators.ComputeSharp.D2D1.Shaders.Translation.Headers.d2d1effecthelpers.hlsli"; -#else - const string headerFilename = "ComputeSharp.D2D1.Shaders.Translation.Headers.d2d1effecthelpers.hlsli"; -#endif - - using Stream source = Assembly.GetExecutingAssembly().GetManifestResourceStream(headerFilename)!; - using MemoryStream destination = new(); - - source.CopyTo(destination); - - byte[] buffer = destination.GetBuffer(); - - size = (int)destination.Position; - - void* pointer = NativeMemory.Alloc((nuint)size); - - buffer.AsSpan(0, size).CopyTo(new Span(pointer, size)); - - return pointer; - } } } diff --git a/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.cs b/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.cs index c8856937..2dde77f8 100644 --- a/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.cs +++ b/src/ComputeSharp.D2D1/Shaders/Translation/D3DCompiler.cs @@ -214,77 +214,27 @@ internal static unsafe partial class D3DCompiler /// /// Gets a with the "D2D_FUNCTION" ASCII text. /// - public static ReadOnlySpan D2D_FUNCTION => new[] { (byte)'D', (byte)'2', (byte)'D', (byte)'_', (byte)'F', (byte)'U', (byte)'N', (byte)'C', (byte)'T', (byte)'I', (byte)'O', (byte)'N', (byte)'\0' }; + public static ReadOnlySpan D2D_FUNCTION => "D2D_FUNCTION"u8; /// /// Gets a with the "D2D_FULL_SHADER" ASCII text. /// - public static ReadOnlySpan D2D_FULL_SHADER => new[] { (byte)'D', (byte)'2', (byte)'D', (byte)'_', (byte)'F', (byte)'U', (byte)'L', (byte)'L', (byte)'_', (byte)'S', (byte)'H', (byte)'A', (byte)'D', (byte)'E', (byte)'R', (byte)'\0' }; + public static ReadOnlySpan D2D_FULL_SHADER => "D2D_FULL_SHADER"u8; /// /// Gets a with the '\0' ASCII character. /// - public static ReadOnlySpan NullTerminator => new[] { (byte)'\0' }; + public static ReadOnlySpan NullTerminator => ""u8; /// /// Gets a with the "D2D_ENTRY" ASCII text. /// - public static ReadOnlySpan D2D_ENTRY => new[] { (byte)'D', (byte)'2', (byte)'D', (byte)'_', (byte)'E', (byte)'N', (byte)'T', (byte)'R', (byte)'Y', (byte)'\0' }; + public static ReadOnlySpan D2D_ENTRY => "D2D_ENTRY"u8; /// /// Gets a with the "Execute" ASCII text. /// - public static ReadOnlySpan Execute => new[] { (byte)'E', (byte)'x', (byte)'e', (byte)'c', (byte)'u', (byte)'t', (byte)'e', (byte)'\0' }; - - /// - /// Gets a with the "lib_4_0_level_9_1" ASCII text. - /// - private static ReadOnlySpan lib_4_0_level_9_1 => new[] { (byte)'l', (byte)'i', (byte)'b', (byte)'_', (byte)'4', (byte)'_', (byte)'0', (byte)'_', (byte)'l', (byte)'e', (byte)'v', (byte)'e', (byte)'l', (byte)'_', (byte)'9', (byte)'_', (byte)'1', (byte)'\0' }; - - /// - /// Gets a with the "lib_4_0_level_9_3" ASCII text. - /// - private static ReadOnlySpan lib_4_0_level_9_3 => new[] { (byte)'l', (byte)'i', (byte)'b', (byte)'_', (byte)'4', (byte)'_', (byte)'0', (byte)'_', (byte)'l', (byte)'e', (byte)'v', (byte)'e', (byte)'l', (byte)'_', (byte)'9', (byte)'_', (byte)'3', (byte)'\0' }; - - /// - /// Gets a with the "lib_4_0" ASCII text. - /// - private static ReadOnlySpan lib_4_0 => new[] { (byte)'l', (byte)'i', (byte)'b', (byte)'_', (byte)'4', (byte)'_', (byte)'0', (byte)'\0' }; - - /// - /// Gets a with the "lib_4_1" ASCII text. - /// - private static ReadOnlySpan lib_4_1 => new[] { (byte)'l', (byte)'i', (byte)'b', (byte)'_', (byte)'4', (byte)'_', (byte)'1', (byte)'\0' }; - - /// - /// Gets a with the "lib_5_0" ASCII text. - /// - private static ReadOnlySpan lib_5_0 => new[] { (byte)'l', (byte)'i', (byte)'b', (byte)'_', (byte)'5', (byte)'_', (byte)'0', (byte)'\0' }; - - /// - /// Gets a with the "ps_4_0_level_9_1" ASCII text. - /// - private static ReadOnlySpan ps_4_0_level_9_1 => new[] { (byte)'p', (byte)'s', (byte)'_', (byte)'4', (byte)'_', (byte)'0', (byte)'_', (byte)'l', (byte)'e', (byte)'v', (byte)'e', (byte)'l', (byte)'_', (byte)'9', (byte)'_', (byte)'1', (byte)'\0' }; - - /// - /// Gets a with the "ps_4_0_level_9_3" ASCII text. - /// - private static ReadOnlySpan ps_4_0_level_9_3 => new[] { (byte)'p', (byte)'s', (byte)'_', (byte)'4', (byte)'_', (byte)'0', (byte)'_', (byte)'l', (byte)'e', (byte)'v', (byte)'e', (byte)'l', (byte)'_', (byte)'9', (byte)'_', (byte)'3', (byte)'\0' }; - - /// - /// Gets a with the "ps_4_0" ASCII text. - /// - private static ReadOnlySpan ps_4_0 => new[] { (byte)'p', (byte)'s', (byte)'_', (byte)'4', (byte)'_', (byte)'0', (byte)'\0' }; - - /// - /// Gets a with the "ps_4_1" ASCII text. - /// - private static ReadOnlySpan ps_4_1 => new[] { (byte)'p', (byte)'s', (byte)'_', (byte)'4', (byte)'_', (byte)'1', (byte)'\0' }; - - /// - /// Gets a with the "ps_5_0" ASCII text. - /// - private static ReadOnlySpan ps_5_0 => new[] { (byte)'p', (byte)'s', (byte)'_', (byte)'5', (byte)'_', (byte)'0', (byte)'\0' }; + public static ReadOnlySpan Execute => "Execute"u8; /// /// Gets a for a given shader profile, for a library. @@ -295,11 +245,11 @@ internal static unsafe partial class D3DCompiler { return shaderProfile switch { - D2D1ShaderProfile.PixelShader40Level91 => lib_4_0_level_9_1, - D2D1ShaderProfile.PixelShader40Level93 => lib_4_0_level_9_3, - D2D1ShaderProfile.PixelShader40 => lib_4_0, - D2D1ShaderProfile.PixelShader41 => lib_4_1, - _ => lib_5_0 + D2D1ShaderProfile.PixelShader40Level91 => "lib_4_0_level_9_1"u8, + D2D1ShaderProfile.PixelShader40Level93 => "lib_4_0_level_9_3"u8, + D2D1ShaderProfile.PixelShader40 => "lib_4_0"u8, + D2D1ShaderProfile.PixelShader41 => "lib_4_1"u8, + _ => "lib_5_0"u8 }; } @@ -312,11 +262,11 @@ internal static unsafe partial class D3DCompiler { return shaderProfile switch { - D2D1ShaderProfile.PixelShader40Level91 => ps_4_0_level_9_1, - D2D1ShaderProfile.PixelShader40Level93 => ps_4_0_level_9_3, - D2D1ShaderProfile.PixelShader40 => ps_4_0, - D2D1ShaderProfile.PixelShader41 => ps_4_1, - _ => ps_5_0 + D2D1ShaderProfile.PixelShader40Level91 => "ps_4_0_level_9_1"u8, + D2D1ShaderProfile.PixelShader40Level93 => "ps_4_0_level_9_3"u8, + D2D1ShaderProfile.PixelShader40 => "ps_4_0"u8, + D2D1ShaderProfile.PixelShader41 => "ps_4_1"u8, + _ => "ps_5_0"u8 }; } } diff --git a/src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli b/src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli deleted file mode 100644 index aaa56597..00000000 --- a/src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli +++ /dev/null @@ -1,316 +0,0 @@ -//--------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// This file is automatically generated. Please do not edit it directly. -// -//--------------------------------------------------------------------------- - -// File contents: -// - Helpers methods for authoring D2D Effect shader code. -// These are located at the end of the file (D2DGetInput, etc.). -// - The top portion contains definitions and initialization required by the helpers. -// These elements are prefaced with "__D2D" and can be safely ignored. -// -// To use these helpers, the following values must be defined before inclusion: -// D2D_INPUT_COUNT - The number of texture inputs to the effect. -// D2D_INPUT[N]_SIMPLE or D2D_INPUT[N]_COMPLEX - How the effect will sample each input. (If unspecificed, defaults to _COMPLEX.) -// D2D_ENTRY - The name of the entry point being compiled. This will usually be defined on the command line at compilation time. -// -// The following values can be optionally defined: -// D2D_FUNCTION - Compile the entry point as an export function. This will usually be defined on the command line at compilation time. -// D2D_FULL_SHADER - Compile the entry point as a full shader. This will usually be defined on the command line at compilation time. -// D2D_FULL_SHADER_ONLY - Only compile the in-scope entry points to full shaders, never to export functions. -// - -#define __D2D_DEFINE_PS_GLOBALS(inputIndex) \ -Texture2D InputTexture##inputIndex : register(t##inputIndex); \ -SamplerState InputSampler##inputIndex : register(s##inputIndex); \ - -// Define a texture and sampler pair for each D2D effect input. -#if (D2D_INPUT_COUNT >= 1) -__D2D_DEFINE_PS_GLOBALS(0) -#endif -#if (D2D_INPUT_COUNT >= 2) -__D2D_DEFINE_PS_GLOBALS(1) -#endif -#if (D2D_INPUT_COUNT >= 3) -__D2D_DEFINE_PS_GLOBALS(2) -#endif -#if (D2D_INPUT_COUNT >= 4) -__D2D_DEFINE_PS_GLOBALS(3) -#endif -#if (D2D_INPUT_COUNT >= 5) -__D2D_DEFINE_PS_GLOBALS(4) -#endif -#if (D2D_INPUT_COUNT >= 6) -__D2D_DEFINE_PS_GLOBALS(5) -#endif -#if (D2D_INPUT_COUNT >= 7) -__D2D_DEFINE_PS_GLOBALS(6) -#endif -#if (D2D_INPUT_COUNT >= 8) -__D2D_DEFINE_PS_GLOBALS(7) -#endif - -#define __D2D_MAXIMUM_INPUT_COUNT 8 - -// Validate that all required shader information has been defined. -#ifndef D2D_INPUT_COUNT -#error D2D_INPUT_COUNT is undefined. -#endif - -#if (D2D_INPUT_COUNT > __D2D_MAXIMUM_INPUT_COUNT) -#error D2D_INPUT_COUNT exceeds the maximum input count. -#endif - -// Define global statics to hold the values needed by intrinsic methods. -// These values are initialized by the entry point wrapper before calling into the -// effect's shader implementation. -#if !defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION) -static float4 __d2dstatic_scenePos = float4(0, 0, 0, 0); -#endif - -#define __D2D_DEFINE_INPUT_STATICS(inputIndex) \ -static float4 __d2dstatic_input##inputIndex = float4(0, 0, 0, 0); \ -static float4 __d2dstatic_uv##inputIndex = float4(0, 0, 0, 0); \ - -#if (D2D_INPUT_COUNT >= 1) -__D2D_DEFINE_INPUT_STATICS(0) -#endif -#if (D2D_INPUT_COUNT >= 2) -__D2D_DEFINE_INPUT_STATICS(1) -#endif -#if (D2D_INPUT_COUNT >= 3) -__D2D_DEFINE_INPUT_STATICS(2) -#endif -#if (D2D_INPUT_COUNT >= 4) -__D2D_DEFINE_INPUT_STATICS(3) -#endif -#if (D2D_INPUT_COUNT >= 5) -__D2D_DEFINE_INPUT_STATICS(4) -#endif -#if (D2D_INPUT_COUNT >= 6) -__D2D_DEFINE_INPUT_STATICS(5) -#endif -#if (D2D_INPUT_COUNT >= 7) -__D2D_DEFINE_INPUT_STATICS(6) -#endif -#if (D2D_INPUT_COUNT >= 8) -__D2D_DEFINE_INPUT_STATICS(7) -#endif - -// Define the scene position parameter according to whether the shader requires it, -// and whether it is the only parameter. -// The scene position input always needs to be defined for full shaders. -#if (!defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION)) -#if (D2D_INPUT_COUNT == 0) -#define __D2D_SCENE_POS float4 __d2dinput_scenePos : SCENE_POSITION -#define __D2D_INIT_STATIC_SCENE_POS __d2dstatic_scenePos = __d2dinput_scenePos -#else -#define __D2D_SCENE_POS float4 __d2dinput_scenePos : SCENE_POSITION, -#define __D2D_INIT_STATIC_SCENE_POS __d2dstatic_scenePos = __d2dinput_scenePos; - #endif -#else - #define __D2D_SCENE_POS - #define __D2D_INIT_STATIC_SCENE_POS -#endif - -// When compiling a function version, simple and complex inputs have different definitions. -// When compiling a full shader, they have the same definition. -// Access to input parameters also differs between functions and full shaders. -#if defined(D2D_FUNCTION) -#define __D2D_SIMPLE_INPUT(index) float4 __d2dinput_color##index : INPUT##index -#define __D2D_INIT_SIMPLE_STATIC(index) __d2dstatic_input##index = __d2dinput_color##index -#else -#define __D2D_SIMPLE_INPUT(index) float4 __d2dinput_uv##index : TEXCOORD##index -#define __D2D_INIT_SIMPLE_STATIC(index) __d2dstatic_uv##index = __d2dinput_uv##index -#endif - -#define __D2D_COMPLEX_INPUT(index) float4 __d2dinput_uv##index : TEXCOORD##index -#define __D2D_INIT_COMPLEX_STATIC(index) __d2dstatic_uv##index = __d2dinput_uv##index - -#define __D2D_SAMPLE_INPUT(index) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy) - -// Define each input as either simple or complex. -#if defined(D2D_INPUT0_SIMPLE) -#define __D2D_INPUT0 __D2D_SIMPLE_INPUT(0) -#define __D2D_INIT_STATIC0 __D2D_INIT_SIMPLE_STATIC(0) -#define __D2D_GET_INPUT0 __d2dstatic_input0 -#else -#define __D2D_INPUT0 __D2D_COMPLEX_INPUT(0) -#define __D2D_INIT_STATIC0 __D2D_INIT_COMPLEX_STATIC(0) -#define __D2D_GET_INPUT0 __D2D_SAMPLE_INPUT(0) -#endif -#if defined(D2D_INPUT1_SIMPLE) -#define __D2D_INPUT1 __D2D_SIMPLE_INPUT(1) -#define __D2D_INIT_STATIC1 __D2D_INIT_SIMPLE_STATIC(1) -#define __D2D_GET_INPUT1 __d2dstatic_input1 -#else -#define __D2D_INPUT1 __D2D_COMPLEX_INPUT(1) -#define __D2D_INIT_STATIC1 __D2D_INIT_COMPLEX_STATIC(1) -#define __D2D_GET_INPUT1 __D2D_SAMPLE_INPUT(1) -#endif -#if defined(D2D_INPUT2_SIMPLE) -#define __D2D_INPUT2 __D2D_SIMPLE_INPUT(2) -#define __D2D_INIT_STATIC2 __D2D_INIT_SIMPLE_STATIC(2) -#define __D2D_GET_INPUT2 __d2dstatic_input2 -#else -#define __D2D_INPUT2 __D2D_COMPLEX_INPUT(2) -#define __D2D_INIT_STATIC2 __D2D_INIT_COMPLEX_STATIC(2) -#define __D2D_GET_INPUT2 __D2D_SAMPLE_INPUT(2) -#endif -#if defined(D2D_INPUT3_SIMPLE) -#define __D2D_INPUT3 __D2D_SIMPLE_INPUT(3) -#define __D2D_INIT_STATIC3 __D2D_INIT_SIMPLE_STATIC(3) -#define __D2D_GET_INPUT3 __d2dstatic_input3 -#else -#define __D2D_INPUT3 __D2D_COMPLEX_INPUT(3) -#define __D2D_INIT_STATIC3 __D2D_INIT_COMPLEX_STATIC(3) -#define __D2D_GET_INPUT3 __D2D_SAMPLE_INPUT(3) -#endif -#if defined(D2D_INPUT4_SIMPLE) -#define __D2D_INPUT4 __D2D_SIMPLE_INPUT(4) -#define __D2D_INIT_STATIC4 __D2D_INIT_SIMPLE_STATIC(4) -#define __D2D_GET_INPUT4 __d2dstatic_input4 -#else -#define __D2D_INPUT4 __D2D_COMPLEX_INPUT(4) -#define __D2D_INIT_STATIC4 __D2D_INIT_COMPLEX_STATIC(4) -#define __D2D_GET_INPUT4 __D2D_SAMPLE_INPUT(4) -#endif -#if defined(D2D_INPUT5_SIMPLE) -#define __D2D_INPUT5 __D2D_SIMPLE_INPUT(5) -#define __D2D_INIT_STATIC5 __D2D_INIT_SIMPLE_STATIC(5) -#define __D2D_GET_INPUT5 __d2dstatic_input5 -#else -#define __D2D_INPUT5 __D2D_COMPLEX_INPUT(5) -#define __D2D_INIT_STATIC5 __D2D_INIT_COMPLEX_STATIC(5) -#define __D2D_GET_INPUT5 __D2D_SAMPLE_INPUT(5) -#endif -#if defined(D2D_INPUT6_SIMPLE) -#define __D2D_INPUT6 __D2D_SIMPLE_INPUT(6) -#define __D2D_INIT_STATIC6 __D2D_INIT_SIMPLE_STATIC(6) -#define __D2D_GET_INPUT6 __d2dstatic_input6 -#else -#define __D2D_INPUT6 __D2D_COMPLEX_INPUT(6) -#define __D2D_INIT_STATIC6 __D2D_INIT_COMPLEX_STATIC(6) -#define __D2D_GET_INPUT6 __D2D_SAMPLE_INPUT(6) -#endif -#if defined(D2D_INPUT7_SIMPLE) -#define __D2D_INPUT7 __D2D_SIMPLE_INPUT(7) -#define __D2D_INIT_STATIC7 __D2D_INIT_SIMPLE_STATIC(7) -#define __D2D_GET_INPUT7 __d2dstatic_input7 -#else -#define __D2D_INPUT7 __D2D_COMPLEX_INPUT(7) -#define __D2D_INIT_STATIC7 __D2D_INIT_COMPLEX_STATIC(7) -#define __D2D_GET_INPUT7 __D2D_SAMPLE_INPUT(7) -#endif -#if defined(D2D_INPUT8_SIMPLE) -#define __D2D_INPUT8 __D2D_SIMPLE_INPUT(8) -#define __D2D_INIT_STATIC8 __D2D_INIT_SIMPLE_STATIC(8) -#define __D2D_GET_INPUT8 __d2dstatic_input8 -#else -#define __D2D_INPUT8 __D2D_COMPLEX_INPUT(8) -#define __D2D_INIT_STATIC8 __D2D_INIT_COMPLEX_STATIC(8) -#define __D2D_GET_INPUT8 __D2D_SAMPLE_INPUT(8) -#endif - -// Define the export function inputs based on the defined input count and types. -#if (D2D_INPUT_COUNT == 0) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS -#elif (D2D_INPUT_COUNT == 1) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0 -#elif (D2D_INPUT_COUNT == 2) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1 -#elif (D2D_INPUT_COUNT == 3) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2 -#elif (D2D_INPUT_COUNT == 4) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3 -#elif (D2D_INPUT_COUNT == 5) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4 -#elif (D2D_INPUT_COUNT == 6) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5 -#elif (D2D_INPUT_COUNT == 7) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5, __D2D_INPUT6 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5; __D2D_INIT_STATIC6 -#elif (D2D_INPUT_COUNT == 8) -#define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5, __D2D_INPUT6, __D2D_INPUT7 -#define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5; __D2D_INIT_STATIC6; __D2D_INIT_STATIC7 -#endif - -#if !defined(CONCAT) -#define CONCAT(str1, str2) str1##str2 -#endif - -// Rename the entry point target function so that the actual entry point can use the name. -// This expansion is the same for both full shaders and functions. -#define D2D_PS_ENTRY(name) float4 CONCAT(name, _Impl)() - -// If neither D2D_FUNCTION or D2D_FULL_SHADER is defined, behave as if D2D_FULL_SHADER is defined. -#if defined(D2D_FUNCTION) && !defined(D2D_FULL_SHADER_ONLY) - - // Replaces simple samples with either static variable or an actual sample, - // depending on whether the input is declared as simple or complex. - #define D2DGetInput(index) __D2D_GET_INPUT##index - - #if !defined(D2D_CUSTOM_ENTRY) - // Declare function prototype for the target function so that it can be referenced before definition. - // D2D_ENTRY is a macro whose actual name resolves to the effect's target "entry point" function. - float4 CONCAT(D2D_ENTRY, _Impl)(); - - // This is the actual entry point definition, which forwards the call to the target function. - export float4 D2D_func_entry(__D2D_FUNCTION_INPUTS) - { - __D2D_INIT_STATICS; - return CONCAT(D2D_ENTRY, _Impl)(); - } - - #endif - -#else // !defined(D2D_FUNCTION) - - // Replaces simple samples with actual samples. - #define D2DGetInput(index) __D2D_SAMPLE_INPUT(index) - - #if !defined(D2D_CUSTOM_ENTRY) - // Declare function prototype for the target function so that it can be referenced before definition. - // D2D_ENTRY is a macro whose actual name resolves to the effect's target "entry point" function. - float4 CONCAT(D2D_ENTRY, _Impl)(); - - // This is the actual entry point definition, which forwards the call to the target function. - float4 D2D_ENTRY (float4 pos : SV_POSITION, __D2D_FUNCTION_INPUTS) : SV_TARGET - { - __D2D_INIT_STATICS; - return CONCAT(D2D_ENTRY, _Impl)(); - } - - #endif - -#endif // D2D_FUNCTION - -//=============================================================== -// Along with D2DGetInput defined above, the following macros and -// methods define D2D intrinsics for use in effect shader code. -//=============================================================== - -#if !defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION) -inline float4 D2DGetScenePosition() -{ - return __d2dstatic_scenePos; -} -#endif - -#define D2DGetInputCoordinate(index) __d2dstatic_uv##index - -#define D2DSampleInput(index, position) InputTexture##index.Sample(InputSampler##index, position) - -#define D2DSampleInputAtOffset(index, offset) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy + offset * __d2dstatic_uv##index.zw) - -#define D2DSampleInputAtPosition(index, pos) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy + __d2dstatic_uv##index.zw * (pos - __d2dstatic_scenePos.xy)) - diff --git a/src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli.cs b/src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli.cs new file mode 100644 index 00000000..73153fef --- /dev/null +++ b/src/ComputeSharp.D2D1/Shaders/Translation/Headers/d2d1effecthelpers.hlsli.cs @@ -0,0 +1,337 @@ +using System; + +namespace ComputeSharp.D2D1.Shaders.Translation; + +/// +/// A helper class with the contents of the d2d1effecthelpers.hlsli header. +/// +internal static class D2D1EffectHelpers +{ + /// + /// Gets the contents of the d2d1effecthelpers.hlsli header, as UTF8 text. + /// + public static ReadOnlySpan TextUtf8 + { + get + { + return """ + //--------------------------------------------------------------------------- + // Copyright (c) Microsoft Corporation. All rights reserved. + // + // This file is automatically generated. Please do not edit it directly. + // + //--------------------------------------------------------------------------- + + // File contents: + // - Helpers methods for authoring D2D Effect shader code. + // These are located at the end of the file (D2DGetInput, etc.). + // - The top portion contains definitions and initialization required by the helpers. + // These elements are prefaced with "__D2D" and can be safely ignored. + // + // To use these helpers, the following values must be defined before inclusion: + // D2D_INPUT_COUNT - The number of texture inputs to the effect. + // D2D_INPUT[N]_SIMPLE or D2D_INPUT[N]_COMPLEX - How the effect will sample each input. (If unspecificed, defaults to _COMPLEX.) + // D2D_ENTRY - The name of the entry point being compiled. This will usually be defined on the command line at compilation time. + // + // The following values can be optionally defined: + // D2D_FUNCTION - Compile the entry point as an export function. This will usually be defined on the command line at compilation time. + // D2D_FULL_SHADER - Compile the entry point as a full shader. This will usually be defined on the command line at compilation time. + // D2D_FULL_SHADER_ONLY - Only compile the in-scope entry points to full shaders, never to export functions. + // + + #define __D2D_DEFINE_PS_GLOBALS(inputIndex) \ + Texture2D InputTexture##inputIndex : register(t##inputIndex); \ + SamplerState InputSampler##inputIndex : register(s##inputIndex); \ + + // Define a texture and sampler pair for each D2D effect input. + #if (D2D_INPUT_COUNT >= 1) + __D2D_DEFINE_PS_GLOBALS(0) + #endif + #if (D2D_INPUT_COUNT >= 2) + __D2D_DEFINE_PS_GLOBALS(1) + #endif + #if (D2D_INPUT_COUNT >= 3) + __D2D_DEFINE_PS_GLOBALS(2) + #endif + #if (D2D_INPUT_COUNT >= 4) + __D2D_DEFINE_PS_GLOBALS(3) + #endif + #if (D2D_INPUT_COUNT >= 5) + __D2D_DEFINE_PS_GLOBALS(4) + #endif + #if (D2D_INPUT_COUNT >= 6) + __D2D_DEFINE_PS_GLOBALS(5) + #endif + #if (D2D_INPUT_COUNT >= 7) + __D2D_DEFINE_PS_GLOBALS(6) + #endif + #if (D2D_INPUT_COUNT >= 8) + __D2D_DEFINE_PS_GLOBALS(7) + #endif + + #define __D2D_MAXIMUM_INPUT_COUNT 8 + + // Validate that all required shader information has been defined. + #ifndef D2D_INPUT_COUNT + #error D2D_INPUT_COUNT is undefined. + #endif + + #if (D2D_INPUT_COUNT > __D2D_MAXIMUM_INPUT_COUNT) + #error D2D_INPUT_COUNT exceeds the maximum input count. + #endif + + // Define global statics to hold the values needed by intrinsic methods. + // These values are initialized by the entry point wrapper before calling into the + // effect's shader implementation. + #if !defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION) + static float4 __d2dstatic_scenePos = float4(0, 0, 0, 0); + #endif + + #define __D2D_DEFINE_INPUT_STATICS(inputIndex) \ + static float4 __d2dstatic_input##inputIndex = float4(0, 0, 0, 0); \ + static float4 __d2dstatic_uv##inputIndex = float4(0, 0, 0, 0); \ + + #if (D2D_INPUT_COUNT >= 1) + __D2D_DEFINE_INPUT_STATICS(0) + #endif + #if (D2D_INPUT_COUNT >= 2) + __D2D_DEFINE_INPUT_STATICS(1) + #endif + #if (D2D_INPUT_COUNT >= 3) + __D2D_DEFINE_INPUT_STATICS(2) + #endif + #if (D2D_INPUT_COUNT >= 4) + __D2D_DEFINE_INPUT_STATICS(3) + #endif + #if (D2D_INPUT_COUNT >= 5) + __D2D_DEFINE_INPUT_STATICS(4) + #endif + #if (D2D_INPUT_COUNT >= 6) + __D2D_DEFINE_INPUT_STATICS(5) + #endif + #if (D2D_INPUT_COUNT >= 7) + __D2D_DEFINE_INPUT_STATICS(6) + #endif + #if (D2D_INPUT_COUNT >= 8) + __D2D_DEFINE_INPUT_STATICS(7) + #endif + + // Define the scene position parameter according to whether the shader requires it, + // and whether it is the only parameter. + // The scene position input always needs to be defined for full shaders. + #if (!defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION)) + #if (D2D_INPUT_COUNT == 0) + #define __D2D_SCENE_POS float4 __d2dinput_scenePos : SCENE_POSITION + #define __D2D_INIT_STATIC_SCENE_POS __d2dstatic_scenePos = __d2dinput_scenePos + #else + #define __D2D_SCENE_POS float4 __d2dinput_scenePos : SCENE_POSITION, + #define __D2D_INIT_STATIC_SCENE_POS __d2dstatic_scenePos = __d2dinput_scenePos; + #endif + #else + #define __D2D_SCENE_POS + #define __D2D_INIT_STATIC_SCENE_POS + #endif + + // When compiling a function version, simple and complex inputs have different definitions. + // When compiling a full shader, they have the same definition. + // Access to input parameters also differs between functions and full shaders. + #if defined(D2D_FUNCTION) + #define __D2D_SIMPLE_INPUT(index) float4 __d2dinput_color##index : INPUT##index + #define __D2D_INIT_SIMPLE_STATIC(index) __d2dstatic_input##index = __d2dinput_color##index + #else + #define __D2D_SIMPLE_INPUT(index) float4 __d2dinput_uv##index : TEXCOORD##index + #define __D2D_INIT_SIMPLE_STATIC(index) __d2dstatic_uv##index = __d2dinput_uv##index + #endif + + #define __D2D_COMPLEX_INPUT(index) float4 __d2dinput_uv##index : TEXCOORD##index + #define __D2D_INIT_COMPLEX_STATIC(index) __d2dstatic_uv##index = __d2dinput_uv##index + + #define __D2D_SAMPLE_INPUT(index) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy) + + // Define each input as either simple or complex. + #if defined(D2D_INPUT0_SIMPLE) + #define __D2D_INPUT0 __D2D_SIMPLE_INPUT(0) + #define __D2D_INIT_STATIC0 __D2D_INIT_SIMPLE_STATIC(0) + #define __D2D_GET_INPUT0 __d2dstatic_input0 + #else + #define __D2D_INPUT0 __D2D_COMPLEX_INPUT(0) + #define __D2D_INIT_STATIC0 __D2D_INIT_COMPLEX_STATIC(0) + #define __D2D_GET_INPUT0 __D2D_SAMPLE_INPUT(0) + #endif + #if defined(D2D_INPUT1_SIMPLE) + #define __D2D_INPUT1 __D2D_SIMPLE_INPUT(1) + #define __D2D_INIT_STATIC1 __D2D_INIT_SIMPLE_STATIC(1) + #define __D2D_GET_INPUT1 __d2dstatic_input1 + #else + #define __D2D_INPUT1 __D2D_COMPLEX_INPUT(1) + #define __D2D_INIT_STATIC1 __D2D_INIT_COMPLEX_STATIC(1) + #define __D2D_GET_INPUT1 __D2D_SAMPLE_INPUT(1) + #endif + #if defined(D2D_INPUT2_SIMPLE) + #define __D2D_INPUT2 __D2D_SIMPLE_INPUT(2) + #define __D2D_INIT_STATIC2 __D2D_INIT_SIMPLE_STATIC(2) + #define __D2D_GET_INPUT2 __d2dstatic_input2 + #else + #define __D2D_INPUT2 __D2D_COMPLEX_INPUT(2) + #define __D2D_INIT_STATIC2 __D2D_INIT_COMPLEX_STATIC(2) + #define __D2D_GET_INPUT2 __D2D_SAMPLE_INPUT(2) + #endif + #if defined(D2D_INPUT3_SIMPLE) + #define __D2D_INPUT3 __D2D_SIMPLE_INPUT(3) + #define __D2D_INIT_STATIC3 __D2D_INIT_SIMPLE_STATIC(3) + #define __D2D_GET_INPUT3 __d2dstatic_input3 + #else + #define __D2D_INPUT3 __D2D_COMPLEX_INPUT(3) + #define __D2D_INIT_STATIC3 __D2D_INIT_COMPLEX_STATIC(3) + #define __D2D_GET_INPUT3 __D2D_SAMPLE_INPUT(3) + #endif + #if defined(D2D_INPUT4_SIMPLE) + #define __D2D_INPUT4 __D2D_SIMPLE_INPUT(4) + #define __D2D_INIT_STATIC4 __D2D_INIT_SIMPLE_STATIC(4) + #define __D2D_GET_INPUT4 __d2dstatic_input4 + #else + #define __D2D_INPUT4 __D2D_COMPLEX_INPUT(4) + #define __D2D_INIT_STATIC4 __D2D_INIT_COMPLEX_STATIC(4) + #define __D2D_GET_INPUT4 __D2D_SAMPLE_INPUT(4) + #endif + #if defined(D2D_INPUT5_SIMPLE) + #define __D2D_INPUT5 __D2D_SIMPLE_INPUT(5) + #define __D2D_INIT_STATIC5 __D2D_INIT_SIMPLE_STATIC(5) + #define __D2D_GET_INPUT5 __d2dstatic_input5 + #else + #define __D2D_INPUT5 __D2D_COMPLEX_INPUT(5) + #define __D2D_INIT_STATIC5 __D2D_INIT_COMPLEX_STATIC(5) + #define __D2D_GET_INPUT5 __D2D_SAMPLE_INPUT(5) + #endif + #if defined(D2D_INPUT6_SIMPLE) + #define __D2D_INPUT6 __D2D_SIMPLE_INPUT(6) + #define __D2D_INIT_STATIC6 __D2D_INIT_SIMPLE_STATIC(6) + #define __D2D_GET_INPUT6 __d2dstatic_input6 + #else + #define __D2D_INPUT6 __D2D_COMPLEX_INPUT(6) + #define __D2D_INIT_STATIC6 __D2D_INIT_COMPLEX_STATIC(6) + #define __D2D_GET_INPUT6 __D2D_SAMPLE_INPUT(6) + #endif + #if defined(D2D_INPUT7_SIMPLE) + #define __D2D_INPUT7 __D2D_SIMPLE_INPUT(7) + #define __D2D_INIT_STATIC7 __D2D_INIT_SIMPLE_STATIC(7) + #define __D2D_GET_INPUT7 __d2dstatic_input7 + #else + #define __D2D_INPUT7 __D2D_COMPLEX_INPUT(7) + #define __D2D_INIT_STATIC7 __D2D_INIT_COMPLEX_STATIC(7) + #define __D2D_GET_INPUT7 __D2D_SAMPLE_INPUT(7) + #endif + #if defined(D2D_INPUT8_SIMPLE) + #define __D2D_INPUT8 __D2D_SIMPLE_INPUT(8) + #define __D2D_INIT_STATIC8 __D2D_INIT_SIMPLE_STATIC(8) + #define __D2D_GET_INPUT8 __d2dstatic_input8 + #else + #define __D2D_INPUT8 __D2D_COMPLEX_INPUT(8) + #define __D2D_INIT_STATIC8 __D2D_INIT_COMPLEX_STATIC(8) + #define __D2D_GET_INPUT8 __D2D_SAMPLE_INPUT(8) + #endif + + // Define the export function inputs based on the defined input count and types. + #if (D2D_INPUT_COUNT == 0) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS + #elif (D2D_INPUT_COUNT == 1) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0 + #elif (D2D_INPUT_COUNT == 2) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1 + #elif (D2D_INPUT_COUNT == 3) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2 + #elif (D2D_INPUT_COUNT == 4) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3 + #elif (D2D_INPUT_COUNT == 5) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4 + #elif (D2D_INPUT_COUNT == 6) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5 + #elif (D2D_INPUT_COUNT == 7) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5, __D2D_INPUT6 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5; __D2D_INIT_STATIC6 + #elif (D2D_INPUT_COUNT == 8) + #define __D2D_FUNCTION_INPUTS __D2D_SCENE_POS __D2D_INPUT0, __D2D_INPUT1, __D2D_INPUT2, __D2D_INPUT3, __D2D_INPUT4, __D2D_INPUT5, __D2D_INPUT6, __D2D_INPUT7 + #define __D2D_INIT_STATICS __D2D_INIT_STATIC_SCENE_POS __D2D_INIT_STATIC0; __D2D_INIT_STATIC1; __D2D_INIT_STATIC2; __D2D_INIT_STATIC3; __D2D_INIT_STATIC4; __D2D_INIT_STATIC5; __D2D_INIT_STATIC6; __D2D_INIT_STATIC7 + #endif + + #if !defined(CONCAT) + #define CONCAT(str1, str2) str1##str2 + #endif + + // Rename the entry point target function so that the actual entry point can use the name. + // This expansion is the same for both full shaders and functions. + #define D2D_PS_ENTRY(name) float4 CONCAT(name, _Impl)() + + // If neither D2D_FUNCTION or D2D_FULL_SHADER is defined, behave as if D2D_FULL_SHADER is defined. + #if defined(D2D_FUNCTION) && !defined(D2D_FULL_SHADER_ONLY) + + // Replaces simple samples with either static variable or an actual sample, + // depending on whether the input is declared as simple or complex. + #define D2DGetInput(index) __D2D_GET_INPUT##index + + #if !defined(D2D_CUSTOM_ENTRY) + // Declare function prototype for the target function so that it can be referenced before definition. + // D2D_ENTRY is a macro whose actual name resolves to the effect's target "entry point" function. + float4 CONCAT(D2D_ENTRY, _Impl)(); + + // This is the actual entry point definition, which forwards the call to the target function. + export float4 D2D_func_entry(__D2D_FUNCTION_INPUTS) + { + __D2D_INIT_STATICS; + return CONCAT(D2D_ENTRY, _Impl)(); + } + + #endif + + #else // !defined(D2D_FUNCTION) + + // Replaces simple samples with actual samples. + #define D2DGetInput(index) __D2D_SAMPLE_INPUT(index) + + #if !defined(D2D_CUSTOM_ENTRY) + // Declare function prototype for the target function so that it can be referenced before definition. + // D2D_ENTRY is a macro whose actual name resolves to the effect's target "entry point" function. + float4 CONCAT(D2D_ENTRY, _Impl)(); + + // This is the actual entry point definition, which forwards the call to the target function. + float4 D2D_ENTRY (float4 pos : SV_POSITION, __D2D_FUNCTION_INPUTS) : SV_TARGET + { + __D2D_INIT_STATICS; + return CONCAT(D2D_ENTRY, _Impl)(); + } + + #endif + + #endif // D2D_FUNCTION + + //=============================================================== + // Along with D2DGetInput defined above, the following macros and + // methods define D2D intrinsics for use in effect shader code. + //=============================================================== + + #if !defined(D2D_FUNCTION) || defined(D2D_REQUIRES_SCENE_POSITION) + inline float4 D2DGetScenePosition() + { + return __d2dstatic_scenePos; + } + #endif + + #define D2DGetInputCoordinate(index) __d2dstatic_uv##index + + #define D2DSampleInput(index, position) InputTexture##index.Sample(InputSampler##index, position) + + #define D2DSampleInputAtOffset(index, offset) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy + offset * __d2dstatic_uv##index.zw) + + #define D2DSampleInputAtPosition(index, pos) InputTexture##index.Sample(InputSampler##index, __d2dstatic_uv##index.xy + __d2dstatic_uv##index.zw * (pos - __d2dstatic_scenePos.xy)) + + """u8; + } + } +} diff --git a/src/ComputeSharp.Pix/ComputeContextExtensions.cs b/src/ComputeSharp.Pix/ComputeContextExtensions.cs index 16de0c2a..73a4a69b 100644 --- a/src/ComputeSharp.Pix/ComputeContextExtensions.cs +++ b/src/ComputeSharp.Pix/ComputeContextExtensions.cs @@ -20,7 +20,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void BeginEvent(this in ComputeContext context, Color color, string message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); int argb = color.ToArgb(); uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); @@ -37,7 +37,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void BeginEvent(this in ComputeContext context, byte index, string message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); uint pixColor = Pix.PIX_COLOR_INDEX(index); @@ -52,7 +52,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void BeginEvent(this in ComputeContext context, string message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); commandList.D3D12GraphicsCommandList->BeginEvent(0, message); } @@ -78,7 +78,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void BeginEventUnsafe(this in ComputeContext context, Color color, ReadOnlySpan message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); int argb = color.ToArgb(); uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); @@ -107,7 +107,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void BeginEventUnsafe(this in ComputeContext context, byte index, ReadOnlySpan message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); uint pixColor = Pix.PIX_COLOR_INDEX(index); @@ -134,7 +134,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void BeginEventUnsafe(this in ComputeContext context, ReadOnlySpan message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); commandList.D3D12GraphicsCommandList->BeginEventUnsafe(0, message); } @@ -146,7 +146,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void EndEvent(this in ComputeContext context) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); Pix.PIXEndEventOnCommandList(commandList.D3D12GraphicsCommandList); } @@ -160,7 +160,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void Log(this in ComputeContext context, Color color, string message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); int argb = color.ToArgb(); uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); @@ -177,7 +177,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void Log(this in ComputeContext context, byte index, string message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); uint pixColor = Pix.PIX_COLOR_INDEX(index); @@ -192,7 +192,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void Log(this in ComputeContext context, string message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); commandList.D3D12GraphicsCommandList->SetPixMarker(0, message); } @@ -218,7 +218,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void LogUnsafe(this in ComputeContext context, Color color, ReadOnlySpan message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); int argb = color.ToArgb(); uint pixColor = Pix.PIX_COLOR((byte)((argb & 0x00FF0000) >> 16), (byte)((argb & 0x0000FF00) >> 8), (byte)(argb & 0x000000FF)); @@ -247,7 +247,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void LogUnsafe(this in ComputeContext context, byte index, ReadOnlySpan message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); uint pixColor = Pix.PIX_COLOR_INDEX(index); @@ -274,7 +274,7 @@ public static class ComputeContextExtensions [Conditional("USE_PIX")] public static unsafe void LogUnsafe(this in ComputeContext context, ReadOnlySpan message) { - ref CommandList commandList = ref ComputeContext.GetCommandList(in context, pipelineState: null); + ref CommandList commandList = ref context.GetCommandList(pipelineState: null); commandList.D3D12GraphicsCommandList->SetPixMarkerUnsafe(0, message); } diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj index e23d0319..404c9496 100644 --- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj +++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj @@ -17,6 +17,7 @@ + diff --git a/src/ComputeSharp/Graphics/Commands/CommandList.cs b/src/ComputeSharp/Graphics/Commands/CommandList.cs index eb7e9d53..15381bbe 100644 --- a/src/ComputeSharp/Graphics/Commands/CommandList.cs +++ b/src/ComputeSharp/Graphics/Commands/CommandList.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Threading.Tasks; using ComputeSharp.Core.Extensions; @@ -125,6 +126,7 @@ internal unsafe struct CommandList : IDisposable /// /// A double pointer to the current object to execute. [MethodImpl(MethodImplOptions.AggressiveInlining)] + [UnscopedRef] public readonly ref ID3D12CommandList* GetD3D12CommandListPinnableAddressOf() { // This method should return a ref ID3D12CommandList*, so it can't just call this.d3D12GraphicsCommandList.GetPinnableReference(). diff --git a/src/ComputeSharp/Shaders/ComputeContext.cs b/src/ComputeSharp/Shaders/ComputeContext.cs index ef62fe51..951b348d 100644 --- a/src/ComputeSharp/Shaders/ComputeContext.cs +++ b/src/ComputeSharp/Shaders/ComputeContext.cs @@ -75,7 +75,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable { ThrowInvalidOperationExceptionIfDeviceIsNull(); - ref CommandList commandList = ref GetCommandList(in this); + ref CommandList commandList = ref GetCommandList(); commandList.D3D12GraphicsCommandList->UnorderedAccessViewBarrier(d3D12Resource); } @@ -95,7 +95,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable { ThrowInvalidOperationExceptionIfDeviceIsNull(); - ref CommandList commandList = ref GetCommandList(in this, pipelineState: null); + ref CommandList commandList = ref GetCommandList(pipelineState: null); commandList.D3D12GraphicsCommandList->ClearUnorderedAccessView(d3D12Resource, d3D12GpuDescriptorHandle, d3D12CpuDescriptorHandle, isNormalized); } @@ -115,7 +115,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable { ThrowInvalidOperationExceptionIfDeviceIsNull(); - ref CommandList commandList = ref GetCommandList(in this, pipelineState: null); + ref CommandList commandList = ref GetCommandList(pipelineState: null); commandList.D3D12GraphicsCommandList->FillUnorderedAccessView(d3D12Resource, d3D12GpuDescriptorHandle, d3D12CpuDescriptorHandle, value); } @@ -200,7 +200,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable PipelineData pipelineData = PipelineDataLoader.GetPipelineData(this.device, threadsX, threadsY, threadsZ, ref shader); - ref CommandList commandList = ref GetCommandList(in this, pipelineData.D3D12PipelineState); + ref CommandList commandList = ref GetCommandList(pipelineData.D3D12PipelineState); commandList.D3D12GraphicsCommandList->SetComputeRootSignature(pipelineData.D3D12RootSignature); @@ -237,7 +237,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable PipelineData pipelineData = PipelineDataLoader.GetPipelineData(this.device, threadsX, threadsY, threadsZ, ref shader); - ref CommandList commandList = ref GetCommandList(in this, pipelineData.D3D12PipelineState); + ref CommandList commandList = ref GetCommandList(pipelineData.D3D12PipelineState); commandList.D3D12GraphicsCommandList->SetComputeRootSignature(pipelineData.D3D12RootSignature); @@ -266,7 +266,7 @@ public struct ComputeContext : IDisposable, IAsyncDisposable { ThrowInvalidOperationExceptionIfDeviceIsNull(); - ref CommandList commandList = ref GetCommandList(in this, pipelineState: null); + ref CommandList commandList = ref GetCommandList(pipelineState: null); commandList.D3D12GraphicsCommandList->TransitionBarrier(d3D12Resource, d3D12ResourceStatesBefore, d3D12ResourceStatesAfter); } @@ -332,16 +332,16 @@ public struct ComputeContext : IDisposable, IAsyncDisposable /// /// Gets the current instance. /// - /// The current instance. /// A reference to the instance to use. /// Thrown if the has not been initialized yet. [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static unsafe ref CommandList GetCommandList(in ComputeContext @this) + [UnscopedRef] + private readonly unsafe ref CommandList GetCommandList() { // This method has to take the context by readonly reference to allow callers to be marked as readonly. // This is needed to skip the hidden copies done by Roslyn, which would break the dispatching, as the // original context would not see the changes done by the following queued dispatches. - ref CommandList commandList = ref Unsafe.AsRef(in @this).commandList; + ref CommandList commandList = ref Unsafe.AsRef(in this.commandList); if (!commandList.IsAllocated) { @@ -354,29 +354,29 @@ public struct ComputeContext : IDisposable, IAsyncDisposable /// /// Gets the current instance, and initializes it as needed. /// - /// The current instance. /// The input to load. /// A reference to the instance to use. [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static unsafe ref CommandList GetCommandList(in ComputeContext @this, ID3D12PipelineState* pipelineState) + [UnscopedRef] + internal readonly unsafe ref CommandList GetCommandList(ID3D12PipelineState* pipelineState) { - ref ComputeContext context = ref Unsafe.AsRef(in @this); + ref CommandList commandList = ref Unsafe.AsRef(in this.commandList); - if (context.commandList.IsAllocated) + if (commandList.IsAllocated) { // Skip setting the pipeline state if the new state is null. This is the case when the upcoming // operation is not a shader dispatch, but just a resource clear. In this case there is no state. if (pipelineState is not null) { - context.commandList.D3D12GraphicsCommandList->SetPipelineState(pipelineState); + commandList.D3D12GraphicsCommandList->SetPipelineState(pipelineState); } } else { - context.commandList = new CommandList(context.device!, pipelineState); + commandList = new CommandList(this.device!, pipelineState); } - return ref context.commandList; + return ref commandList; } /// diff --git a/src/ComputeSharp/Shaders/Dispatching/__Internals/ArrayPoolStringBuilder.cs b/src/ComputeSharp/Shaders/Dispatching/__Internals/ArrayPoolStringBuilder.cs index 83812f8f..b6fbe97b 100644 --- a/src/ComputeSharp/Shaders/Dispatching/__Internals/ArrayPoolStringBuilder.cs +++ b/src/ComputeSharp/Shaders/Dispatching/__Internals/ArrayPoolStringBuilder.cs @@ -2,6 +2,7 @@ using System.Buffers; using System.ComponentModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace ComputeSharp.__Internals; @@ -39,7 +40,10 @@ public ref struct ArrayPoolStringBuilder return builder; } - /// + /// + /// Gets the data written to the underlying buffer so far, as a . + /// + [UnscopedRef] public ReadOnlySpan WrittenSpan { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/TerraFX.Interop.Windows/ComPtr`1.cs b/src/TerraFX.Interop.Windows/ComPtr`1.cs index dd8c38ab..9a218855 100644 --- a/src/TerraFX.Interop.Windows/ComPtr`1.cs +++ b/src/TerraFX.Interop.Windows/ComPtr`1.cs @@ -9,6 +9,7 @@ using System.Diagnostics; using System.Runtime.CompilerServices; using static TerraFX.Interop.Windows.Windows; using static TerraFX.Interop.Windows.S; +using System.Diagnostics.CodeAnalysis; namespace TerraFX.Interop.Windows { @@ -248,12 +249,10 @@ namespace TerraFX.Interop.Windows /// The raw pointer to the current instance. [MethodImpl(MethodImplOptions.AggressiveInlining)] [EditorBrowsable(EditorBrowsableState.Never)] + [UnscopedRef] public readonly ref T* GetPinnableReference() { - fixed (T** ptr = &ptr_) - { - return ref *ptr; - } + return ref Unsafe.AsRef(in this).ptr_; } /// Releases the current COM object in use and gets the address of the instance as a raw double pointer. This method is only valid when the current instance is on the stack or pinned. diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs index 88bdb9f7..6d279e72 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_CLEAR_VALUE.cs @@ -26,15 +26,6 @@ namespace TerraFX.Interop.DirectX } } - public ref D3D12_DEPTH_STENCIL_VALUE DepthStencil - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DepthStencil, 1)); - } - } - [StructLayout(LayoutKind.Explicit)] internal unsafe partial struct _Anonymous_e__Union { diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs index 390cf36b..5daf7b8f 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_RESOURCE_BARRIER.cs @@ -3,9 +3,7 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.DirectX { @@ -18,33 +16,6 @@ namespace TerraFX.Interop.DirectX [NativeTypeName("D3D12_RESOURCE_BARRIER::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:2883:5)")] public _Anonymous_e__Union Anonymous; - public ref D3D12_RESOURCE_TRANSITION_BARRIER Transition - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Transition, 1)); - } - } - - public ref D3D12_RESOURCE_ALIASING_BARRIER Aliasing - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Aliasing, 1)); - } - } - - public ref D3D12_RESOURCE_UAV_BARRIER UAV - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.UAV, 1)); - } - } - [StructLayout(LayoutKind.Explicit)] internal partial struct _Anonymous_e__Union { diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs index 06fb5a7d..67b3a313 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER.cs @@ -3,9 +3,7 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.DirectX { @@ -18,33 +16,6 @@ namespace TerraFX.Interop.DirectX public D3D12_SHADER_VISIBILITY ShaderVisibility; - public ref D3D12_ROOT_DESCRIPTOR_TABLE DescriptorTable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DescriptorTable, 1)); - } - } - - public ref D3D12_ROOT_CONSTANTS Constants - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Constants, 1)); - } - } - - public ref D3D12_ROOT_DESCRIPTOR Descriptor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Descriptor, 1)); - } - } - [StructLayout(LayoutKind.Explicit)] internal partial struct _Anonymous_e__Union { diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs index 60fae9d7..5bfcbdd3 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_ROOT_PARAMETER1.cs @@ -3,9 +3,7 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.DirectX { @@ -18,33 +16,6 @@ namespace TerraFX.Interop.DirectX public D3D12_SHADER_VISIBILITY ShaderVisibility; - public ref D3D12_ROOT_DESCRIPTOR_TABLE1 DescriptorTable - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.DescriptorTable, 1)); - } - } - - public ref D3D12_ROOT_CONSTANTS Constants - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Constants, 1)); - } - } - - public ref D3D12_ROOT_DESCRIPTOR1 Descriptor - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Descriptor, 1)); - } - } - [StructLayout(LayoutKind.Explicit)] internal partial struct _Anonymous_e__Union { diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs index 91e25fa1..7178e92b 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_SHADER_RESOURCE_VIEW_DESC.cs @@ -3,9 +3,9 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.DirectX { @@ -20,102 +20,23 @@ namespace TerraFX.Interop.DirectX [NativeTypeName("D3D12_SHADER_RESOURCE_VIEW_DESC::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:3094:5)")] public _Anonymous_e__Union Anonymous; + [UnscopedRef] public ref D3D12_BUFFER_SRV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); - } - } - - public ref D3D12_TEX1D_SRV Texture1D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); - } - } - - public ref D3D12_TEX1D_ARRAY_SRV Texture1DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); + return ref Anonymous.Buffer; } } + [UnscopedRef] public ref D3D12_TEX2D_SRV Texture2D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); - } - } - - public ref D3D12_TEX2D_ARRAY_SRV Texture2DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); - } - } - - public ref D3D12_TEX2DMS_SRV Texture2DMS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMS, 1)); - } - } - - public ref D3D12_TEX2DMS_ARRAY_SRV Texture2DMSArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DMSArray, 1)); - } - } - - public ref D3D12_TEX3D_SRV Texture3D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); - } - } - - public ref D3D12_TEXCUBE_SRV TextureCube - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCube, 1)); - } - } - - public ref D3D12_TEXCUBE_ARRAY_SRV TextureCubeArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.TextureCubeArray, 1)); - } - } - - public ref D3D12_RAYTRACING_ACCELERATION_STRUCTURE_SRV RaytracingAccelerationStructure - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.RaytracingAccelerationStructure, 1)); + return ref Anonymous.Texture2D; } } diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs index 20a1be47..460d4699 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_TEXTURE_COPY_LOCATION.cs @@ -3,9 +3,7 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.DirectX { @@ -18,24 +16,6 @@ namespace TerraFX.Interop.DirectX [NativeTypeName("D3D12_TEXTURE_COPY_LOCATION::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:2917:5)")] public _Anonymous_e__Union Anonymous; - public ref D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.PlacedFootprint, 1)); - } - } - - public ref uint SubresourceIndex - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.SubresourceIndex, 1)); - } - } - [StructLayout(LayoutKind.Explicit)] internal partial struct _Anonymous_e__Union { diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs index dc46052e..3dc4a7fd 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_UNORDERED_ACCESS_VIEW_DESC.cs @@ -3,9 +3,9 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.DirectX { @@ -18,57 +18,23 @@ namespace TerraFX.Interop.DirectX [NativeTypeName("D3D12_UNORDERED_ACCESS_VIEW_DESC::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:3309:5)")] public _Anonymous_e__Union Anonymous; + [UnscopedRef] public ref D3D12_BUFFER_UAV Buffer { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Buffer, 1)); - } - } - - public ref D3D12_TEX1D_UAV Texture1D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1D, 1)); - } - } - - public ref D3D12_TEX1D_ARRAY_UAV Texture1DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture1DArray, 1)); - } - } - - public ref D3D12_TEX2D_UAV Texture2D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2D, 1)); - } - } - - public ref D3D12_TEX2D_ARRAY_UAV Texture2DArray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture2DArray, 1)); + return ref Anonymous.Buffer; } } + [UnscopedRef] public ref D3D12_TEX3D_UAV Texture3D { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Texture3D, 1)); + return ref Anonymous.Texture3D; } } diff --git a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs index 40fcba2b..f15832d8 100644 --- a/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs +++ b/src/TerraFX.Interop.Windows/DirectX/um/d3d12/D3D12_VERSIONED_ROOT_SIGNATURE_DESC.cs @@ -3,9 +3,7 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.DirectX { @@ -16,24 +14,6 @@ namespace TerraFX.Interop.DirectX [NativeTypeName("D3D12_VERSIONED_ROOT_SIGNATURE_DESC::(anonymous union at C:/Program Files (x86)/Windows Kits/10/Include/10.0.20348.0/um/d3d12.h:3711:5)")] public _Anonymous_e__Union Anonymous; - public ref D3D12_ROOT_SIGNATURE_DESC Desc_1_0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Desc_1_0, 1)); - } - } - - public ref D3D12_ROOT_SIGNATURE_DESC1 Desc_1_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.Desc_1_1, 1)); - } - } - [StructLayout(LayoutKind.Explicit)] internal partial struct _Anonymous_e__Union { diff --git a/src/TerraFX.Interop.Windows/Windows/um/winnt/LARGE_INTEGER.cs b/src/TerraFX.Interop.Windows/Windows/um/winnt/LARGE_INTEGER.cs index faceb30d..190fad7f 100644 --- a/src/TerraFX.Interop.Windows/Windows/um/winnt/LARGE_INTEGER.cs +++ b/src/TerraFX.Interop.Windows/Windows/um/winnt/LARGE_INTEGER.cs @@ -3,9 +3,7 @@ // Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.Windows { @@ -24,24 +22,6 @@ namespace TerraFX.Interop.Windows [NativeTypeName("LONGLONG")] public long QuadPart; - public ref uint LowPart - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.LowPart, 1)); - } - } - - public ref int HighPart - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HighPart, 1)); - } - } - internal partial struct _Anonymous_e__Struct { [NativeTypeName("DWORD")] diff --git a/src/TerraFX.Interop.Windows/Windows/um/winnt/ULARGE_INTEGER.cs b/src/TerraFX.Interop.Windows/Windows/um/winnt/ULARGE_INTEGER.cs index 62cdb895..9aa28922 100644 --- a/src/TerraFX.Interop.Windows/Windows/um/winnt/ULARGE_INTEGER.cs +++ b/src/TerraFX.Interop.Windows/Windows/um/winnt/ULARGE_INTEGER.cs @@ -3,9 +3,7 @@ // Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using MemoryMarshal = ComputeSharp.NetStandard.System.Runtime.InteropServices.MemoryMarshal; namespace TerraFX.Interop.Windows { @@ -24,24 +22,6 @@ namespace TerraFX.Interop.Windows [NativeTypeName("ULONGLONG")] public ulong QuadPart; - public ref uint LowPart - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.LowPart, 1)); - } - } - - public ref uint HighPart - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.HighPart, 1)); - } - } - internal partial struct _Anonymous_e__Struct { [NativeTypeName("DWORD")] diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs index 6e63f1a8..bb896c9b 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1EffectRegistrationDataTests.cs @@ -42,67 +42,70 @@ public partial class D2D1EffectRegistrationDataTests Assert.IsTrue(propertyBinding.GetFunction is not null); } - Assert.AreEqual(@" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -", data.PropertyXml); + Assert.AreEqual(""" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + """, data.PropertyXml); } [D2DInputCount(2)] diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ShaderCompilerTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ShaderCompilerTests.cs index aaa84f9e..0feb56b8 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ShaderCompilerTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ShaderCompilerTests.cs @@ -12,18 +12,19 @@ public partial class D2D1ShaderCompilerTests [TestMethod] public unsafe void CompileInvertEffectWithDefaultOptions() { - const string source = @" + const string source = """ #define D2D_INPUT_COUNT 1 #define D2D_INPUT0_SIMPLE - #include ""d2d1effecthelpers.hlsli"" + #include "d2d1effecthelpers.hlsli" D2D_PS_ENTRY(PSMain) { float4 color = D2DGetInput(0); float3 rgb = saturate(1.0 - color.rgb); return float4(rgb, 1); - }"; + } + """; ReadOnlyMemory bytecode = D2D1ShaderCompiler.Compile( source, @@ -35,20 +36,47 @@ public partial class D2D1ShaderCompilerTests } [TestMethod] - public unsafe void CompileInvertEffectWithDefaultOptionsAndLinking() + public unsafe void CompileInvertEffectWithDefaultOptions_Utf8() { - const string source = @" + ReadOnlySpan sourceUtf8 = """ #define D2D_INPUT_COUNT 1 #define D2D_INPUT0_SIMPLE - #include ""d2d1effecthelpers.hlsli"" + #include "d2d1effecthelpers.hlsli" D2D_PS_ENTRY(PSMain) { float4 color = D2DGetInput(0); float3 rgb = saturate(1.0 - color.rgb); return float4(rgb, 1); - }"; + } + """u8; + + ReadOnlyMemory bytecode = D2D1ShaderCompiler.Compile( + sourceUtf8, + "PSMain"u8, + D2D1ShaderProfile.PixelShader40Level93, + D2D1CompileOptions.Default); + + Assert.IsTrue(bytecode.Length > 0); + } + + [TestMethod] + public unsafe void CompileInvertEffectWithDefaultOptionsAndLinking() + { + const string source = """ + #define D2D_INPUT_COUNT 1 + #define D2D_INPUT0_SIMPLE + + #include "d2d1effecthelpers.hlsli" + + D2D_PS_ENTRY(PSMain) + { + float4 color = D2DGetInput(0); + float3 rgb = saturate(1.0 - color.rgb); + return float4(rgb, 1); + } + """; ReadOnlyMemory bytecode = D2D1ShaderCompiler.Compile( source, @@ -63,18 +91,19 @@ public partial class D2D1ShaderCompilerTests [ExpectedException(typeof(FxcCompilationException))] public unsafe void CompileInvertEffectWithInvalidEntryPoint() { - const string source = @" + const string source = """ #define D2D_INPUT_COUNT 1 #define D2D_INPUT0_SIMPLE - #include ""d2d1effecthelpers.hlsli"" + #include "d2d1effecthelpers.hlsli" D2D_PS_ENTRY(PSMain) { float4 color = D2DGetInput(0); float3 rgb = saturate(1.0 - color.rgb); return float4(rgb, 1); - }"; + } + """; ReadOnlyMemory bytecode = D2D1ShaderCompiler.Compile( source, @@ -89,18 +118,19 @@ public partial class D2D1ShaderCompilerTests [ExpectedException(typeof(FxcCompilationException))] public unsafe void CompileInvertEffectWithErrors() { - const string source = @" + const string source = """ #define D2D_INPUT_COUNT 1 #define D2D_INPUT0_SIMPLE - #include ""d2d1effecthelpers.hlsli"" + #include "d2d1effecthelpers.hlsli" D2D_PS_ENTRY(PSMain) { float4 color = D2DGetInput(99); float3 rgb2 = saturate(1.0 - color.rgb); return float4(rgb, 1, 4.0); - }"; + } + """; ReadOnlyMemory bytecode = D2D1ShaderCompiler.Compile( source, @@ -114,12 +144,12 @@ public partial class D2D1ShaderCompilerTests [TestMethod] public unsafe void CompilePixelateEffectWithDefaultOptions() { - const string source = @" + const string source = """ #define D2D_INPUT_COUNT 1 #define D2D_INPUT0_COMPLEX #define D2D_REQUIRES_SCENE_POSITION - #include ""d2d1effecthelpers.hlsli"" + #include "d2d1effecthelpers.hlsli" struct ComputeSharp_D2D1_Tests_Effects_PixelateEffect_Shader_Constants { @@ -147,7 +177,8 @@ public partial class D2D1ShaderCompilerTests float4 sample3 = D2DSampleInputAtPosition(0, int2(x1, y1)); float4 color = (sample0 + sample1 + sample2 + sample3) / 4; return color; - }"; + } + """; ReadOnlyMemory bytecode = D2D1ShaderCompiler.Compile( source, diff --git a/tests/ComputeSharp.D2D1.Tests/D2DPixelShaderSourceTests.cs b/tests/ComputeSharp.D2D1.Tests/D2DPixelShaderSourceTests.cs index 3c891a8d..8b910614 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2DPixelShaderSourceTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2DPixelShaderSourceTests.cs @@ -7,11 +7,11 @@ namespace ComputeSharp.D2D1.Tests; [TestCategory("D2DPixelShaderSource")] public partial class D2DPixelShaderSourceTests { - [D2DPixelShaderSource(@" + [D2DPixelShaderSource(""" #define D2D_INPUT_COUNT 1 #define D2D_INPUT0_SIMPLE - #include ""d2d1effecthelpers.hlsli"" + #include "d2d1effecthelpers.hlsli" D2D_PS_ENTRY(Execute) { @@ -19,7 +19,7 @@ public partial class D2DPixelShaderSourceTests float3 rgb = saturate(1.0 - color.rgb); return float4(rgb, 1); } - ")] + """)] [D2DShaderProfile(D2D1ShaderProfile.PixelShader50)] [D2DCompileOptions(D2D1CompileOptions.OptimizationLevel0)] private static partial ReadOnlySpan InvertEffect(); diff --git a/tests/ComputeSharp.Dynamic.NuGet/ComputeSharp.Dynamic.NuGet.csproj b/tests/ComputeSharp.Dynamic.NuGet/ComputeSharp.Dynamic.NuGet.csproj index 37213757..2b28ff6a 100644 --- a/tests/ComputeSharp.Dynamic.NuGet/ComputeSharp.Dynamic.NuGet.csproj +++ b/tests/ComputeSharp.Dynamic.NuGet/ComputeSharp.Dynamic.NuGet.csproj @@ -4,6 +4,11 @@ Exe net472;netcoreapp3.1;net6.0 AnyCPU;x64;ARM64 + + https://api.nuget.org/v3/index.json; + https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json; + ..\..\artifacts; + diff --git a/tests/ComputeSharp.Dynamic.NuGet/nuget.config b/tests/ComputeSharp.Dynamic.NuGet/nuget.config deleted file mode 100644 index 995d3a62..00000000 --- a/tests/ComputeSharp.Dynamic.NuGet/nuget.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj b/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj index 7bdf5213..ee0ec5b4 100644 --- a/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj +++ b/tests/ComputeSharp.NuGet/ComputeSharp.NuGet.csproj @@ -4,6 +4,11 @@ Exe net472;netcoreapp3.1;net6.0 AnyCPU;x64;ARM64 + + https://api.nuget.org/v3/index.json; + https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json; + ..\..\artifacts; + diff --git a/tests/ComputeSharp.NuGet/nuget.config b/tests/ComputeSharp.NuGet/nuget.config deleted file mode 100644 index 995d3a62..00000000 --- a/tests/ComputeSharp.NuGet/nuget.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj b/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj index 5f156d64..68fa28b8 100644 --- a/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj +++ b/tests/ComputeSharp.Pix.NuGet/ComputeSharp.Pix.NuGet.csproj @@ -4,6 +4,11 @@ Exe net472;netcoreapp3.1;net6.0 AnyCPU;x64;ARM64 + + https://api.nuget.org/v3/index.json; + https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json; + ..\..\artifacts; + diff --git a/tests/ComputeSharp.Pix.NuGet/nuget.config b/tests/ComputeSharp.Pix.NuGet/nuget.config deleted file mode 100644 index 995d3a62..00000000 --- a/tests/ComputeSharp.Pix.NuGet/nuget.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj index 9bec5f56..f2e3cde4 100644 --- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj +++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj @@ -30,6 +30,7 @@ + diff --git a/tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs b/tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs index b7744888..b7dc4591 100644 --- a/tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs +++ b/tests/ComputeSharp.Tests.Internals/ShaderCompilerTests.cs @@ -11,24 +11,25 @@ namespace ComputeSharp.Tests.Internals; [TestCategory("ShaderCompiler")] public class ShaderCompilerTests { - private const string ShaderSource = @" - cbuffer _ : register(b0) - { - uint __x; - uint __y; - uint __z; - } - - RWStructuredBuffer buffer : register(u0); - - [NumThreads(32, 1, 1)] - void Execute(uint3 ids : SV_DispatchThreadId) - { - if (ids.x < __x && ids.y < __y && ids.z < __z) + private const string ShaderSource = """ + cbuffer _ : register(b0) { - buffer[ids.x] *= 2; + uint __x; + uint __y; + uint __z; } - }"; + + RWStructuredBuffer buffer : register(u0); + + [NumThreads(32, 1, 1)] + void Execute(uint3 ids : SV_DispatchThreadId) + { + if (ids.x < __x && ids.y < __y && ids.z < __z) + { + buffer[ids.x] *= 2; + } + } + """; [TestMethod] public void CompileTest_Ok() diff --git a/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs b/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs index f42439f5..d6968c03 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs +++ b/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs @@ -16,57 +16,59 @@ public class AutoConstructorGeneratorTests [TestMethod] public void GenerateConstructor() { - string source = @" - using System.Numerics; - using ComputeSharp; + const string source = """ + using System.Numerics; + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public partial class IFoo : IFluff - where T : notnull, new() + namespace ComputeSharp { - public partial class Foo + public class ReadWriteBuffer { } + } + + namespace MyFancyApp.Sample + { + public partial class IFoo : IFluff + where T : notnull, new() { - [AutoConstructor] - public readonly partial struct Test + public partial class Foo { - private readonly float a; - private readonly Vector2 b; - public readonly ReadWriteBuffer c; - public readonly ReadWriteBuffer d; + [AutoConstructor] + public readonly partial struct Test + { + private readonly float a; + private readonly Vector2 b; + public readonly ReadWriteBuffer c; + public readonly ReadWriteBuffer d; + } } } } - }"; + """; - string expected = $@" - // - #pragma warning disable - namespace MyFancyApp.Sample; - partial class IFoo - {{ - partial class Foo - {{ - partial struct Test - {{ - [global::System.CodeDom.Compiler.GeneratedCode(""ComputeSharp.Core.SourceGenerators.AutoConstructorGenerator"", ""{typeof(AutoConstructorGenerator).Assembly.GetName().Version}"")] - [global::System.Diagnostics.DebuggerNonUserCode] - [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] - public Test(float a, global::System.Numerics.Vector2 b, global::ComputeSharp.ReadWriteBuffer c, global::ComputeSharp.ReadWriteBuffer d) - {{ - this.a = a; - this.b = b; - this.c = c; - this.d = d; - }} - }} - }} - }}"; + string expected = $$""" + // + #pragma warning disable + namespace MyFancyApp.Sample; + partial class IFoo + { + partial class Foo + { + partial struct Test + { + [global::System.CodeDom.Compiler.GeneratedCode("ComputeSharp.Core.SourceGenerators.AutoConstructorGenerator", "{{typeof(AutoConstructorGenerator).Assembly.GetName().Version}}")] + [global::System.Diagnostics.DebuggerNonUserCode] + [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] + public Test(float a, global::System.Numerics.Vector2 b, global::ComputeSharp.ReadWriteBuffer c, global::ComputeSharp.ReadWriteBuffer d) + { + this.a = a; + this.b = b; + this.c = c; + this.d = d; + } + } + } + } + """; VerifyGeneratedMethodLines(source, 0, expected); } diff --git a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs index b9a46acc..182fe64e 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs +++ b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs @@ -16,24 +16,25 @@ public class DiagnosticsTests [TestMethod] public void InvalidShaderField() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; - public string text; - - public void Execute() { } + public class ReadWriteBuffer { } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + public string text; + + public void Execute() { } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0001", "CMPS0047"); } @@ -41,24 +42,25 @@ public class DiagnosticsTests [TestMethod] public void InvalidShaderFixedField() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public unsafe struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; - public fixed int text[16]; - - public void Execute() { } + public class ReadWriteBuffer { } } - }"; + + namespace MyFancyApp.Sample + { + public unsafe struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + public fixed int text[16]; + + public void Execute() { } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0001", "CMPS0047"); } @@ -66,27 +68,28 @@ public class DiagnosticsTests [TestMethod] public void InvalidGroupSharedFieldType() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - public class GroupSharedAttribute : Attribute { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; - - [GroupShared] - public static string text; - - public void Execute() { } + public class ReadWriteBuffer { } + public class GroupSharedAttribute : Attribute { } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + [GroupShared] + public static string text; + + public void Execute() { } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0002", "CMPS0047"); } @@ -94,27 +97,28 @@ public class DiagnosticsTests [TestMethod] public void InvalidGroupSharedFieldElementType() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - public class GroupSharedAttribute : Attribute { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; - - [GroupShared] - public static string[] text; - - public void Execute() { } + public class ReadWriteBuffer { } + public class GroupSharedAttribute : Attribute { } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + [GroupShared] + public static string[] text; + + public void Execute() { } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0003", "CMPS0047"); } @@ -122,25 +126,26 @@ public class DiagnosticsTests [TestMethod] public void InvalidGroupSharedFieldDeclaration() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - public class GroupSharedAttribute : Attribute { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - [GroupShared] - public ReadWriteBuffer buffer; - - public void Execute() { } + public class ReadWriteBuffer { } + public class GroupSharedAttribute : Attribute { } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + [GroupShared] + public ReadWriteBuffer buffer; + + public void Execute() { } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0004", "CMPS0047"); } @@ -148,16 +153,17 @@ public class DiagnosticsTests [TestMethod] public void MissingShaderResources() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace MyFancyApp.Sample { - public void Execute() { } + public struct MyShader : IComputeShader + { + public void Execute() { } + } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0005", "CMPS0047"); } @@ -170,29 +176,30 @@ public class DiagnosticsTests [DataRow(nameof(DispatchSize), "CMPS0039")] public void InvalidDispatchInfoUsage_LocalFunction(string typeName, string diagnosticsId) { - string source = $@" - using ComputeSharp; + string source = $$""" + using ComputeSharp; - namespace ComputeSharp - {{ - public class ReadWriteBuffer {{ }} - public static class {typeName} {{ public static int X => 0; }} - }} + namespace ComputeSharp + { + public class ReadWriteBuffer { } + public static class {{typeName}} { public static int X => 0; } + } - namespace MyFancyApp.Sample - {{ - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - {{ - static int Fail() => {typeName}.X; + public void Execute() + { + static int Fail() => {{typeName}}.X; - Fail(); - }} - }} - }}"; + Fail(); + } + } + } + """; VerifyGeneratedDiagnostics(source, diagnosticsId, "CMPS0047"); } @@ -205,26 +212,27 @@ public class DiagnosticsTests [DataRow(nameof(DispatchSize), "CMPS0039")] public void InvalidDispatchInfoUsage_StaticMethod(string typeName, string diagnosticsId) { - string source = $@" - using ComputeSharp; + string source = $$""" + using ComputeSharp; - namespace ComputeSharp - {{ - public class ReadWriteBuffer {{ }} - public static class {typeName} {{ public static int X => 0; }} - }} + namespace ComputeSharp + { + public class ReadWriteBuffer { } + public static class {{typeName}} { public static int X => 0; } + } - namespace MyFancyApp.Sample - {{ - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public static int Fail() => {typeName}.X; + public static int Fail() => {{typeName}}.X; - public void Execute() => Fail(); - }} - }}"; + public void Execute() => Fail(); + } + } + """; VerifyGeneratedDiagnostics(source, diagnosticsId, "CMPS0047"); } @@ -232,29 +240,30 @@ public class DiagnosticsTests [TestMethod] public void InvalidThreadIdsNormalizedUsage() { - string source = $@" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - {{ - public class ReadWriteBuffer {{ }} - public static class ThreadIds {{ public static class Normalized {{ public static int X => 0; }} }} - }} + namespace ComputeSharp + { + public class ReadWriteBuffer { } + public static class ThreadIds { public static class Normalized { public static int X => 0; } } + } - namespace MyFancyApp.Sample - {{ - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public static int Fail() => ThreadIds.Normalized.X; + public static int Fail() => ThreadIds.Normalized.X; - public void Execute() - {{ - buffer[0] = Fail(); - }} - }} - }}"; + public void Execute() + { + buffer[0] = Fail(); + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0006", "CMPS0047"); } @@ -262,26 +271,27 @@ public class DiagnosticsTests [TestMethod] public void InvalidObjectCreationExpression_Explicit() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - object o = new object(); + public ReadWriteBuffer buffer; + + public void Execute() + { + object o = new object(); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0010", "CMPS0031", "CMPS0047", "CMPS0050"); } @@ -289,26 +299,27 @@ public class DiagnosticsTests [TestMethod] public void InvalidObjectCreationExpression_Implicit() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - object o = new(); + public ReadWriteBuffer buffer; + + public void Execute() + { + object o = new(); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0010", "CMPS0031", "CMPS0047", "CMPS0050"); } @@ -316,26 +327,27 @@ public class DiagnosticsTests [TestMethod] public void AnonymousObjectCreationExpression() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - var o = new { Age = 12 }; + public ReadWriteBuffer buffer; + + public void Execute() + { + var o = new { Age = 12 }; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0011", "CMPS0031", "CMPS0047", "CMPS0050"); } @@ -343,28 +355,29 @@ public class DiagnosticsTests [TestMethod] public void AsyncModifierOnMethodOrFunction_LocalFunction() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - static async void Fail() { } + public ReadWriteBuffer buffer; - Fail(); + public void Execute() + { + static async void Fail() { } + + Fail(); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0012", "CMPS0047"); } @@ -372,25 +385,26 @@ public class DiagnosticsTests [TestMethod] public void AsyncModifierOnMethodOrFunction_StaticMethod() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; - - public static async void Fail() { } - - public void Execute() => Fail(); + public class ReadWriteBuffer { } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public static async void Fail() { } + + public void Execute() => Fail(); + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0012", "CMPS0047"); } @@ -398,26 +412,27 @@ public class DiagnosticsTests [TestMethod] public void AwaitExpression() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public async void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - await null; + public ReadWriteBuffer buffer; + + public async void Execute() + { + await null; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0012", "CMPS0013", "CMPS0047"); } @@ -427,26 +442,27 @@ public class DiagnosticsTests [DataRow("unchecked")] public void CheckedExpression(string text) { - string source = $@" - using ComputeSharp; + string source = $$""" + using ComputeSharp; - namespace ComputeSharp - {{ - public class ReadWriteBuffer {{ }} - }} + namespace ComputeSharp + { + public class ReadWriteBuffer { } + } - namespace MyFancyApp.Sample - {{ - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - {{ - int a = {text}(1 + 1); - }} - }} - }}"; + public void Execute() + { + int a = {{text}}(1 + 1); + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0014", "CMPS0047"); } @@ -456,29 +472,30 @@ public class DiagnosticsTests [DataRow("unchecked")] public void CheckedStatement(string text) { - string source = $@" - using ComputeSharp; + string source = $$""" + using ComputeSharp; - namespace ComputeSharp - {{ - public class ReadWriteBuffer {{ }} - }} + namespace ComputeSharp + { + public class ReadWriteBuffer { } + } - namespace MyFancyApp.Sample - {{ - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - {{ - {text} - {{ - int a = 1 + 1; - }} - }} - }} - }}"; + public void Execute() + { + {{text}} + { + int a = 1 + 1; + } + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0015", "CMPS0047"); } @@ -486,31 +503,32 @@ public class DiagnosticsTests [TestMethod] public void FixedStatement() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer + namespace ComputeSharp { - public int[] Data; + public class ReadWriteBuffer + { + public int[] Data; + } } - } - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace MyFancyApp.Sample { - public ReadWriteBuffer buffer; + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - { - fixed (void* p = buffer.Data) - { + public void Execute() + { + fixed (void* p = buffer.Data) + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0016", "CMPS0032", "CMPS0047"); } @@ -518,31 +536,32 @@ public class DiagnosticsTests [TestMethod] public void ForEachStatement() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer + namespace ComputeSharp { - public int[] Data; + public class ReadWriteBuffer + { + public int[] Data; + } } - } - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace MyFancyApp.Sample { - public ReadWriteBuffer buffer; + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - { - foreach (int i in buffer.Data) - { + public void Execute() + { + foreach (int i in buffer.Data) + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0017", "CMPS0047"); } @@ -550,28 +569,29 @@ public class DiagnosticsTests [TestMethod] public void LockStatement() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() - { - lock (buffer) - { + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + lock (buffer) + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0018", "CMPS0047"); } @@ -579,29 +599,30 @@ public class DiagnosticsTests [TestMethod] public void QueryExpression() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer + namespace ComputeSharp { - public int[] Data; - } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader - { - public ReadWriteBuffer buffer; - - public void Execute() - { - _ = from x in buffer.Data select x; + public class ReadWriteBuffer + { + public int[] Data; } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + _ = from x in buffer.Data select x; + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0019", "CMPS0047"); } @@ -609,29 +630,30 @@ public class DiagnosticsTests [TestMethod] public void RangeExpression() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer + namespace ComputeSharp { - public int[] Data; - } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader - { - public ReadWriteBuffer buffer; - - public void Execute() - { - _ = buffer.Data[1..]; + public class ReadWriteBuffer + { + public int[] Data; } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + _ = buffer.Data[1..]; + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0020", "CMPS0047"); } @@ -639,31 +661,32 @@ public class DiagnosticsTests [TestMethod] public void RecursivePattern() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer + namespace ComputeSharp { - public object Data; + public class ReadWriteBuffer + { + public object Data; + } } - } - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace MyFancyApp.Sample { - public ReadWriteBuffer buffer; + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - { - if (buffer.Data is int[] { Length: 50 } foo) - { + public void Execute() + { + if (buffer.Data is int[] { Length: 50 } foo) + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0021", "CMPS0047"); } @@ -671,29 +694,30 @@ public class DiagnosticsTests [TestMethod] public void RefType() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer + namespace ComputeSharp { - public ref T this[int x] => throw null; - } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader - { - public ReadWriteBuffer buffer; - - public void Execute() - { - ref float x = ref buffer[0]; + public class ReadWriteBuffer + { + public ref T this[int x] => throw null; } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + ref float x = ref buffer[0]; + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0022", "CMPS0047"); } @@ -701,31 +725,32 @@ public class DiagnosticsTests [TestMethod] public void RelationalPattern() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer + namespace ComputeSharp { - public int Data; + public class ReadWriteBuffer + { + public int Data; + } } - } - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace MyFancyApp.Sample { - public ReadWriteBuffer buffer; + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - { - if (buffer.Data is > 0 and < 10) - { + public void Execute() + { + if (buffer.Data is > 0 and < 10) + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0023", "CMPS0047"); } @@ -733,26 +758,27 @@ public class DiagnosticsTests [TestMethod] public void SizeOfExpression() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() - { - _ = sizeof(float); + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + _ = sizeof(float); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0024", "CMPS0047"); } @@ -760,26 +786,27 @@ public class DiagnosticsTests [TestMethod] public void StackAllocArrayCreationExpression() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() - { - int* p = stackalloc int[10]; + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + int* p = stackalloc int[10]; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0032", "CMPS0025", "CMPS0047"); } @@ -787,26 +814,27 @@ public class DiagnosticsTests [TestMethod] public void ThrowExpressionOrStatement() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() - { - throw null; + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + throw null; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0026", "CMPS0047"); } @@ -814,31 +842,32 @@ public class DiagnosticsTests [TestMethod] public void TryStatement() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - try - { - } - catch + public ReadWriteBuffer buffer; + + public void Execute() { + try + { + } + catch + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0027", "CMPS0047"); } @@ -846,26 +875,27 @@ public class DiagnosticsTests [TestMethod] public void TupleType() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - (int, float) foo; + public ReadWriteBuffer buffer; + + public void Execute() + { + (int, float) foo; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0028", "CMPS0047", "CMPS0050"); } @@ -873,26 +903,27 @@ public class DiagnosticsTests [TestMethod] public void UsingDeclaration() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - using IDisposable foo = null + public ReadWriteBuffer buffer; + + public void Execute() + { + using IDisposable foo = null + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0029", "CMPS0031", "CMPS0047", "CMPS0050"); } @@ -900,28 +931,29 @@ public class DiagnosticsTests [TestMethod] public void UsingStatement() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - using (IDisposable foo = null) + public ReadWriteBuffer buffer; + + public void Execute() { + using (IDisposable foo = null) + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0029", "CMPS0031", "CMPS0047"); } @@ -929,32 +961,33 @@ public class DiagnosticsTests [TestMethod] public void YieldStatement() { - string source = @" - using System.Collections.Generic; - using ComputeSharp; + const string source = """ + using System.Collections.Generic; + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public static IEnumerable Fail() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - yield return 3.14f; - } + public ReadWriteBuffer buffer; - public void Execute() - { - Fail(); + public static IEnumerable Fail() + { + yield return 3.14f; + } + + public void Execute() + { + Fail(); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0030", "CMPS0047", "CMPS0050"); } @@ -962,26 +995,27 @@ public class DiagnosticsTests [TestMethod] public void InvalidObjectDeclaration() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - string bar; + public ReadWriteBuffer buffer; + + public void Execute() + { + string bar; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0031", "CMPS0047", "CMPS0050"); } @@ -989,26 +1023,27 @@ public class DiagnosticsTests [TestMethod] public void PointerType() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - int* p; + public ReadWriteBuffer buffer; + + public void Execute() + { + int* p; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0032", "CMPS0047"); } @@ -1016,26 +1051,27 @@ public class DiagnosticsTests [TestMethod] public void FunctionPointer() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - delegate* f; + public ReadWriteBuffer buffer; + + public void Execute() + { + delegate* f; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0033", "CMPS0047"); } @@ -1043,28 +1079,29 @@ public class DiagnosticsTests [TestMethod] public void UnsafeStatement() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - unsafe + public ReadWriteBuffer buffer; + + public void Execute() { + unsafe + { + } } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0034", "CMPS0047"); } @@ -1072,28 +1109,29 @@ public class DiagnosticsTests [TestMethod] public void UnsafeModifier_LocalFunction() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - static unsafe void Fail() { } + public ReadWriteBuffer buffer; - Fail(); + public void Execute() + { + static unsafe void Fail() { } + + Fail(); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0035", "CMPS0047"); } @@ -1101,28 +1139,29 @@ public class DiagnosticsTests [TestMethod] public void UnsafeModifier_StaticMethod() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public static unsafe void Fail() { } + public class ReadWriteBuffer { } + } - public ReadWriteBuffer buffer; - - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - Fail(); + public static unsafe void Fail() { } + + public ReadWriteBuffer buffer; + + public void Execute() + { + Fail(); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0035", "CMPS0047"); } @@ -1130,26 +1169,27 @@ public class DiagnosticsTests [TestMethod] public void StringLiteralExpression() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - _ = ""Hello world""; + public ReadWriteBuffer buffer; + + public void Execute() + { + _ = "Hello world"; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0036", "CMPS0047"); } @@ -1157,42 +1197,43 @@ public class DiagnosticsTests [TestMethod] public void NonConstantMatrixSwizzledIndex() { - string source = @" - using ComputeSharp; - using static ComputeSharp.MatrixIndex; - using float4 = ComputeSharp.Float4; - using float4x4 = ComputeSharp.Float4x4; + const string source = """ + using ComputeSharp; + using static ComputeSharp.MatrixIndex; + using float4 = ComputeSharp.Float4; + using float4x4 = ComputeSharp.Float4x4; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - public enum MatrixIndex + namespace ComputeSharp { - M11, - M12, - M13 - }, - public struct Float4 { } - public struct Float4x4 - { - public Float4 this[MatrixIndex m0, MatrixIndex m1, MatrixIndex m2, MatrixIndex m3] => default; - } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader - { - public ReadWriteBuffer buffer; - - public void Execute() + public class ReadWriteBuffer { } + public enum MatrixIndex { - float4x4 m = default; - MatrixIndex index = M12; - float4 = m[M11, index, M13, M11]; + M11, + M12, + M13 + }, + public struct Float4 { } + public struct Float4x4 + { + public Float4 this[MatrixIndex m0, MatrixIndex m1, MatrixIndex m2, MatrixIndex m3] => default; } } - }"; + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + + public void Execute() + { + float4x4 m = default; + MatrixIndex index = M12; + float4 = m[M11, index, M13, M11]; + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0037", "CMPS0047", "CMPS0050"); } @@ -1200,27 +1241,28 @@ public class DiagnosticsTests [TestMethod] public void InvalidShaderStaticFieldType() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - private static string Pi = ""Hello""; - - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { + public ReadWriteBuffer buffer; + + private static string Pi = ""Hello""; + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0038", "CMPS0047"); } @@ -1228,27 +1270,28 @@ public class DiagnosticsTests [TestMethod] public void PropertyDeclaration_AutoProp() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - private static float Pi { get; } = 3.14f; - - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { + public ReadWriteBuffer buffer; + + private static float Pi { get; } = 3.14f; + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0040", "CMPS0047"); } @@ -1256,32 +1299,33 @@ public class DiagnosticsTests [TestMethod] public void PropertyDeclaration_AutoProp_WithExplicitInterfaceImplementation() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public interface IFoo + namespace ComputeSharp { - float Pi { get; } + public class ReadWriteBuffer { } } - public struct MyShader : IComputeShader, IFoo + namespace MyFancyApp.Sample { - public ReadWriteBuffer buffer; - - float IFoo.Pi { get; } = 3.14f; - - public void Execute() + public interface IFoo { + float Pi { get; } + } + + public struct MyShader : IComputeShader, IFoo + { + public ReadWriteBuffer buffer; + + float IFoo.Pi { get; } = 3.14f; + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0040", "CMPS0047"); } @@ -1289,30 +1333,31 @@ public class DiagnosticsTests [TestMethod] public void PropertyDeclaration_GetterBlock() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - private static float Pi + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - get => 3.14f; - } + public ReadWriteBuffer buffer; - public void Execute() - { + private static float Pi + { + get => 3.14f; + } + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0040", "CMPS0047"); } @@ -1320,27 +1365,28 @@ public class DiagnosticsTests [TestMethod] public void StaticPropertyDeclaration() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - private static float Pi { get; set; } = 3.14f; - - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { + public ReadWriteBuffer buffer; + + private static float Pi { get; set; } = 3.14f; + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0040", "CMPS0047"); } @@ -1348,27 +1394,28 @@ public class DiagnosticsTests [TestMethod] public void InstancePropertyDeclaration() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - private float Pi => 3.14f; - - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { + public ReadWriteBuffer buffer; + + private float Pi => 3.14f; + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0040", "CMPS0047"); } @@ -1376,33 +1423,34 @@ public class DiagnosticsTests [TestMethod] public void ShaderDispatchDataSizeExceeded() { - string source = @" - using ComputeSharp; - using double4x4 = ComputeSharp.Double4x4; - using float4 = ComputeSharp.Float4; + const string source = """ + using ComputeSharp; + using double4x4 = ComputeSharp.Double4x4; + using float4 = ComputeSharp.Float4; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - public struct Double4x4 { } - public struct Float4 { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public readonly ReadWriteBuffer buffer; - public readonly double4x4 a; - public readonly double4x4 b; - public readonly int c; - public readonly float4 d; + public class ReadWriteBuffer { } + public struct Double4x4 { } + public struct Float4 { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { + public readonly ReadWriteBuffer buffer; + public readonly double4x4 a; + public readonly double4x4 b; + public readonly int c; + public readonly float4 d; + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0041", "CMPS0047"); } @@ -1410,24 +1458,25 @@ public class DiagnosticsTests [TestMethod] public void MultipleShaderTypes() { - string source = @" - using ComputeSharp; + const string source = """ + using ComputeSharp; - namespace ComputeSharp - { - public interface IComputeShader { } - public interface IPixelShader { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader, IPixelShader + namespace ComputeSharp { - public void Execute() + public interface IComputeShader { } + public interface IPixelShader { } + } + + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader, IPixelShader { + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0042", "CMPS0047"); } @@ -1435,33 +1484,34 @@ public class DiagnosticsTests [TestMethod] public void EmbeddedBytecodeWithDynamicShader() { - string source = @" - using System; - using ComputeSharp; + const string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - { - public interface IComputeShader { } - public class ReadWriteBuffer { } - public class EmbeddedBytecodeAttribute : Attribute + namespace ComputeSharp { - public EmbeddedBytecodeAttribute(int threadsX, int threadsY, int threadsZ) { } - } - } - - namespace MyFancyApp.Sample - { - [EmbeddedBytecode(8, 8, 1)] - public struct MyShader : IComputeShader - { - public ReadWriteBuffer buffer; - public Action action; - - public void Execute() + public interface IComputeShader { } + public class ReadWriteBuffer { } + public class EmbeddedBytecodeAttribute : Attribute { + public EmbeddedBytecodeAttribute(int threadsX, int threadsY, int threadsZ) { } } } - }"; + + namespace MyFancyApp.Sample + { + [EmbeddedBytecode(8, 8, 1)] + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; + public Action action; + + public void Execute() + { + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0043"); } @@ -1475,32 +1525,33 @@ public class DiagnosticsTests [DataRow(1, 1, 70)] public void InvalidEmbeddedBytecodeThreadIds(int threadsX, int threadsY, int threadsZ) { - string source = $@" - using System; - using ComputeSharp; + string source = $$""" + using System; + using ComputeSharp; - namespace ComputeSharp - {{ - public interface IComputeShader {{ }} - public class ReadWriteBuffer {{ }} - public class EmbeddedBytecodeAttribute : Attribute - {{ - public EmbeddedBytecodeAttribute(int threadsX, int threadsY, int threadsZ) {{ }} - }} - }} + namespace ComputeSharp + { + public interface IComputeShader { } + public class ReadWriteBuffer { } + public class EmbeddedBytecodeAttribute : Attribute + { + public EmbeddedBytecodeAttribute(int threadsX, int threadsY, int threadsZ) { } + } + } - namespace MyFancyApp.Sample - {{ - [EmbeddedBytecode({threadsX}, {threadsY}, {threadsZ})] - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + [EmbeddedBytecode({{threadsX}}, {{threadsY}}, {{threadsZ}})] + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - {{ - }} - }} - }}"; + public void Execute() + { + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0044"); } @@ -1508,33 +1559,34 @@ public class DiagnosticsTests [TestMethod] public void InvalidEmbeddedBytecodeDispatchSize_Flags() { - string source = $@" - using System; - using ComputeSharp; + const string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - {{ - public interface IComputeShader {{ }} - public class ReadWriteBuffer {{ }} - public enum DispatchAxis {{ X, Y, Z, XY, XZ, YZ, XYZ }} - public class EmbeddedBytecodeAttribute : Attribute - {{ - public EmbeddedBytecodeAttribute(DispatchAxis dispatchAxis) {{ }} - }} - }} + namespace ComputeSharp + { + public interface IComputeShader { } + public class ReadWriteBuffer { } + public enum DispatchAxis { X, Y, Z, XY, XZ, YZ, XYZ } + public class EmbeddedBytecodeAttribute : Attribute + { + public EmbeddedBytecodeAttribute(DispatchAxis dispatchAxis) { } + } + } - namespace MyFancyApp.Sample - {{ - [EmbeddedBytecode(DispatchAxis.XYZ | DispatchAxis.Y)] - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + [EmbeddedBytecode(DispatchAxis.XYZ | DispatchAxis.Y)] + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - {{ - }} - }} - }}"; + public void Execute() + { + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0048"); } @@ -1542,33 +1594,34 @@ public class DiagnosticsTests [TestMethod] public void InvalidEmbeddedBytecodeDispatchSize_ExplicitValue() { - string source = $@" - using System; - using ComputeSharp; + const string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - {{ - public interface IComputeShader {{ }} - public class ReadWriteBuffer {{ }} - public enum DispatchAxis {{ X, Y, Z, XY, XZ, YZ, XYZ }} - public class EmbeddedBytecodeAttribute : Attribute - {{ - public EmbeddedBytecodeAttribute(DispatchAxis dispatchAxis) {{ }} - }} - }} + namespace ComputeSharp + { + public interface IComputeShader { } + public class ReadWriteBuffer { } + public enum DispatchAxis { X, Y, Z, XY, XZ, YZ, XYZ } + public class EmbeddedBytecodeAttribute : Attribute + { + public EmbeddedBytecodeAttribute(DispatchAxis dispatchAxis) { } + } + } - namespace MyFancyApp.Sample - {{ - [EmbeddedBytecode((DispatchAxis)243712)] - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + [EmbeddedBytecode((DispatchAxis)243712)] + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - {{ - }} - }} - }}"; + public void Execute() + { + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0048"); } @@ -1576,33 +1629,34 @@ public class DiagnosticsTests [TestMethod] public void InvalidEmbeddedBytecodeDispatchSize_ExplicitValue_Negative() { - string source = $@" - using System; - using ComputeSharp; + const string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - {{ - public interface IComputeShader {{ }} - public class ReadWriteBuffer {{ }} - public enum DispatchAxis {{ X, Y, Z, XY, XZ, YZ, XYZ }} - public class EmbeddedBytecodeAttribute : Attribute - {{ - public EmbeddedBytecodeAttribute(DispatchAxis dispatchAxis) {{ }} - }} - }} + namespace ComputeSharp + { + public interface IComputeShader { } + public class ReadWriteBuffer { } + public enum DispatchAxis { X, Y, Z, XY, XZ, YZ, XYZ } + public class EmbeddedBytecodeAttribute : Attribute + { + public EmbeddedBytecodeAttribute(DispatchAxis dispatchAxis) { } + } + } - namespace MyFancyApp.Sample - {{ - [EmbeddedBytecode((DispatchAxis)(-289))] - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; + namespace MyFancyApp.Sample + { + [EmbeddedBytecode((DispatchAxis)(-289))] + public struct MyShader : IComputeShader + { + public ReadWriteBuffer buffer; - public void Execute() - {{ - }} - }} - }}"; + public void Execute() + { + } + } + } + """; VerifyGeneratedDiagnostics(source, "CMPS0048"); } @@ -1610,27 +1664,28 @@ public class DiagnosticsTests [TestMethod] public void InvalidMethodCall() { - string source = @" - using System; - using ComputeSharp; + const string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public readonly ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - buffer[0] = Convert.ToSingle(42); + public readonly ReadWriteBuffer buffer; + + public void Execute() + { + buffer[0] = Convert.ToSingle(42); + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0049", "CMPS0047"); } @@ -1638,27 +1693,28 @@ public class DiagnosticsTests [TestMethod] public void InvalidDiscoveredType_Primitive() { - string source = @" - using System; - using ComputeSharp; + const string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct MyShader : IComputeShader + namespace ComputeSharp { - public readonly ReadWriteBuffer buffer; + public class ReadWriteBuffer { } + } - public void Execute() + namespace MyFancyApp.Sample + { + public struct MyShader : IComputeShader { - buffer[0] = (byte)42; + public readonly ReadWriteBuffer buffer; + + public void Execute() + { + buffer[0] = (byte)42; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0047", "CMPS0050"); } @@ -1666,33 +1722,34 @@ public class DiagnosticsTests [TestMethod] public void InvalidDiscoveredType_CustomType() { - string source = @" - using System; - using ComputeSharp; + const string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct Foo + namespace ComputeSharp { - public DateTime bar; + public class ReadWriteBuffer { } } - public struct MyShader : IComputeShader + namespace MyFancyApp.Sample { - public readonly ReadWriteBuffer buffer; - - public void Execute() + public struct Foo { - Foo foo = default; - buffer[0] = 42; + public DateTime bar; + } + + public struct MyShader : IComputeShader + { + public readonly ReadWriteBuffer buffer; + + public void Execute() + { + Foo foo = default; + buffer[0] = 42; + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0047", "CMPS0050"); } @@ -1700,31 +1757,32 @@ public class DiagnosticsTests [TestMethod] public void InvalidDiscoveredType_CustomType_SystemBoolean() { - string source = @" - using System; - using ComputeSharp; + string source = """ + using System; + using ComputeSharp; - namespace ComputeSharp - { - public class ReadWriteBuffer { } - } - - namespace MyFancyApp.Sample - { - public struct Foo + namespace ComputeSharp { - public bool bar; + public class ReadWriteBuffer { } } - public struct MyShader : IComputeShader + namespace MyFancyApp.Sample { - public readonly ReadWriteBuffer buffer; - - public void Execute() + public struct Foo { + public bool bar; + } + + public struct MyShader : IComputeShader + { + public readonly ReadWriteBuffer buffer; + + public void Execute() + { + } } } - }"; + """; VerifyGeneratedDiagnostics(source, "CMPS0047", "CMPS0050"); } diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index 93866d1d..68745c0c 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -40,6 +40,7 @@ + diff --git a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs index 2d12710a..4ca56f7e 100644 --- a/tests/ComputeSharp.Tests/ShaderRewriterTests.cs +++ b/tests/ComputeSharp.Tests/ShaderRewriterTests.cs @@ -135,7 +135,7 @@ public partial class ShaderRewriterTests [AllDevices] public void BitwiseHlslOperators(Device device) { - int[] data = { 186456131, 215486738, unchecked((int)416439712738), unchecked((int)1437124371243), 0, 0, 0, 0 }; + int[] data = { 186456131, 215486738, unchecked((int)416439712738), unchecked((int)1437124371243), 0, 0, 0, 0, 0, 0, 0, 0 }; using ReadWriteBuffer buffer = device.Get().AllocateReadWriteBuffer(data); @@ -151,6 +151,9 @@ public partial class ShaderRewriterTests int2 e = new(a.X | (int)b.X, a.Y | (int)b.Y); int2 f = new(a.X ^ (int)b.X, a.Y ^ (int)b.Y); + int2 g = new(a.X >> 5, a.Y >> 12); + int2 h = new(a.X << 22, a.Y << 17); + Assert.AreEqual(results[0], c.X); Assert.AreEqual(results[1], c.Y); Assert.AreEqual(results[2], d.X); @@ -159,6 +162,10 @@ public partial class ShaderRewriterTests Assert.AreEqual(results[5], e.Y); Assert.AreEqual(results[6], f.X); Assert.AreEqual(results[7], f.Y); + Assert.AreEqual(results[8], g.X); + Assert.AreEqual(results[9], g.Y); + Assert.AreEqual(results[10], h.X); + Assert.AreEqual(results[11], h.Y); } [AutoConstructor] @@ -176,9 +183,10 @@ public partial class ShaderRewriterTests int2 e = a | b; int2 f = a ^ b; -#if NEEDS_CSHARP_11 - // TODO: add bit shifting tests -#endif + int2 sr = new(5, 12); + uint2 sl = new(22, 17); + int2 g = a >> sr; + int2 h = a << sl; buffer[0] = c.X; buffer[1] = c.Y; @@ -188,6 +196,10 @@ public partial class ShaderRewriterTests buffer[5] = e.Y; buffer[6] = f.X; buffer[7] = f.Y; + buffer[8] = g.X; + buffer[9] = g.Y; + buffer[10] = h.X; + buffer[11] = h.Y; } }