diff --git a/README.md b/README.md index 783fcff8..b4d6f124 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ - [GPU resource types](#gpu-resource-types) - [HLSL vector and matrix types](#hlsl-vector-and-matrix-types) - [HLSL intrinsics](#hlsl-intrinsics) - - [Shader constants](#shader-constants) + - [Shader constants and globals](#shader-constants-and-globals) - [Dispatch info](#dispatch-info) - [Working with images](#working-with-images) - [Shader metaprogramming](#shader-metaprogramming) @@ -129,6 +129,8 @@ Float4 vertices = matrix[M11, M14, M44, M41]; Matrix types also include a number of built-in operators to work with vector types, and the `Hlsl` class detailed below (see [HLSL intrinsics](#hlsl-intrinsics)) also includes several overloads for the available methods to work on both matrix and vector types at the same time (eg. for row/matrix multiplication and other common linear algebra operations). +> **NOTE:** in order to make all the available properties and indexers usable when declaring shader constants and globals (see [Shader constants and globals](#shader-constants-and-globals)), they will return undefined data if used on the CPU instead of throwing an exception, and in this case their behavior is considered undefined. Refer to the XML docs for each API for further info, as properties and operators that are only meant to be used in a shader are clearly marked as undefined behavior if used on the CPU side. The only APIs guaranteed to be usable on the GPU are constructors, static properties and properties to access individual elements (eg. `Float4.X`). + ## HLSL intrinsics **ComputeSharp** offers support for all HLSL intrinsics that can be used from compute shaders. These are special functions (usually representing mathematical operations) that are optimized on the GPU and can execute very efficiently. Some of them can be mapped automatically from methods in the `System.Math` type, but if you want to have direct access to all of them you can just use the methods in the `Hlsl` class from a compute shader, and **ComputeSharp** will rewrite all those calls to use the native intrinsics in the compute shaders where those are used. @@ -152,11 +154,13 @@ public readonly partial struct SoftmaxActivation : IComputeShader } ``` -## Shader constants +> **NOTE:** in order to make all the intrinsics usable when declaring shader constants and globals (see [Shader constants and globals](#shader-constants-and-globals)), most intrinsics will just return a default value if used on the CPU instead of throwing an exception, and in this case their behavior is considered undefined. Make sure to only ever use these methods in a shader, as their results will not be correct in other execution contexts. -One common approach to make shaders easier to modify and experiment with is to separate the parameters being used from the code using them, by defining them as constants. **ComputeSharp** has special handling for this, and will rewrite static readonly properties as static constants in the generated shaders, which are optimized by the compiler for frequent access during execution. The advantage of using constants is that they're directly embedded into a compiled shader, so they don't need to be loaded in memory whenever a shader is dispatched. Constant properties can be of any of the supported HLSL primitive types, including vector and matrix types. Furthermore, the initialization of these constants can also use any of the available HLSL intrinsics. If the same result is being used multiple times while a shader is executed, moving values to a shader constant is a good way to avoid repeatedly computing the same value over and over for each invocation. +## Shader constants and globals -Here is an example of how shader constants can be declared and used: +One common approach to make shaders easier to modify and experiment with is to separate the parameters being used from the code using them, by defining them as constants. **ComputeSharp** has special handling for this, and will rewrite static fields as global variables in the generated shaders (marking them as constants if needed), which are optimized by the compiler for frequent access during execution. The advantage of using constants is that they're directly embedded into a compiled shader, so they don't need to be loaded in memory whenever a shader is dispatched. Non constant shader global variables, on the other hand, can make code easier to write as they remove the need to pass multiple values around in each function that is invoked. Static fields can be of any of the supported HLSL primitive types, including vector and matrix types. Furthermore, the initialization of these constants can also use any of the available HLSL intrinsics. If the same result is being used multiple times while a shader is executed, moving values to a shader constant is a good way to avoid repeatedly computing the same value over and over. + +Here is an example of how shader constants and mutable globals can be declared and used: ```csharp [AutoConstructor] @@ -164,16 +168,25 @@ public readonly partial struct SampleShaderWithConstants : IComputeShader { public readonly ReadWriteBuffer buffer; - private static float Pi => 3.14f; - private static Float2 SinCosPi => new(Hlsl.Sin(Pi), Hlsl.Cos(Pi)); + private const int iterations = 10; + private const float pi = 3.14f; + private static readonly Float2 sinCosPi = new(Hlsl.Sin(Pi), Hlsl.Cos(Pi)); + private static float sum; public void Execute() { - buffer[ThreadIds.X] = Pi + SinCosPi.X * SinCosPi.Y; + for (int i = 0; i < iterations; i++) + { + sum += pi + sinCosPi.X * sinCosPi.Y; + } + + buffer[ThreadIds.X] = sum; } } ``` +As shown above, there are two ways to declare a constant value in a shader: either by using `const` in C# (which is perfect for when a value is just a primitive scalar type initialized with a constant expression), or by using `static readonly`. The latter has the advantage that it allows the type to be of a vector and matrix type as well, and the initialization can also use any of the available HLSL intrinsics. Lastly, mutable globals can be declared by just using the `static` modifier, and they can also optionally have an initializer (otherwise their default value will be used). + ## Dispatch info As shown in the [Quick start](#quick-start) paragraph, **ComputeSharp** includes a number of special types that allow shaders to access a number of useful dispatch info values, such as the current iteration coordinate or the target dispatch range. Here is a list of all the available types in this category: diff --git a/samples/ComputeSharp.SwapChain/Shaders/MengerJourney.cs b/samples/ComputeSharp.SwapChain/Shaders/MengerJourney.cs index e443be64..9a594438 100644 --- a/samples/ComputeSharp.SwapChain/Shaders/MengerJourney.cs +++ b/samples/ComputeSharp.SwapChain/Shaders/MengerJourney.cs @@ -20,7 +20,7 @@ private const int MaxSteps = 30; private const float MinimumDistance = 0.0009f; - private const float normalDistance = 0.0002f; + private const float NormalDistance = 0.0002f; private const int Iterations = 7; private const float Scale = 3.0f; private const float FieldOfView = 1.0f; @@ -30,11 +30,11 @@ private const float Ambient = 0.32184f; private const float Diffuse = 0.5f; - private static Float3 LightDir => 1.0f; - private static Float3 LightColor => new(1.0f, 1.0f, 0.858824f); - private static Float3 LightDir2 => new(1.0f, -1.0f, 1.0f); - private static Float3 LightColor2 => new(0, 0.333333f, 1.0f); - private static Float3 Offset => new(0.92858f, 0.92858f, 0.32858f); + private static readonly Float3 LightDir = 1.0f; + private static readonly Float3 LightColor = new(1.0f, 1.0f, 0.858824f); + private static readonly Float3 LightDir2 = new(1.0f, -1.0f, 1.0f); + private static readonly Float3 LightColor2 = new(0, 0.333333f, 1.0f); + private static readonly Float3 Offset = new(0.92858f, 0.92858f, 0.32858f); /// /// Rotates a given value by a specified amount. @@ -104,7 +104,7 @@ /// private Float3 getNormal(in Float3 pos) { - Float3 e = new(0.0f, normalDistance, 0.0f); + Float3 e = new(0.0f, NormalDistance, 0.0f); return Hlsl.Normalize(new Float3( DE(pos + e.YXX) - DE(pos - e.YXX), @@ -143,7 +143,7 @@ float smoothStep = steps + distance / MinimumDistance; float ao = 1.1f - smoothStep / MaxSteps; - Float3 normal = getNormal(pos - dir * normalDistance * 3.0f); + Float3 normal = getNormal(pos - dir * NormalDistance * 3.0f); Float3 color = 1.0f; Float3 light = GetLight(color, normal); diff --git a/samples/ComputeSharp.SwapChain/Shaders/ProteanClouds.cs b/samples/ComputeSharp.SwapChain/Shaders/ProteanClouds.cs index 04f08476..5a4f4bc9 100644 --- a/samples/ComputeSharp.SwapChain/Shaders/ProteanClouds.cs +++ b/samples/ComputeSharp.SwapChain/Shaders/ProteanClouds.cs @@ -19,7 +19,7 @@ /// public readonly float time; - private static Float3x3 m3 => new Float3x3(0.33338f, 0.56034f, -0.71817f, -0.87887f, 0.32651f, -0.15323f, 0.15162f, 0.69596f, 0.61339f) * 1.93f; + private static readonly Float3x3 m3 = new Float3x3(0.33338f, 0.56034f, -0.71817f, -0.87887f, 0.32651f, -0.15323f, 0.15162f, 0.69596f, 0.61339f) * 1.93f; private static Float2x2 Rotate(in float a) { diff --git a/src/ComputeSharp.SourceGenerators/AnalyzerReleases.Unshipped.md b/src/ComputeSharp.SourceGenerators/AnalyzerReleases.Unshipped.md index 97be482d..a178dee2 100644 --- a/src/ComputeSharp.SourceGenerators/AnalyzerReleases.Unshipped.md +++ b/src/ComputeSharp.SourceGenerators/AnalyzerReleases.Unshipped.md @@ -49,6 +49,4 @@ CMPS0041 | ComputeSharp.SourceGenerators.ShaderMethodSourceGenerator | Warning | CMPS0042 | ComputeSharp.IComputeShader | Error | IComputeShaderSourceGenerator, [Documentation](https://github.com/Sergio0694/ComputeSharp) CMPS0043 | ComputeSharp.IComputeShader | Error | IComputeShaderSourceGenerator, [Documentation](https://github.com/Sergio0694/ComputeSharp) CMPS0044 | ComputeSharp.IComputeShader | Error | IComputeShaderSourceGenerator, [Documentation](https://github.com/Sergio0694/ComputeSharp) -CMPS0045 | ComputeSharp.IComputeShader | Error | IComputeShaderSourceGenerator, [Documentation](https://github.com/Sergio0694/ComputeSharp) -CMPS0046 | ComputeSharp.IComputeShader | Error | IComputeShaderSourceGenerator, [Documentation](https://github.com/Sergio0694/ComputeSharp) -CMPS0047 | ComputeSharp.IComputeShader | Error | IComputeShaderSourceGenerator, [Documentation](https://github.com/Sergio0694/ComputeSharp) \ No newline at end of file +CMPS0045 | ComputeSharp.IComputeShader | Error | IComputeShaderSourceGenerator, [Documentation](https://github.com/Sergio0694/ComputeSharp) \ No newline at end of file diff --git a/src/ComputeSharp.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs b/src/ComputeSharp.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs index 2b3f33ba..b49d7ce1 100644 --- a/src/ComputeSharp.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs +++ b/src/ComputeSharp.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs @@ -590,74 +590,26 @@ namespace ComputeSharp.SourceGenerators.Diagnostics helpLinkUri: "https://github.com/Sergio0694/ComputeSharp"); /// - /// Gets a for an invalid shader constant property type. + /// Gets a for an invalid shader static field type. /// - /// Format: "The compute shader of type {0} contains a constant property \"{1}\" of an invalid type {2} (only primitive, vector and matrix types are supported)". + /// Format: "The compute shader of type {0} contains a static field \"{1}\" of an invalid type {2} (only primitive, vector and matrix types are supported)". /// /// - public static readonly DiagnosticDescriptor InvalidShaderConstantPropertyType = new( + public static readonly DiagnosticDescriptor InvalidShaderStaticFieldType = new( id: "CMPS0043", - title: "Invalid shader constant property type", - messageFormat: "The compute shader of type {0} contains a constant property \"{1}\" of an invalid type {2} (only primitive, vector and matrix types are supported)", + title: "Invalid shader static field type", + messageFormat: "The compute shader of type {0} contains a static field \"{1}\" of an invalid type {2} (only primitive, vector and matrix types are supported)", category: typeof(IComputeShader).FullName, defaultSeverity: DiagnosticSeverity.Error, isEnabledByDefault: true, - description: "A type representing a compute shader contains a constant property of a type that is not supported.", - helpLinkUri: "https://github.com/Sergio0694/ComputeSharp"); - - /// - /// Gets a for an invalid shader constant property declaration. - /// - /// Format: "The compute shader of type {0} contains a constant property \"{1}\" with an invalid declaration (must use a lambda expression)". - /// - /// - public static readonly DiagnosticDescriptor InvalidShaderConstantPropertyDeclaration = new( - id: "CMPS0044", - title: "Invalid shader constant property", - messageFormat: "The compute shader of type {0} contains a constant property \"{1}\" with an invalid declaration (must use a lambda expression)", - category: typeof(IComputeShader).FullName, - defaultSeverity: DiagnosticSeverity.Error, - isEnabledByDefault: true, - description: "A type representing a compute shader contains a constant property with an invalid declaration.", - helpLinkUri: "https://github.com/Sergio0694/ComputeSharp"); - - /// - /// Gets a for an invalid shader constant property declaration. - /// - /// Format: "The compute shader of type {0} contains a mutable property \"{1}\" (only readonly properties are supported)". - /// - /// - public static readonly DiagnosticDescriptor NonReadonlyShaderPropertyDeclaration = new( - id: "CMPS0045", - title: "Invalid shader constant property", - messageFormat: "The compute shader of type {0} contains a mutable property \"{1}\" (only readonly properties are supported)", - category: typeof(IComputeShader).FullName, - defaultSeverity: DiagnosticSeverity.Error, - isEnabledByDefault: true, - description: "A type representing a compute shader contains a non readonly property declaration.", - helpLinkUri: "https://github.com/Sergio0694/ComputeSharp"); - - /// - /// Gets a for an invalid shader constant property declaration. - /// - /// Format: "The compute shader of type {0} contains an instance property \"{1}\" (only static properties are supported)". - /// - /// - public static readonly DiagnosticDescriptor InstanceShaderPropertyDeclaration = new( - id: "CMPS0046", - title: "Invalid shader constant property", - messageFormat: "The compute shader of type {0} contains an instance property \"{1}\" (only static properties are supported)", - category: typeof(IComputeShader).FullName, - defaultSeverity: DiagnosticSeverity.Error, - isEnabledByDefault: true, - description: "A type representing a compute shader contains an instance property declaration.", + description: "A type representing a compute shader contains a static field of a type that is not supported.", helpLinkUri: "https://github.com/Sergio0694/ComputeSharp"); /// /// Gets a for an invalid usage. /// public static readonly DiagnosticDescriptor InvalidDispatchSizeUsage = new( - id: "CMPS0047", + id: "CMPS0044", title: "Invalid DispatchSize usage", messageFormat: "The DispatchSize type can only be used within the main body of a compute shader", category: typeof(IComputeShader).FullName, @@ -665,5 +617,18 @@ namespace ComputeSharp.SourceGenerators.Diagnostics isEnabledByDefault: true, description: "The DispatchSize type can only be used within the main body of a compute shader.", helpLinkUri: "https://github.com/Sergio0694/ComputeSharp"); + + /// + /// Gets a for a property declaration. + /// + public static readonly DiagnosticDescriptor PropertyDeclaration = new( + id: "CMPS0045", + title: "Property declaration", + messageFormat: "Property declarations cannot be used in a compute shader", + category: typeof(IComputeShader).FullName, + defaultSeverity: DiagnosticSeverity.Error, + isEnabledByDefault: true, + description: "Property declarations cannot be used in a compute shader.", + helpLinkUri: "https://github.com/Sergio0694/ComputeSharp"); } } diff --git a/src/ComputeSharp.SourceGenerators/Helpers/MemoryMarshal.cs b/src/ComputeSharp.SourceGenerators/Helpers/MemoryMarshal.cs new file mode 100644 index 00000000..4c92387c --- /dev/null +++ b/src/ComputeSharp.SourceGenerators/Helpers/MemoryMarshal.cs @@ -0,0 +1,25 @@ +using System; + +namespace ComputeSharp.SourceGenerators.Helpers +{ + /// + /// A polyfill type that mirrors some methods from on .NET 5. + /// + internal static class MemoryMarshal + { + /// + public static ref T GetReference(Span span) + { + return ref System.Runtime.InteropServices.MemoryMarshal.GetReference(span); + } + + /// + /// Creates a new from a given reference. + /// + /// The type of reference to wrap. + /// The target reference. + /// The length of the to create. + /// A new wrapping . + public static Span CreateSpan(ref T value, int length) => default; + } +} diff --git a/src/ComputeSharp.SourceGenerators/Helpers/RuntimeHelpers.cs b/src/ComputeSharp.SourceGenerators/Helpers/RuntimeHelpers.cs new file mode 100644 index 00000000..adcb0187 --- /dev/null +++ b/src/ComputeSharp.SourceGenerators/Helpers/RuntimeHelpers.cs @@ -0,0 +1,18 @@ +using System; + +namespace ComputeSharp.SourceGenerators.Helpers +{ + /// + /// A polyfill type that mirrors some methods from on .NET 5. + /// + internal static class RuntimeHelpers + { + /// + /// Allocates some memory tied to the lifetime of a specific type. + /// + /// The type to associate the memory to. + /// The size in byte of the memory to allocate. + /// A pointer to the allocated memory. + public static IntPtr AllocateTypeAssociatedMemory(Type type, int size) => default; + } +} diff --git a/src/ComputeSharp.SourceGenerators/Helpers/SyntaxFactoryHelper.cs b/src/ComputeSharp.SourceGenerators/Helpers/SyntaxFactoryHelper.cs index 894f6630..e582b220 100644 --- a/src/ComputeSharp.SourceGenerators/Helpers/SyntaxFactoryHelper.cs +++ b/src/ComputeSharp.SourceGenerators/Helpers/SyntaxFactoryHelper.cs @@ -46,7 +46,7 @@ namespace ComputeSharp.SourceGenerators.Helpers /// The input sequence of groups. /// An instance with the described contents. [Pure] - public static ArrayCreationExpressionSyntax NestedArrayExpression(IEnumerable> groups) + public static ArrayCreationExpressionSyntax NestedArrayExpression(IEnumerable> groups) { return ArrayCreationExpression( @@ -55,7 +55,10 @@ namespace ComputeSharp.SourceGenerators.Helpers .WithInitializer(InitializerExpression(SyntaxKind.ArrayInitializerExpression) .AddExpressions(groups.Select(static group => ImplicitArrayCreationExpression(InitializerExpression(SyntaxKind.ArrayInitializerExpression).AddExpressions( - group.Select(static item => LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(item))).ToArray()))).ToArray())); + group.Select(static item => item is null + ? LiteralExpression(SyntaxKind.NullLiteralExpression) + : LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(item))) + .ToArray()))).ToArray())); } /// diff --git a/src/ComputeSharp.SourceGenerators/IComputeShaderDataLoaderGenerator.cs b/src/ComputeSharp.SourceGenerators/IComputeShaderDataLoaderGenerator.cs index beaff28e..9ef136f1 100644 --- a/src/ComputeSharp.SourceGenerators/IComputeShaderDataLoaderGenerator.cs +++ b/src/ComputeSharp.SourceGenerators/IComputeShaderDataLoaderGenerator.cs @@ -164,7 +164,7 @@ namespace ComputeSharp.SourceGenerators IFieldSymbol fieldSymbol in from fieldSymbol in structDeclarationSymbol.GetMembers().OfType() where fieldSymbol.Type is INamedTypeSymbol { IsStatic: false } && - !fieldSymbol.IsConst + !fieldSymbol.IsConst && !fieldSymbol.IsStatic select fieldSymbol) { string typeName = fieldSymbol.Type.GetFullMetadataName(); diff --git a/src/ComputeSharp.SourceGenerators/IComputeShaderSourceGenerator.cs b/src/ComputeSharp.SourceGenerators/IComputeShaderSourceGenerator.cs index 1f8dff73..5ae0f717 100644 --- a/src/ComputeSharp.SourceGenerators/IComputeShaderSourceGenerator.cs +++ b/src/ComputeSharp.SourceGenerators/IComputeShaderSourceGenerator.cs @@ -65,6 +65,9 @@ namespace ComputeSharp.SourceGenerators // Only process compute shader types if (!structDeclarationSymbol.Interfaces.Any(static interfaceSymbol => interfaceSymbol.Name == nameof(IComputeShader))) return; + // Properties are not supported + DetectAndReportPropertyDeclarations(context, structDeclarationSymbol); + // We need to sets to track all discovered custom types and static methods HashSet discoveredTypes = new(SymbolEqualityComparer.Default); Dictionary staticMethods = new(SymbolEqualityComparer.Default); @@ -77,7 +80,7 @@ namespace ComputeSharp.SourceGenerators var processedTypes = GetProcessedTypes(discoveredTypes).ToArray(); var processedMethods = localFunctions.Concat(staticMethods.Values).Select(static method => method.NormalizeWhitespace().ToFullString()).ToArray(); var processedConstants = GetProcessedConstants(constantDefinitions); - var staticConstants = GetConstantProperties(context, semanticModel, structDeclaration, structDeclarationSymbol, discoveredTypes, constantDefinitions); + var staticFields = GetStaticFields(context, semanticModel, structDeclaration, structDeclarationSymbol, discoveredTypes, constantDefinitions); // Create the compilation unit with the source attribute var source = @@ -91,7 +94,7 @@ namespace ComputeSharp.SourceGenerators AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(entryPoint))), AttributeArgument(ArrayExpression(processedMethods)), AttributeArgument(NestedArrayExpression(processedConstants)), - AttributeArgument(NestedArrayExpression(staticConstants)), + AttributeArgument(NestedArrayExpression(staticFields)), AttributeArgument(NestedArrayExpression(sharedBuffers))))) .WithOpenBracketToken(Token(TriviaList(Trivia(PragmaWarningDirectiveTrivia(Token(SyntaxKind.DisableKeyword), true))), SyntaxKind.OpenBracketToken, TriviaList())) .WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.AssemblyKeyword)))) @@ -174,7 +177,7 @@ namespace ComputeSharp.SourceGenerators } /// - /// Gets a sequence of shader static constant properties and their mapped names. + /// Gets a sequence of shader static fields and their mapped names. /// /// The current generator context in use. /// The instance for the type to process. @@ -182,9 +185,9 @@ namespace ComputeSharp.SourceGenerators /// The type symbol for the shader type. /// The collection of currently discovered types. /// The collection of discovered constant definitions. - /// A sequence of static constant properties in . + /// A sequence of static constant fields in . [Pure] - private static IEnumerable> GetConstantProperties( + private static IEnumerable> GetStaticFields( GeneratorExecutionContext context, SemanticModel semanticModel, StructDeclarationSyntax structDeclaration, @@ -192,55 +195,47 @@ namespace ComputeSharp.SourceGenerators ICollection discoveredTypes, IDictionary constantDefinitions) { - foreach (var propertyDeclaration in structDeclaration.Members.OfType()) + foreach (var fieldDeclaration in structDeclaration.Members.OfType()) { - IPropertySymbol propertySymbol = semanticModel.GetDeclaredSymbol(propertyDeclaration)!; - - if (!propertySymbol.IsStatic) + foreach (var variableDeclarator in fieldDeclaration.Declaration.Variables) { - context.ReportDiagnostic(InstanceShaderPropertyDeclaration, propertyDeclaration, structDeclarationSymbol, propertySymbol.Name); + IFieldSymbol fieldSymbol = (IFieldSymbol)semanticModel.GetDeclaredSymbol(variableDeclarator)!; - continue; - } + if (!fieldSymbol.IsStatic || fieldSymbol.IsConst) + { + continue; + } - if (!propertySymbol.IsReadOnly) - { - context.ReportDiagnostic(NonReadonlyShaderPropertyDeclaration, propertyDeclaration, structDeclarationSymbol, propertySymbol.Name); + AttributeData? attribute = fieldSymbol.GetAttributes().FirstOrDefault(static a => a.AttributeClass is { Name: nameof(GroupSharedAttribute) }); - continue; - } + if (attribute is not null) continue; - // Constant properties must be named type symbols - if (propertySymbol.Type is not INamedTypeSymbol typeSymbol) - { - context.ReportDiagnostic(InvalidShaderConstantPropertyType, propertyDeclaration, structDeclarationSymbol, propertySymbol.Name, propertySymbol.Type); + // Constant properties must be of a primitive, vector or matrix type + if (fieldSymbol.Type is not INamedTypeSymbol typeSymbol || + !HlslKnownTypes.IsKnownHlslType(typeSymbol.GetFullMetadataName())) + { + context.ReportDiagnostic(InvalidShaderStaticFieldType, variableDeclarator, structDeclarationSymbol, fieldSymbol.Name, fieldSymbol.Type); - continue; - } + continue; + } - string metadataName = typeSymbol.GetFullMetadataName(); + _ = HlslKnownKeywords.TryGetMappedName(fieldSymbol.Name, out string? mapping); - // Constant properties must be of a primitive, vector or matrix type - if (!HlslKnownTypes.IsKnownHlslType(metadataName)) - { - context.ReportDiagnostic(InvalidShaderConstantPropertyType, propertyDeclaration, structDeclarationSymbol, propertySymbol.Name, propertySymbol.Type); + string typeDeclaration = fieldSymbol.IsReadOnly switch + { + true => $"static const {HlslKnownTypes.GetMappedName(typeSymbol)}", + false => $"static {HlslKnownTypes.GetMappedName(typeSymbol)}" + }; - continue; - } + StaticFieldRewriter staticFieldRewriter = new( + semanticModel, + discoveredTypes, + constantDefinitions, + context); - ConstantPropertyRewriter constantPropertyRewriter = new( - semanticModel, - discoveredTypes, - constantDefinitions, - context); + string? assignment = staticFieldRewriter.Visit(variableDeclarator)?.NormalizeWhitespace().ToFullString(); - if (constantPropertyRewriter.Visit(propertyDeclaration) is ExpressionSyntax expression) - { - string typeName = HlslKnownTypes.GetMappedName(typeSymbol); - - _ = HlslKnownKeywords.TryGetMappedName(propertySymbol.Name, out string? mapping); - - yield return new[] { mapping ?? propertySymbol.Name, typeName, expression.NormalizeWhitespace().ToFullString() }; + yield return new[] { mapping ?? fieldSymbol.Name, typeDeclaration, assignment }; } } } @@ -417,6 +412,19 @@ namespace ComputeSharp.SourceGenerators .ToFullString(); } } + + /// + /// Finds and reports all declared properties in a shader. + /// + /// The current generator context in use. + /// The input instance to process. + private static void DetectAndReportPropertyDeclarations(GeneratorExecutionContext context, INamedTypeSymbol structDeclarationSymbol) + { + foreach (var propertySymbol in structDeclarationSymbol.GetMembers().OfType()) + { + context.ReportDiagnostic(DiagnosticDescriptors.PropertyDeclaration, propertySymbol); + } + } } } diff --git a/src/ComputeSharp.SourceGenerators/SyntaxRewriters/ConstantPropertyRewriter.cs b/src/ComputeSharp.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs similarity index 85% rename from src/ComputeSharp.SourceGenerators/SyntaxRewriters/ConstantPropertyRewriter.cs rename to src/ComputeSharp.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs index 800d6595..644bf065 100644 --- a/src/ComputeSharp.SourceGenerators/SyntaxRewriters/ConstantPropertyRewriter.cs +++ b/src/ComputeSharp.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs @@ -14,18 +14,18 @@ using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; namespace ComputeSharp.SourceGenerators.SyntaxRewriters { /// - /// A custom type that processes C# static properties to convert to HLSL static constants. + /// A custom type that processes C# static field to convert to HLSL static fields (possibly constant). /// - internal sealed class ConstantPropertyRewriter : HlslSourceRewriter + internal sealed class StaticFieldRewriter : HlslSourceRewriter { /// - /// Creates a new instance with the specified parameters. + /// Creates a new instance with the specified parameters. /// /// The instance for the target syntax tree. /// The set of discovered custom types. /// The collection of discovered constant definitions. /// The current generator context in use. - public ConstantPropertyRewriter( + public StaticFieldRewriter( SemanticModel semanticModel, ICollection discoveredTypes, IDictionary constantDefinitions, @@ -35,22 +35,14 @@ namespace ComputeSharp.SourceGenerators.SyntaxRewriters } /// - public ExpressionSyntax? Visit(PropertyDeclarationSyntax? node) + public ExpressionSyntax? Visit(VariableDeclaratorSyntax? node) { - if (node!.ExpressionBody is null) + if (node?.Initializer is EqualsValueClauseSyntax fieldInitializer) { - Context.ReportDiagnostic( - InvalidShaderConstantPropertyDeclaration, - node, - SemanticModel.GetDeclaredSymbol(node.FirstAncestorOrSelf()!)!, - SemanticModel.GetDeclaredSymbol(node)!.Name); - - return null; + return ((EqualsValueClauseSyntax)Visit(fieldInitializer))!.Value; } - ArrowExpressionClauseSyntax? updatedNode = (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody)!; - - return updatedNode.Expression; + return null; } /// diff --git a/src/ComputeSharp/Core/Attributes/__Internals/IComputeShaderSourceAttribute.cs b/src/ComputeSharp/Core/Attributes/__Internals/IComputeShaderSourceAttribute.cs index 64f6bba7..221215a2 100644 --- a/src/ComputeSharp/Core/Attributes/__Internals/IComputeShaderSourceAttribute.cs +++ b/src/ComputeSharp/Core/Attributes/__Internals/IComputeShaderSourceAttribute.cs @@ -25,7 +25,7 @@ namespace ComputeSharp.__Internals /// The source code for the method. /// The collection of processed methods. /// The collection of discovered defines. - /// The collection of discovered constants. + /// The collection of discovered static fields. /// The collection of group shared buffers. public IComputeShaderSourceAttribute( Type shaderType, @@ -34,7 +34,7 @@ namespace ComputeSharp.__Internals string executeMethod, string[] methods, object[] defines, - object[] constants, + object[] staticFields, object[] sharedBuffers) { ShaderType = shaderType; @@ -43,7 +43,7 @@ namespace ComputeSharp.__Internals ExecuteMethod = executeMethod; Methods = methods; Defines = defines.Cast().ToDictionary(static c => c[0], static c => c[1]); - Constants = constants.Cast().ToDictionary(static arg => arg[0], static arg => (arg[1], arg[2])); + StaticFields = staticFields.Cast().ToDictionary(static arg => arg[0]!, static arg => (arg[1]!, arg[2])); SharedBuffers = sharedBuffers.Cast().ToDictionary(static t => (string)t[0], static t => ((string)t[1], (int?)t[2])); } @@ -78,9 +78,9 @@ namespace ComputeSharp.__Internals internal IReadOnlyDictionary Defines { get; } /// - /// Gets the collection of discovered constants. + /// Gets the collection of discovered static fields. /// - internal IReadOnlyDictionary Constants { get; } + internal IReadOnlyDictionary StaticFields { get; } /// /// Gets the collection of discovered shared buffers. diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.cs b/src/ComputeSharp/Core/Intrinsics/Hlsl.cs index 868a6f2b..a1b321f8 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.cs +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.cs @@ -14,6 +14,7 @@ namespace ComputeSharp /// A memory barrier guarantees that outstanding memory operations have completed. /// Threads are synchronized at GroupSync barriers. /// This may stall a thread or threads if memory operations are in progress. + /// This 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 void AllMemoryBarrier() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AllMemoryBarrier)}()"); @@ -24,27 +25,32 @@ namespace ComputeSharp /// A memory barrier guarantees that outstanding memory operations have completed. /// Threads are synchronized at GroupSync barriers. /// This may stall a thread or threads if memory operations are in progress. + /// This 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 void AllMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AllMemoryBarrierWithGroupSync)}()"); /// /// Blocks execution of all threads in a group until all device memory accesses have been completed. /// + /// This 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 void DeviceMemoryBarrier() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(DeviceMemoryBarrier)}()"); /// /// Blocks execution of all threads in a group until all device memory accesses have been completed and all threads in the group have reached this call. /// + /// This 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 void DeviceMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(DeviceMemoryBarrierWithGroupSync)}()"); /// /// Blocks execution of all threads in a group until all group shared accesses have been completed. /// + /// This 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 void GroupMemoryBarrier() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(GroupMemoryBarrier)}()"); /// /// Blocks execution of all threads in a group until all group shared accesses have been completed and all threads in the group have reached this call. /// + /// This 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 void GroupMemoryBarrierWithGroupSync() => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(GroupMemoryBarrierWithGroupSync)}()"); /// @@ -52,14 +58,16 @@ namespace ComputeSharp /// /// The destination value. /// The input value. - public static void InterlockedAdd(int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedAdd(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic add of a value to a destination. /// /// The destination value. /// The input value. - public static void InterlockedAdd(uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedAdd(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic add of a value to a destination. @@ -67,7 +75,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original input value. - public static void InterlockedAdd(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedAdd(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic add of a value to a destination. @@ -75,21 +84,24 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original input value. - public static void InterlockedAdd(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedAdd(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAdd)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic and of a value to a destination. /// /// The destination value. /// The input value. - public static void InterlockedAnd(int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedAnd(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic and of a value to a destination. /// /// The destination value. /// The input value. - public static void InterlockedAnd(uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedAnd(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic and of a value to a destination. @@ -97,7 +109,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original input value. - public static void InterlockedAnd(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedAnd(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic and of a value to a destination. @@ -105,7 +118,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original input value. - public static void InterlockedAnd(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedAnd(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedAnd)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Atomically compares the destination with the comparison value. If they are identical, the destination @@ -115,7 +129,8 @@ namespace ComputeSharp /// The comparison value. /// The input value. /// The original value. - public static void InterlockedCompareExchange(int destination, int comparison, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareExchange)}({typeof(int)}, {typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedCompareExchange(ref int destination, int comparison, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareExchange)}({typeof(int)}, {typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Atomically compares the destination with the comparison value. If they are identical, the destination @@ -125,7 +140,8 @@ namespace ComputeSharp /// The comparison value. /// The input value. /// The original value. - public static void InterlockedCompareExchange(uint destination, uint comparison, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareExchange)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedCompareExchange(ref uint destination, uint comparison, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareExchange)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Atomically compares the destination to the comparison value. If they @@ -134,7 +150,8 @@ namespace ComputeSharp /// The destination value. /// The comparison value. /// The input value. - public static void InterlockedCompareStore(int destination, int comparison, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareStore)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedCompareStore(ref int destination, int comparison, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareStore)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Atomically compares the destination to the comparison value. If they @@ -143,7 +160,8 @@ namespace ComputeSharp /// The destination value. /// The comparison value. /// The input value. - public static void InterlockedCompareStore(uint destination, uint comparison, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareStore)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedCompareStore(ref uint destination, uint comparison, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedCompareStore)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Assigns value to dest and returns the original value. @@ -151,7 +169,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedExchange(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedExchange)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedExchange(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedExchange)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Assigns value to dest and returns the original value. @@ -159,21 +178,24 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedExchange(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedExchange)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedExchange(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedExchange)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic max. /// /// The destination value. /// The input value. - public static void InterlockedMax(int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedMax(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic max. /// /// The destination value. /// The input value. - public static void InterlockedMax(uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedMax(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic max. @@ -181,7 +203,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedMax(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedMax(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic max. @@ -189,21 +212,24 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedMax(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedMax(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMax)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic min. /// /// The destination value. /// The input value. - public static void InterlockedMin(int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedMin(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic min. /// /// The destination value. /// The input value. - public static void InterlockedMin(uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedMin(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic min. @@ -211,7 +237,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedMin(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedMin(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic min. @@ -219,21 +246,24 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedMin(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedMin(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedMin)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic or. /// /// The destination value. /// The input value. - public static void InterlockedOr(int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedOr(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic or. /// /// The destination value. /// The input value. - public static void InterlockedOr(uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedOr(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic or. @@ -241,7 +271,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedOr(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedOr(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic or. @@ -249,21 +280,24 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedOr(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedOr(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedOr)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic xor. /// /// The destination value. /// The input value. - public static void InterlockedXor(int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedXor(ref int destination, int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic xor. /// /// The destination value. /// The input value. - public static void InterlockedXor(uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedXor(ref uint destination, uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)})"); /// /// Performs a guaranteed atomic xor. @@ -271,7 +305,8 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedXor(int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); + /// This 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 void InterlockedXor(ref int destination, int value, out int original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); /// /// Performs a guaranteed atomic xor. @@ -279,6 +314,7 @@ namespace ComputeSharp /// The destination value. /// The input value. /// The original value. - public static void InterlockedXor(uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); + /// This 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 void InterlockedXor(ref uint destination, uint value, out uint original) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(InterlockedXor)}({typeof(uint)}, {typeof(uint)}, {typeof(uint)})"); } } diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs index eb155fb4..4743c153 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs @@ -12,3461 +12,3461 @@ namespace ComputeSharp /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static int Abs(int x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(int)})"); - + public static int Abs(int x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int2 Abs(Int2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int2)})"); - + public static Int2 Abs(Int2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int3 Abs(Int3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int3)})"); - + public static Int3 Abs(Int3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int4 Abs(Int4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int4)})"); - + public static Int4 Abs(Int4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int1x1 Abs(Int1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int1x1)})"); - + public static Int1x1 Abs(Int1x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int1x2 Abs(Int1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int1x2)})"); - + public static Int1x2 Abs(Int1x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int1x3 Abs(Int1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int1x3)})"); - + public static Int1x3 Abs(Int1x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int1x4 Abs(Int1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int1x4)})"); - + public static Int1x4 Abs(Int1x4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int2x1 Abs(Int2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int2x1)})"); - + public static Int2x1 Abs(Int2x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int2x2 Abs(Int2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int2x2)})"); - + public static Int2x2 Abs(Int2x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int2x3 Abs(Int2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int2x3)})"); - + public static Int2x3 Abs(Int2x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int2x4 Abs(Int2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int2x4)})"); - + public static Int2x4 Abs(Int2x4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int3x1 Abs(Int3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int3x1)})"); - + public static Int3x1 Abs(Int3x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int3x2 Abs(Int3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int3x2)})"); - + public static Int3x2 Abs(Int3x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int3x3 Abs(Int3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int3x3)})"); - + public static Int3x3 Abs(Int3x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int3x4 Abs(Int3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int3x4)})"); - + public static Int3x4 Abs(Int3x4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int4x1 Abs(Int4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int4x1)})"); - + public static Int4x1 Abs(Int4x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int4x2 Abs(Int4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int4x2)})"); - + public static Int4x2 Abs(Int4x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int4x3 Abs(Int4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int4x3)})"); - + public static Int4x3 Abs(Int4x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Int4x4 Abs(Int4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Int4x4)})"); - + public static Int4x4 Abs(Int4x4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static float Abs(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(float)})"); - + public static float Abs(float x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float2 Abs(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float2)})"); - + public static Float2 Abs(Float2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float3 Abs(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float3)})"); - + public static Float3 Abs(Float3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float4 Abs(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float4)})"); - + public static Float4 Abs(Float4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float1x1 Abs(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float1x1)})"); - + public static Float1x1 Abs(Float1x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float1x2 Abs(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float1x2)})"); - + public static Float1x2 Abs(Float1x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float1x3 Abs(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float1x3)})"); - + public static Float1x3 Abs(Float1x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float1x4 Abs(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float1x4)})"); - + public static Float1x4 Abs(Float1x4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float2x1 Abs(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float2x1)})"); - + public static Float2x1 Abs(Float2x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float2x2 Abs(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float2x2)})"); - + public static Float2x2 Abs(Float2x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float2x3 Abs(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float2x3)})"); - + public static Float2x3 Abs(Float2x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float2x4 Abs(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float2x4)})"); - + public static Float2x4 Abs(Float2x4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float3x1 Abs(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float3x1)})"); - + public static Float3x1 Abs(Float3x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float3x2 Abs(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float3x2)})"); - + public static Float3x2 Abs(Float3x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float3x3 Abs(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float3x3)})"); - + public static Float3x3 Abs(Float3x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float3x4 Abs(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float3x4)})"); - + public static Float3x4 Abs(Float3x4 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float4x1 Abs(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float4x1)})"); - + public static Float4x1 Abs(Float4x1 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float4x2 Abs(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float4x2)})"); - + public static Float4x2 Abs(Float4x2 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float4x3 Abs(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float4x3)})"); - + public static Float4x3 Abs(Float4x3 x) => default; /// /// Returns the absolute value of the specified value. /// /// The specified value. /// The absolute value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("abs")] - public static Float4x4 Abs(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Abs)}({typeof(Float4x4)})"); - + public static Float4x4 Abs(Float4x4 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static float Acos(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(float)})"); - + public static float Acos(float x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float2 Acos(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float2)})"); - + public static Float2 Acos(Float2 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float3 Acos(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float3)})"); - + public static Float3 Acos(Float3 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float4 Acos(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float4)})"); - + public static Float4 Acos(Float4 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float1x1 Acos(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float1x1)})"); - + public static Float1x1 Acos(Float1x1 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float1x2 Acos(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float1x2)})"); - + public static Float1x2 Acos(Float1x2 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float1x3 Acos(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float1x3)})"); - + public static Float1x3 Acos(Float1x3 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float1x4 Acos(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float1x4)})"); - + public static Float1x4 Acos(Float1x4 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float2x1 Acos(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float2x1)})"); - + public static Float2x1 Acos(Float2x1 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float2x2 Acos(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float2x2)})"); - + public static Float2x2 Acos(Float2x2 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float2x3 Acos(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float2x3)})"); - + public static Float2x3 Acos(Float2x3 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float2x4 Acos(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float2x4)})"); - + public static Float2x4 Acos(Float2x4 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float3x1 Acos(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float3x1)})"); - + public static Float3x1 Acos(Float3x1 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float3x2 Acos(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float3x2)})"); - + public static Float3x2 Acos(Float3x2 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float3x3 Acos(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float3x3)})"); - + public static Float3x3 Acos(Float3x3 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float3x4 Acos(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float3x4)})"); - + public static Float3x4 Acos(Float3x4 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float4x1 Acos(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float4x1)})"); - + public static Float4x1 Acos(Float4x1 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float4x2 Acos(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float4x2)})"); - + public static Float4x2 Acos(Float4x2 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float4x3 Acos(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float4x3)})"); - + public static Float4x3 Acos(Float4x3 x) => default; /// /// Returns the arccosine of the specified value. /// /// The specified value. Each component should be a floating-point within the range [-1, 1]. /// The arccosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("acos")] - public static Float4x4 Acos(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Acos)}({typeof(Float4x4)})"); - + public static Float4x4 Acos(Float4x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(int x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(int)})"); - + public static bool All(int x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int2)})"); - + public static bool All(Int2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int3)})"); - + public static bool All(Int3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int4)})"); - + public static bool All(Int4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int1x1)})"); - + public static bool All(Int1x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int1x2)})"); - + public static bool All(Int1x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int1x3)})"); - + public static bool All(Int1x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int1x4)})"); - + public static bool All(Int1x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int2x1)})"); - + public static bool All(Int2x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int2x2)})"); - + public static bool All(Int2x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int2x3)})"); - + public static bool All(Int2x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int2x4)})"); - + public static bool All(Int2x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int3x1)})"); - + public static bool All(Int3x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int3x2)})"); - + public static bool All(Int3x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int3x3)})"); - + public static bool All(Int3x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int3x4)})"); - + public static bool All(Int3x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int4x1)})"); - + public static bool All(Int4x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int4x2)})"); - + public static bool All(Int4x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int4x3)})"); - + public static bool All(Int4x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Int4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Int4x4)})"); - + public static bool All(Int4x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(float)})"); - + public static bool All(float x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float2)})"); - + public static bool All(Float2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float3)})"); - + public static bool All(Float3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float4)})"); - + public static bool All(Float4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float1x1)})"); - + public static bool All(Float1x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float1x2)})"); - + public static bool All(Float1x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float1x3)})"); - + public static bool All(Float1x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float1x4)})"); - + public static bool All(Float1x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float2x1)})"); - + public static bool All(Float2x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float2x2)})"); - + public static bool All(Float2x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float2x3)})"); - + public static bool All(Float2x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float2x4)})"); - + public static bool All(Float2x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float3x1)})"); - + public static bool All(Float3x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float3x2)})"); - + public static bool All(Float3x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float3x3)})"); - + public static bool All(Float3x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float3x4)})"); - + public static bool All(Float3x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float4x1)})"); - + public static bool All(Float4x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float4x2)})"); - + public static bool All(Float4x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float4x3)})"); - + public static bool All(Float4x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Float4x4)})"); - + public static bool All(Float4x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(bool x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(bool)})"); - + public static bool All(bool x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool2)})"); - + public static bool All(Bool2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool3)})"); - + public static bool All(Bool3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool4)})"); - + public static bool All(Bool4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool1x1)})"); - + public static bool All(Bool1x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool1x2)})"); - + public static bool All(Bool1x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool1x3)})"); - + public static bool All(Bool1x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool1x4)})"); - + public static bool All(Bool1x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool2x1)})"); - + public static bool All(Bool2x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool2x2)})"); - + public static bool All(Bool2x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool2x3)})"); - + public static bool All(Bool2x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool2x4)})"); - + public static bool All(Bool2x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool3x1)})"); - + public static bool All(Bool3x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool3x2)})"); - + public static bool All(Bool3x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool3x3)})"); - + public static bool All(Bool3x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool3x4)})"); - + public static bool All(Bool3x4 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool4x1)})"); - + public static bool All(Bool4x1 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool4x2)})"); - + public static bool All(Bool4x2 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool4x3)})"); - + public static bool All(Bool4x3 x) => default; /// /// Determines if all components of the specified value are non-zero. /// /// The specified value. /// Whether or not all components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("all")] - public static bool All(Bool4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(All)}({typeof(Bool4x4)})"); - + public static bool All(Bool4x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(int x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(int)})"); - + public static bool Any(int x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int2)})"); - + public static bool Any(Int2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int3)})"); - + public static bool Any(Int3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int4)})"); - + public static bool Any(Int4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int1x1)})"); - + public static bool Any(Int1x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int1x2)})"); - + public static bool Any(Int1x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int1x3)})"); - + public static bool Any(Int1x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int1x4)})"); - + public static bool Any(Int1x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int2x1)})"); - + public static bool Any(Int2x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int2x2)})"); - + public static bool Any(Int2x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int2x3)})"); - + public static bool Any(Int2x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int2x4)})"); - + public static bool Any(Int2x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int3x1)})"); - + public static bool Any(Int3x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int3x2)})"); - + public static bool Any(Int3x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int3x3)})"); - + public static bool Any(Int3x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int3x4)})"); - + public static bool Any(Int3x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int4x1)})"); - + public static bool Any(Int4x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int4x2)})"); - + public static bool Any(Int4x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int4x3)})"); - + public static bool Any(Int4x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Int4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Int4x4)})"); - + public static bool Any(Int4x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(float)})"); - + public static bool Any(float x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float2)})"); - + public static bool Any(Float2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float3)})"); - + public static bool Any(Float3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float4)})"); - + public static bool Any(Float4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float1x1)})"); - + public static bool Any(Float1x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float1x2)})"); - + public static bool Any(Float1x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float1x3)})"); - + public static bool Any(Float1x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float1x4)})"); - + public static bool Any(Float1x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float2x1)})"); - + public static bool Any(Float2x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float2x2)})"); - + public static bool Any(Float2x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float2x3)})"); - + public static bool Any(Float2x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float2x4)})"); - + public static bool Any(Float2x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float3x1)})"); - + public static bool Any(Float3x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float3x2)})"); - + public static bool Any(Float3x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float3x3)})"); - + public static bool Any(Float3x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float3x4)})"); - + public static bool Any(Float3x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float4x1)})"); - + public static bool Any(Float4x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float4x2)})"); - + public static bool Any(Float4x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float4x3)})"); - + public static bool Any(Float4x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Float4x4)})"); - + public static bool Any(Float4x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(bool x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(bool)})"); - + public static bool Any(bool x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool2)})"); - + public static bool Any(Bool2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool3)})"); - + public static bool Any(Bool3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool4)})"); - + public static bool Any(Bool4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool1x1)})"); - + public static bool Any(Bool1x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool1x2)})"); - + public static bool Any(Bool1x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool1x3)})"); - + public static bool Any(Bool1x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool1x4)})"); - + public static bool Any(Bool1x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool2x1)})"); - + public static bool Any(Bool2x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool2x2)})"); - + public static bool Any(Bool2x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool2x3)})"); - + public static bool Any(Bool2x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool2x4)})"); - + public static bool Any(Bool2x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool3x1)})"); - + public static bool Any(Bool3x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool3x2)})"); - + public static bool Any(Bool3x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool3x3)})"); - + public static bool Any(Bool3x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool3x4)})"); - + public static bool Any(Bool3x4 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool4x1)})"); - + public static bool Any(Bool4x1 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool4x2)})"); - + public static bool Any(Bool4x2 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool4x3)})"); - + public static bool Any(Bool4x3 x) => default; /// /// Determines if any components of the specified value are non-zero. /// /// The specified value. /// Whether or not any components of the parameter are non-zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("any")] - public static bool Any(Bool4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Any)}({typeof(Bool4x4)})"); - + public static bool Any(Bool4x4 x) => default; /// /// Reinterprets a cast value (two 32-bit values) into a double precision floating-point value. /// /// The low 32-bit pattern of the input value. /// The high 32-bit pattern of the input value. /// The input (two 32-bit values) recast as a double precision floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asdouble")] - public static double AsDouble(uint lowbits, uint highbits) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsDouble)}({typeof(uint)}, {typeof(uint)})"); - + public static double AsDouble(uint lowbits, uint highbits) => default; /// /// Reinterprets a cast value (two 32-bit values) into a double precision floating-point value. /// /// The low 32-bit pattern of the input value. /// The high 32-bit pattern of the input value. /// The input (two 32-bit values) recast as a double precision floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asdouble")] - public static Double2 AsDouble(UInt2 lowbits, UInt2 highbits) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsDouble)}({typeof(UInt2)}, {typeof(UInt2)})"); - + public static Double2 AsDouble(UInt2 lowbits, UInt2 highbits) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static float AsFloat(int x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(int)})"); - + public static float AsFloat(int x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2 AsFloat(Int2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int2)})"); - + public static Float2 AsFloat(Int2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3 AsFloat(Int3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int3)})"); - + public static Float3 AsFloat(Int3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4 AsFloat(Int4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int4)})"); - + public static Float4 AsFloat(Int4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x1 AsFloat(Int1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int1x1)})"); - + public static Float1x1 AsFloat(Int1x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x2 AsFloat(Int1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int1x2)})"); - + public static Float1x2 AsFloat(Int1x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x3 AsFloat(Int1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int1x3)})"); - + public static Float1x3 AsFloat(Int1x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x4 AsFloat(Int1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int1x4)})"); - + public static Float1x4 AsFloat(Int1x4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x1 AsFloat(Int2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int2x1)})"); - + public static Float2x1 AsFloat(Int2x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x2 AsFloat(Int2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int2x2)})"); - + public static Float2x2 AsFloat(Int2x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x3 AsFloat(Int2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int2x3)})"); - + public static Float2x3 AsFloat(Int2x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x4 AsFloat(Int2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int2x4)})"); - + public static Float2x4 AsFloat(Int2x4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x1 AsFloat(Int3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int3x1)})"); - + public static Float3x1 AsFloat(Int3x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x2 AsFloat(Int3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int3x2)})"); - + public static Float3x2 AsFloat(Int3x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x3 AsFloat(Int3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int3x3)})"); - + public static Float3x3 AsFloat(Int3x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x4 AsFloat(Int3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int3x4)})"); - + public static Float3x4 AsFloat(Int3x4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x1 AsFloat(Int4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int4x1)})"); - + public static Float4x1 AsFloat(Int4x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x2 AsFloat(Int4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int4x2)})"); - + public static Float4x2 AsFloat(Int4x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x3 AsFloat(Int4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int4x3)})"); - + public static Float4x3 AsFloat(Int4x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x4 AsFloat(Int4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(Int4x4)})"); - + public static Float4x4 AsFloat(Int4x4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static float AsFloat(uint x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(uint)})"); - + public static float AsFloat(uint x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2 AsFloat(UInt2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt2)})"); - + public static Float2 AsFloat(UInt2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3 AsFloat(UInt3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt3)})"); - + public static Float3 AsFloat(UInt3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4 AsFloat(UInt4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt4)})"); - + public static Float4 AsFloat(UInt4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x1 AsFloat(UInt1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt1x1)})"); - + public static Float1x1 AsFloat(UInt1x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x2 AsFloat(UInt1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt1x2)})"); - + public static Float1x2 AsFloat(UInt1x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x3 AsFloat(UInt1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt1x3)})"); - + public static Float1x3 AsFloat(UInt1x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float1x4 AsFloat(UInt1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt1x4)})"); - + public static Float1x4 AsFloat(UInt1x4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x1 AsFloat(UInt2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt2x1)})"); - + public static Float2x1 AsFloat(UInt2x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x2 AsFloat(UInt2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt2x2)})"); - + public static Float2x2 AsFloat(UInt2x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x3 AsFloat(UInt2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt2x3)})"); - + public static Float2x3 AsFloat(UInt2x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float2x4 AsFloat(UInt2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt2x4)})"); - + public static Float2x4 AsFloat(UInt2x4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x1 AsFloat(UInt3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt3x1)})"); - + public static Float3x1 AsFloat(UInt3x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x2 AsFloat(UInt3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt3x2)})"); - + public static Float3x2 AsFloat(UInt3x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x3 AsFloat(UInt3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt3x3)})"); - + public static Float3x3 AsFloat(UInt3x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float3x4 AsFloat(UInt3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt3x4)})"); - + public static Float3x4 AsFloat(UInt3x4 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x1 AsFloat(UInt4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt4x1)})"); - + public static Float4x1 AsFloat(UInt4x1 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x2 AsFloat(UInt4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt4x2)})"); - + public static Float4x2 AsFloat(UInt4x2 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x3 AsFloat(UInt4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt4x3)})"); - + public static Float4x3 AsFloat(UInt4x3 x) => default; /// /// Interprets the bit pattern of an input value as a floating-point number. /// /// The input value. /// The input interpreted as a floating-point number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asfloat")] - public static Float4x4 AsFloat(UInt4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsFloat)}({typeof(UInt4x4)})"); - + public static Float4x4 AsFloat(UInt4x4 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static float Asin(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(float)})"); - + public static float Asin(float x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float2 Asin(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float2)})"); - + public static Float2 Asin(Float2 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float3 Asin(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float3)})"); - + public static Float3 Asin(Float3 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float4 Asin(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float4)})"); - + public static Float4 Asin(Float4 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float1x1 Asin(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float1x1)})"); - + public static Float1x1 Asin(Float1x1 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float1x2 Asin(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float1x2)})"); - + public static Float1x2 Asin(Float1x2 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float1x3 Asin(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float1x3)})"); - + public static Float1x3 Asin(Float1x3 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float1x4 Asin(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float1x4)})"); - + public static Float1x4 Asin(Float1x4 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float2x1 Asin(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float2x1)})"); - + public static Float2x1 Asin(Float2x1 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float2x2 Asin(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float2x2)})"); - + public static Float2x2 Asin(Float2x2 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float2x3 Asin(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float2x3)})"); - + public static Float2x3 Asin(Float2x3 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float2x4 Asin(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float2x4)})"); - + public static Float2x4 Asin(Float2x4 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float3x1 Asin(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float3x1)})"); - + public static Float3x1 Asin(Float3x1 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float3x2 Asin(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float3x2)})"); - + public static Float3x2 Asin(Float3x2 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float3x3 Asin(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float3x3)})"); - + public static Float3x3 Asin(Float3x3 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float3x4 Asin(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float3x4)})"); - + public static Float3x4 Asin(Float3x4 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float4x1 Asin(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float4x1)})"); - + public static Float4x1 Asin(Float4x1 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float4x2 Asin(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float4x2)})"); - + public static Float4x2 Asin(Float4x2 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float4x3 Asin(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float4x3)})"); - + public static Float4x3 Asin(Float4x3 x) => default; /// /// Returns the arcsine of the specified value. /// /// The specified value. /// The arcsine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asin")] - public static Float4x4 Asin(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Asin)}({typeof(Float4x4)})"); - + public static Float4x4 Asin(Float4x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static int AsInt(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(float)})"); - + public static int AsInt(float x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2 AsInt(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float2)})"); - + public static Int2 AsInt(Float2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3 AsInt(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float3)})"); - + public static Int3 AsInt(Float3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4 AsInt(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float4)})"); - + public static Int4 AsInt(Float4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x1 AsInt(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float1x1)})"); - + public static Int1x1 AsInt(Float1x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x2 AsInt(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float1x2)})"); - + public static Int1x2 AsInt(Float1x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x3 AsInt(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float1x3)})"); - + public static Int1x3 AsInt(Float1x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x4 AsInt(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float1x4)})"); - + public static Int1x4 AsInt(Float1x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x1 AsInt(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float2x1)})"); - + public static Int2x1 AsInt(Float2x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x2 AsInt(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float2x2)})"); - + public static Int2x2 AsInt(Float2x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x3 AsInt(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float2x3)})"); - + public static Int2x3 AsInt(Float2x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x4 AsInt(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float2x4)})"); - + public static Int2x4 AsInt(Float2x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x1 AsInt(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float3x1)})"); - + public static Int3x1 AsInt(Float3x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x2 AsInt(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float3x2)})"); - + public static Int3x2 AsInt(Float3x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x3 AsInt(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float3x3)})"); - + public static Int3x3 AsInt(Float3x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x4 AsInt(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float3x4)})"); - + public static Int3x4 AsInt(Float3x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x1 AsInt(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float4x1)})"); - + public static Int4x1 AsInt(Float4x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x2 AsInt(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float4x2)})"); - + public static Int4x2 AsInt(Float4x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x3 AsInt(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float4x3)})"); - + public static Int4x3 AsInt(Float4x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x4 AsInt(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(Float4x4)})"); - + public static Int4x4 AsInt(Float4x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static int AsInt(uint x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(uint)})"); - + public static int AsInt(uint x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2 AsInt(UInt2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt2)})"); - + public static Int2 AsInt(UInt2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3 AsInt(UInt3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt3)})"); - + public static Int3 AsInt(UInt3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4 AsInt(UInt4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt4)})"); - + public static Int4 AsInt(UInt4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x1 AsInt(UInt1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt1x1)})"); - + public static Int1x1 AsInt(UInt1x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x2 AsInt(UInt1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt1x2)})"); - + public static Int1x2 AsInt(UInt1x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x3 AsInt(UInt1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt1x3)})"); - + public static Int1x3 AsInt(UInt1x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int1x4 AsInt(UInt1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt1x4)})"); - + public static Int1x4 AsInt(UInt1x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x1 AsInt(UInt2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt2x1)})"); - + public static Int2x1 AsInt(UInt2x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x2 AsInt(UInt2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt2x2)})"); - + public static Int2x2 AsInt(UInt2x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x3 AsInt(UInt2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt2x3)})"); - + public static Int2x3 AsInt(UInt2x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int2x4 AsInt(UInt2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt2x4)})"); - + public static Int2x4 AsInt(UInt2x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x1 AsInt(UInt3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt3x1)})"); - + public static Int3x1 AsInt(UInt3x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x2 AsInt(UInt3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt3x2)})"); - + public static Int3x2 AsInt(UInt3x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x3 AsInt(UInt3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt3x3)})"); - + public static Int3x3 AsInt(UInt3x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int3x4 AsInt(UInt3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt3x4)})"); - + public static Int3x4 AsInt(UInt3x4 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x1 AsInt(UInt4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt4x1)})"); - + public static Int4x1 AsInt(UInt4x1 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x2 AsInt(UInt4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt4x2)})"); - + public static Int4x2 AsInt(UInt4x2 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x3 AsInt(UInt4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt4x3)})"); - + public static Int4x3 AsInt(UInt4x3 x) => default; /// /// Interprets the bit pattern of an input value as an integer number. /// /// The input value. /// The input interpreted as an integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asint")] - public static Int4x4 AsInt(UInt4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsInt)}({typeof(UInt4x4)})"); - + public static Int4x4 AsInt(UInt4x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static uint AsUInt(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(float)})"); - + public static uint AsUInt(float x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2 AsUInt(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float2)})"); - + public static UInt2 AsUInt(Float2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3 AsUInt(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float3)})"); - + public static UInt3 AsUInt(Float3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4 AsUInt(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float4)})"); - + public static UInt4 AsUInt(Float4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x1 AsUInt(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float1x1)})"); - + public static UInt1x1 AsUInt(Float1x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x2 AsUInt(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float1x2)})"); - + public static UInt1x2 AsUInt(Float1x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x3 AsUInt(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float1x3)})"); - + public static UInt1x3 AsUInt(Float1x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x4 AsUInt(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float1x4)})"); - + public static UInt1x4 AsUInt(Float1x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x1 AsUInt(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float2x1)})"); - + public static UInt2x1 AsUInt(Float2x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x2 AsUInt(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float2x2)})"); - + public static UInt2x2 AsUInt(Float2x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x3 AsUInt(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float2x3)})"); - + public static UInt2x3 AsUInt(Float2x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x4 AsUInt(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float2x4)})"); - + public static UInt2x4 AsUInt(Float2x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x1 AsUInt(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float3x1)})"); - + public static UInt3x1 AsUInt(Float3x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x2 AsUInt(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float3x2)})"); - + public static UInt3x2 AsUInt(Float3x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x3 AsUInt(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float3x3)})"); - + public static UInt3x3 AsUInt(Float3x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x4 AsUInt(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float3x4)})"); - + public static UInt3x4 AsUInt(Float3x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x1 AsUInt(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float4x1)})"); - + public static UInt4x1 AsUInt(Float4x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x2 AsUInt(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float4x2)})"); - + public static UInt4x2 AsUInt(Float4x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x3 AsUInt(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float4x3)})"); - + public static UInt4x3 AsUInt(Float4x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x4 AsUInt(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Float4x4)})"); - + public static UInt4x4 AsUInt(Float4x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static uint AsUInt(int x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(int)})"); - + public static uint AsUInt(int x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2 AsUInt(Int2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int2)})"); - + public static UInt2 AsUInt(Int2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3 AsUInt(Int3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int3)})"); - + public static UInt3 AsUInt(Int3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4 AsUInt(Int4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int4)})"); - + public static UInt4 AsUInt(Int4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x1 AsUInt(Int1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int1x1)})"); - + public static UInt1x1 AsUInt(Int1x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x2 AsUInt(Int1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int1x2)})"); - + public static UInt1x2 AsUInt(Int1x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x3 AsUInt(Int1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int1x3)})"); - + public static UInt1x3 AsUInt(Int1x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt1x4 AsUInt(Int1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int1x4)})"); - + public static UInt1x4 AsUInt(Int1x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x1 AsUInt(Int2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int2x1)})"); - + public static UInt2x1 AsUInt(Int2x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x2 AsUInt(Int2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int2x2)})"); - + public static UInt2x2 AsUInt(Int2x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x3 AsUInt(Int2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int2x3)})"); - + public static UInt2x3 AsUInt(Int2x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt2x4 AsUInt(Int2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int2x4)})"); - + public static UInt2x4 AsUInt(Int2x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x1 AsUInt(Int3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int3x1)})"); - + public static UInt3x1 AsUInt(Int3x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x2 AsUInt(Int3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int3x2)})"); - + public static UInt3x2 AsUInt(Int3x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x3 AsUInt(Int3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int3x3)})"); - + public static UInt3x3 AsUInt(Int3x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt3x4 AsUInt(Int3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int3x4)})"); - + public static UInt3x4 AsUInt(Int3x4 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x1 AsUInt(Int4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int4x1)})"); - + public static UInt4x1 AsUInt(Int4x1 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x2 AsUInt(Int4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int4x2)})"); - + public static UInt4x2 AsUInt(Int4x2 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x3 AsUInt(Int4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int4x3)})"); - + public static UInt4x3 AsUInt(Int4x3 x) => default; /// /// Interprets the bit pattern of an input value as an unsigned integer number. /// /// The input value. /// The input interpreted as an unsigned integer number. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("asuint")] - public static UInt4x4 AsUInt(Int4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(AsUInt)}({typeof(Int4x4)})"); - + public static UInt4x4 AsUInt(Int4x4 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static float Atan(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(float)})"); - + public static float Atan(float x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float2 Atan(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float2)})"); - + public static Float2 Atan(Float2 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float3 Atan(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float3)})"); - + public static Float3 Atan(Float3 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float4 Atan(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float4)})"); - + public static Float4 Atan(Float4 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float1x1 Atan(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float1x1)})"); - + public static Float1x1 Atan(Float1x1 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float1x2 Atan(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float1x2)})"); - + public static Float1x2 Atan(Float1x2 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float1x3 Atan(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float1x3)})"); - + public static Float1x3 Atan(Float1x3 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float1x4 Atan(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float1x4)})"); - + public static Float1x4 Atan(Float1x4 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float2x1 Atan(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float2x1)})"); - + public static Float2x1 Atan(Float2x1 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float2x2 Atan(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float2x2)})"); - + public static Float2x2 Atan(Float2x2 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float2x3 Atan(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float2x3)})"); - + public static Float2x3 Atan(Float2x3 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float2x4 Atan(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float2x4)})"); - + public static Float2x4 Atan(Float2x4 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float3x1 Atan(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float3x1)})"); - + public static Float3x1 Atan(Float3x1 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float3x2 Atan(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float3x2)})"); - + public static Float3x2 Atan(Float3x2 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float3x3 Atan(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float3x3)})"); - + public static Float3x3 Atan(Float3x3 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float3x4 Atan(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float3x4)})"); - + public static Float3x4 Atan(Float3x4 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float4x1 Atan(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float4x1)})"); - + public static Float4x1 Atan(Float4x1 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float4x2 Atan(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float4x2)})"); - + public static Float4x2 Atan(Float4x2 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float4x3 Atan(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float4x3)})"); - + public static Float4x3 Atan(Float4x3 x) => default; /// /// Returns the arctangent of the specified value. /// /// The specified value. /// The arctangent of the parameter. This value is within the range [-π/2, π/2]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan")] - public static Float4x4 Atan(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan)}({typeof(Float4x4)})"); - + public static Float4x4 Atan(Float4x4 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static float Atan2(float y, float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(float)}, {typeof(float)})"); - + public static float Atan2(float y, float x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float2 Atan2(Float2 y, Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Atan2(Float2 y, Float2 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float3 Atan2(Float3 y, Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Atan2(Float3 y, Float3 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float4 Atan2(Float4 y, Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Atan2(Float4 y, Float4 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float1x1 Atan2(Float1x1 y, Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Atan2(Float1x1 y, Float1x1 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float1x2 Atan2(Float1x2 y, Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Atan2(Float1x2 y, Float1x2 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float1x3 Atan2(Float1x3 y, Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Atan2(Float1x3 y, Float1x3 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float1x4 Atan2(Float1x4 y, Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Atan2(Float1x4 y, Float1x4 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float2x1 Atan2(Float2x1 y, Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Atan2(Float2x1 y, Float2x1 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float2x2 Atan2(Float2x2 y, Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Atan2(Float2x2 y, Float2x2 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float2x3 Atan2(Float2x3 y, Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Atan2(Float2x3 y, Float2x3 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float2x4 Atan2(Float2x4 y, Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Atan2(Float2x4 y, Float2x4 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float3x1 Atan2(Float3x1 y, Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Atan2(Float3x1 y, Float3x1 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float3x2 Atan2(Float3x2 y, Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Atan2(Float3x2 y, Float3x2 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float3x3 Atan2(Float3x3 y, Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Atan2(Float3x3 y, Float3x3 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float3x4 Atan2(Float3x4 y, Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Atan2(Float3x4 y, Float3x4 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float4x1 Atan2(Float4x1 y, Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Atan2(Float4x1 y, Float4x1 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float4x2 Atan2(Float4x2 y, Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Atan2(Float4x2 y, Float4x2 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float4x3 Atan2(Float4x3 y, Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Atan2(Float4x3 y, Float4x3 x) => default; /// /// Returns the arctangent of two values (y, x). /// /// The y value. /// The x value. /// The arctangent of (, ). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("atan2")] - public static Float4x4 Atan2(Float4x4 y, Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Atan2)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Atan2(Float4x4 y, Float4x4 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static float Ceil(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(float)})"); - + public static float Ceil(float x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float2 Ceil(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float2)})"); - + public static Float2 Ceil(Float2 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float3 Ceil(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float3)})"); - + public static Float3 Ceil(Float3 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float4 Ceil(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float4)})"); - + public static Float4 Ceil(Float4 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float1x1 Ceil(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float1x1)})"); - + public static Float1x1 Ceil(Float1x1 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float1x2 Ceil(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float1x2)})"); - + public static Float1x2 Ceil(Float1x2 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float1x3 Ceil(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float1x3)})"); - + public static Float1x3 Ceil(Float1x3 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float1x4 Ceil(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float1x4)})"); - + public static Float1x4 Ceil(Float1x4 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float2x1 Ceil(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float2x1)})"); - + public static Float2x1 Ceil(Float2x1 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float2x2 Ceil(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float2x2)})"); - + public static Float2x2 Ceil(Float2x2 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float2x3 Ceil(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float2x3)})"); - + public static Float2x3 Ceil(Float2x3 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float2x4 Ceil(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float2x4)})"); - + public static Float2x4 Ceil(Float2x4 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float3x1 Ceil(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float3x1)})"); - + public static Float3x1 Ceil(Float3x1 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float3x2 Ceil(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float3x2)})"); - + public static Float3x2 Ceil(Float3x2 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float3x3 Ceil(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float3x3)})"); - + public static Float3x3 Ceil(Float3x3 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float3x4 Ceil(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float3x4)})"); - + public static Float3x4 Ceil(Float3x4 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float4x1 Ceil(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float4x1)})"); - + public static Float4x1 Ceil(Float4x1 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float4x2 Ceil(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float4x2)})"); - + public static Float4x2 Ceil(Float4x2 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float4x3 Ceil(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float4x3)})"); - + public static Float4x3 Ceil(Float4x3 x) => default; /// /// Returns the smallest integer value that is greater than or equal to the specified value. /// /// The specified value. /// The smallest integer value (returned as a floating-point type) that is greater than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ceil")] - public static Float4x4 Ceil(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ceil)}({typeof(Float4x4)})"); - + public static Float4x4 Ceil(Float4x4 x) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3474,10 +3474,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static float Clamp(float x, float min, float max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(float)}, {typeof(float)}, {typeof(float)})"); - + public static float Clamp(float x, float min, float max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3485,10 +3485,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float2 Clamp(Float2 x, Float2 min, Float2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float2)}, {typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Clamp(Float2 x, Float2 min, Float2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3496,10 +3496,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float3 Clamp(Float3 x, Float3 min, Float3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float3)}, {typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Clamp(Float3 x, Float3 min, Float3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3507,10 +3507,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float4 Clamp(Float4 x, Float4 min, Float4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float4)}, {typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Clamp(Float4 x, Float4 min, Float4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3518,10 +3518,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float1x1 Clamp(Float1x1 x, Float1x1 min, Float1x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float1x1)}, {typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Clamp(Float1x1 x, Float1x1 min, Float1x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3529,10 +3529,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float1x2 Clamp(Float1x2 x, Float1x2 min, Float1x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float1x2)}, {typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Clamp(Float1x2 x, Float1x2 min, Float1x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3540,10 +3540,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float1x3 Clamp(Float1x3 x, Float1x3 min, Float1x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float1x3)}, {typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Clamp(Float1x3 x, Float1x3 min, Float1x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3551,10 +3551,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float1x4 Clamp(Float1x4 x, Float1x4 min, Float1x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float1x4)}, {typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Clamp(Float1x4 x, Float1x4 min, Float1x4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3562,10 +3562,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float2x1 Clamp(Float2x1 x, Float2x1 min, Float2x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float2x1)}, {typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Clamp(Float2x1 x, Float2x1 min, Float2x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3573,10 +3573,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float2x2 Clamp(Float2x2 x, Float2x2 min, Float2x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float2x2)}, {typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Clamp(Float2x2 x, Float2x2 min, Float2x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3584,10 +3584,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float2x3 Clamp(Float2x3 x, Float2x3 min, Float2x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float2x3)}, {typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Clamp(Float2x3 x, Float2x3 min, Float2x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3595,10 +3595,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float2x4 Clamp(Float2x4 x, Float2x4 min, Float2x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float2x4)}, {typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Clamp(Float2x4 x, Float2x4 min, Float2x4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3606,10 +3606,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float3x1 Clamp(Float3x1 x, Float3x1 min, Float3x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float3x1)}, {typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Clamp(Float3x1 x, Float3x1 min, Float3x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3617,10 +3617,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float3x2 Clamp(Float3x2 x, Float3x2 min, Float3x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float3x2)}, {typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Clamp(Float3x2 x, Float3x2 min, Float3x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3628,10 +3628,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float3x3 Clamp(Float3x3 x, Float3x3 min, Float3x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float3x3)}, {typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Clamp(Float3x3 x, Float3x3 min, Float3x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3639,10 +3639,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float3x4 Clamp(Float3x4 x, Float3x4 min, Float3x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float3x4)}, {typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Clamp(Float3x4 x, Float3x4 min, Float3x4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3650,10 +3650,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float4x1 Clamp(Float4x1 x, Float4x1 min, Float4x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float4x1)}, {typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Clamp(Float4x1 x, Float4x1 min, Float4x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3661,10 +3661,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float4x2 Clamp(Float4x2 x, Float4x2 min, Float4x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float4x2)}, {typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Clamp(Float4x2 x, Float4x2 min, Float4x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3672,10 +3672,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float4x3 Clamp(Float4x3 x, Float4x3 min, Float4x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float4x3)}, {typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Clamp(Float4x3 x, Float4x3 min, Float4x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3683,10 +3683,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Float4x4 Clamp(Float4x4 x, Float4x4 min, Float4x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Float4x4)}, {typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Clamp(Float4x4 x, Float4x4 min, Float4x4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3694,10 +3694,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static int Clamp(int x, int min, int max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(int)}, {typeof(int)}, {typeof(int)})"); - + public static int Clamp(int x, int min, int max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3705,10 +3705,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int2 Clamp(Int2 x, Int2 min, Int2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int2)}, {typeof(Int2)}, {typeof(Int2)})"); - + public static Int2 Clamp(Int2 x, Int2 min, Int2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3716,10 +3716,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int3 Clamp(Int3 x, Int3 min, Int3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int3)}, {typeof(Int3)}, {typeof(Int3)})"); - + public static Int3 Clamp(Int3 x, Int3 min, Int3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3727,10 +3727,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int4 Clamp(Int4 x, Int4 min, Int4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int4)}, {typeof(Int4)}, {typeof(Int4)})"); - + public static Int4 Clamp(Int4 x, Int4 min, Int4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3738,10 +3738,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int1x1 Clamp(Int1x1 x, Int1x1 min, Int1x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int1x1)}, {typeof(Int1x1)}, {typeof(Int1x1)})"); - + public static Int1x1 Clamp(Int1x1 x, Int1x1 min, Int1x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3749,10 +3749,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int1x2 Clamp(Int1x2 x, Int1x2 min, Int1x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int1x2)}, {typeof(Int1x2)}, {typeof(Int1x2)})"); - + public static Int1x2 Clamp(Int1x2 x, Int1x2 min, Int1x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3760,10 +3760,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int1x3 Clamp(Int1x3 x, Int1x3 min, Int1x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int1x3)}, {typeof(Int1x3)}, {typeof(Int1x3)})"); - + public static Int1x3 Clamp(Int1x3 x, Int1x3 min, Int1x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3771,10 +3771,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int1x4 Clamp(Int1x4 x, Int1x4 min, Int1x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int1x4)}, {typeof(Int1x4)}, {typeof(Int1x4)})"); - + public static Int1x4 Clamp(Int1x4 x, Int1x4 min, Int1x4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3782,10 +3782,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int2x1 Clamp(Int2x1 x, Int2x1 min, Int2x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int2x1)}, {typeof(Int2x1)}, {typeof(Int2x1)})"); - + public static Int2x1 Clamp(Int2x1 x, Int2x1 min, Int2x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3793,10 +3793,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int2x2 Clamp(Int2x2 x, Int2x2 min, Int2x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int2x2)}, {typeof(Int2x2)}, {typeof(Int2x2)})"); - + public static Int2x2 Clamp(Int2x2 x, Int2x2 min, Int2x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3804,10 +3804,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int2x3 Clamp(Int2x3 x, Int2x3 min, Int2x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int2x3)}, {typeof(Int2x3)}, {typeof(Int2x3)})"); - + public static Int2x3 Clamp(Int2x3 x, Int2x3 min, Int2x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3815,10 +3815,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int2x4 Clamp(Int2x4 x, Int2x4 min, Int2x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int2x4)}, {typeof(Int2x4)}, {typeof(Int2x4)})"); - + public static Int2x4 Clamp(Int2x4 x, Int2x4 min, Int2x4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3826,10 +3826,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int3x1 Clamp(Int3x1 x, Int3x1 min, Int3x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int3x1)}, {typeof(Int3x1)}, {typeof(Int3x1)})"); - + public static Int3x1 Clamp(Int3x1 x, Int3x1 min, Int3x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3837,10 +3837,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int3x2 Clamp(Int3x2 x, Int3x2 min, Int3x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int3x2)}, {typeof(Int3x2)}, {typeof(Int3x2)})"); - + public static Int3x2 Clamp(Int3x2 x, Int3x2 min, Int3x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3848,10 +3848,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int3x3 Clamp(Int3x3 x, Int3x3 min, Int3x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int3x3)}, {typeof(Int3x3)}, {typeof(Int3x3)})"); - + public static Int3x3 Clamp(Int3x3 x, Int3x3 min, Int3x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3859,10 +3859,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int3x4 Clamp(Int3x4 x, Int3x4 min, Int3x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int3x4)}, {typeof(Int3x4)}, {typeof(Int3x4)})"); - + public static Int3x4 Clamp(Int3x4 x, Int3x4 min, Int3x4 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3870,10 +3870,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int4x1 Clamp(Int4x1 x, Int4x1 min, Int4x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int4x1)}, {typeof(Int4x1)}, {typeof(Int4x1)})"); - + public static Int4x1 Clamp(Int4x1 x, Int4x1 min, Int4x1 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3881,10 +3881,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int4x2 Clamp(Int4x2 x, Int4x2 min, Int4x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int4x2)}, {typeof(Int4x2)}, {typeof(Int4x2)})"); - + public static Int4x2 Clamp(Int4x2 x, Int4x2 min, Int4x2 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3892,10 +3892,10 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int4x3 Clamp(Int4x3 x, Int4x3 min, Int4x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int4x3)}, {typeof(Int4x3)}, {typeof(Int4x3)})"); - + public static Int4x3 Clamp(Int4x3 x, Int4x3 min, Int4x3 max) => default; /// /// Clamps the specified value to the specified minimum and maximum range. /// @@ -3903,1406 +3903,1406 @@ namespace ComputeSharp /// The specified minimum range. /// The specified maximum range. /// The clamped value for the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("clamp")] - public static Int4x4 Clamp(Int4x4 x, Int4x4 min, Int4x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Clamp)}({typeof(Int4x4)}, {typeof(Int4x4)}, {typeof(Int4x4)})"); - + public static Int4x4 Clamp(Int4x4 x, Int4x4 min, Int4x4 max) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static float Cos(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(float)})"); - + public static float Cos(float x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float2 Cos(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float2)})"); - + public static Float2 Cos(Float2 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float3 Cos(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float3)})"); - + public static Float3 Cos(Float3 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float4 Cos(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float4)})"); - + public static Float4 Cos(Float4 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float1x1 Cos(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float1x1)})"); - + public static Float1x1 Cos(Float1x1 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float1x2 Cos(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float1x2)})"); - + public static Float1x2 Cos(Float1x2 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float1x3 Cos(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float1x3)})"); - + public static Float1x3 Cos(Float1x3 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float1x4 Cos(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float1x4)})"); - + public static Float1x4 Cos(Float1x4 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float2x1 Cos(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float2x1)})"); - + public static Float2x1 Cos(Float2x1 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float2x2 Cos(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float2x2)})"); - + public static Float2x2 Cos(Float2x2 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float2x3 Cos(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float2x3)})"); - + public static Float2x3 Cos(Float2x3 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float2x4 Cos(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float2x4)})"); - + public static Float2x4 Cos(Float2x4 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float3x1 Cos(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float3x1)})"); - + public static Float3x1 Cos(Float3x1 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float3x2 Cos(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float3x2)})"); - + public static Float3x2 Cos(Float3x2 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float3x3 Cos(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float3x3)})"); - + public static Float3x3 Cos(Float3x3 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float3x4 Cos(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float3x4)})"); - + public static Float3x4 Cos(Float3x4 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float4x1 Cos(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float4x1)})"); - + public static Float4x1 Cos(Float4x1 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float4x2 Cos(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float4x2)})"); - + public static Float4x2 Cos(Float4x2 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float4x3 Cos(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float4x3)})"); - + public static Float4x3 Cos(Float4x3 x) => default; /// /// Returns the cosine of the specified value. /// /// The specified value, in radians. /// The cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cos")] - public static Float4x4 Cos(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cos)}({typeof(Float4x4)})"); - + public static Float4x4 Cos(Float4x4 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static float Cosh(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(float)})"); - + public static float Cosh(float x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float2 Cosh(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float2)})"); - + public static Float2 Cosh(Float2 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float3 Cosh(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float3)})"); - + public static Float3 Cosh(Float3 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float4 Cosh(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float4)})"); - + public static Float4 Cosh(Float4 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float1x1 Cosh(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float1x1)})"); - + public static Float1x1 Cosh(Float1x1 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float1x2 Cosh(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float1x2)})"); - + public static Float1x2 Cosh(Float1x2 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float1x3 Cosh(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float1x3)})"); - + public static Float1x3 Cosh(Float1x3 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float1x4 Cosh(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float1x4)})"); - + public static Float1x4 Cosh(Float1x4 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float2x1 Cosh(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float2x1)})"); - + public static Float2x1 Cosh(Float2x1 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float2x2 Cosh(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float2x2)})"); - + public static Float2x2 Cosh(Float2x2 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float2x3 Cosh(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float2x3)})"); - + public static Float2x3 Cosh(Float2x3 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float2x4 Cosh(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float2x4)})"); - + public static Float2x4 Cosh(Float2x4 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float3x1 Cosh(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float3x1)})"); - + public static Float3x1 Cosh(Float3x1 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float3x2 Cosh(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float3x2)})"); - + public static Float3x2 Cosh(Float3x2 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float3x3 Cosh(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float3x3)})"); - + public static Float3x3 Cosh(Float3x3 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float3x4 Cosh(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float3x4)})"); - + public static Float3x4 Cosh(Float3x4 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float4x1 Cosh(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float4x1)})"); - + public static Float4x1 Cosh(Float4x1 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float4x2 Cosh(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float4x2)})"); - + public static Float4x2 Cosh(Float4x2 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float4x3 Cosh(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float4x3)})"); - + public static Float4x3 Cosh(Float4x3 x) => default; /// /// Returns the hyperbolic cosine of the specified value. /// /// The specified value, in radians. /// The hyperbolic cosine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cosh")] - public static Float4x4 Cosh(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cosh)}({typeof(Float4x4)})"); - + public static Float4x4 Cosh(Float4x4 x) => default; /// /// Counts the number of bits (per component) in the input integer. /// /// The input value. /// The number of bits. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("countbits")] - public static uint CountBits(uint x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(CountBits)}({typeof(uint)})"); - + public static uint CountBits(uint x) => default; /// /// Counts the number of bits (per component) in the input integer. /// /// The input value. /// The number of bits. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("countbits")] - public static UInt2 CountBits(UInt2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(CountBits)}({typeof(UInt2)})"); - + public static UInt2 CountBits(UInt2 x) => default; /// /// Counts the number of bits (per component) in the input integer. /// /// The input value. /// The number of bits. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("countbits")] - public static UInt3 CountBits(UInt3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(CountBits)}({typeof(UInt3)})"); - + public static UInt3 CountBits(UInt3 x) => default; /// /// Counts the number of bits (per component) in the input integer. /// /// The input value. /// The number of bits. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("countbits")] - public static UInt4 CountBits(UInt4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(CountBits)}({typeof(UInt4)})"); - + public static UInt4 CountBits(UInt4 x) => default; /// /// Returns the cross product of two floating-point, 3D vectors. /// /// The first floating-point, 3D vector. /// The second floating-point, 3D vector. /// The number of bits. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("cross")] - public static Float3 Cross(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Cross)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Cross(Float3 x, Float3 y) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static float Degrees(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(float)})"); - + public static float Degrees(float x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float2 Degrees(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float2)})"); - + public static Float2 Degrees(Float2 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float3 Degrees(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float3)})"); - + public static Float3 Degrees(Float3 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float4 Degrees(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float4)})"); - + public static Float4 Degrees(Float4 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float1x1 Degrees(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float1x1)})"); - + public static Float1x1 Degrees(Float1x1 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float1x2 Degrees(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float1x2)})"); - + public static Float1x2 Degrees(Float1x2 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float1x3 Degrees(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float1x3)})"); - + public static Float1x3 Degrees(Float1x3 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float1x4 Degrees(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float1x4)})"); - + public static Float1x4 Degrees(Float1x4 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float2x1 Degrees(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float2x1)})"); - + public static Float2x1 Degrees(Float2x1 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float2x2 Degrees(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float2x2)})"); - + public static Float2x2 Degrees(Float2x2 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float2x3 Degrees(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float2x3)})"); - + public static Float2x3 Degrees(Float2x3 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float2x4 Degrees(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float2x4)})"); - + public static Float2x4 Degrees(Float2x4 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float3x1 Degrees(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float3x1)})"); - + public static Float3x1 Degrees(Float3x1 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float3x2 Degrees(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float3x2)})"); - + public static Float3x2 Degrees(Float3x2 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float3x3 Degrees(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float3x3)})"); - + public static Float3x3 Degrees(Float3x3 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float3x4 Degrees(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float3x4)})"); - + public static Float3x4 Degrees(Float3x4 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float4x1 Degrees(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float4x1)})"); - + public static Float4x1 Degrees(Float4x1 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float4x2 Degrees(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float4x2)})"); - + public static Float4x2 Degrees(Float4x2 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float4x3 Degrees(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float4x3)})"); - + public static Float4x3 Degrees(Float4x3 x) => default; /// /// Converts the specified value from radians to degrees. /// /// The specified value. /// The result of converting the parameter from radians to degrees. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("degrees")] - public static Float4x4 Degrees(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Degrees)}({typeof(Float4x4)})"); - + public static Float4x4 Degrees(Float4x4 x) => default; /// /// Returns the determinant of the specified floating-point, square matrix. /// /// The specified value. /// The floating-point, scalar value that represents the determinant of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("determinant")] - public static float Determinant(Float1x1 m) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Determinant)}({typeof(Float1x1)})"); - + public static float Determinant(Float1x1 m) => default; /// /// Returns the determinant of the specified floating-point, square matrix. /// /// The specified value. /// The floating-point, scalar value that represents the determinant of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("determinant")] - public static float Determinant(Float2x2 m) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Determinant)}({typeof(Float2x2)})"); - + public static float Determinant(Float2x2 m) => default; /// /// Returns the determinant of the specified floating-point, square matrix. /// /// The specified value. /// The floating-point, scalar value that represents the determinant of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("determinant")] - public static float Determinant(Float3x3 m) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Determinant)}({typeof(Float3x3)})"); - + public static float Determinant(Float3x3 m) => default; /// /// Returns the determinant of the specified floating-point, square matrix. /// /// The specified value. /// The floating-point, scalar value that represents the determinant of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("determinant")] - public static float Determinant(Float4x4 m) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Determinant)}({typeof(Float4x4)})"); - + public static float Determinant(Float4x4 m) => default; /// /// Returns a distance scalar between two vectors. /// /// The first floating-point vector to compare. /// The second floating-point vector to compare. /// A floating-point, scalar value that represents the distance between the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("distance")] - public static Float2 Distance(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Distance)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Distance(Float2 x, Float2 y) => default; /// /// Returns a distance scalar between two vectors. /// /// The first floating-point vector to compare. /// The second floating-point vector to compare. /// A floating-point, scalar value that represents the distance between the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("distance")] - public static Float3 Distance(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Distance)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Distance(Float3 x, Float3 y) => default; /// /// Returns a distance scalar between two vectors. /// /// The first floating-point vector to compare. /// The second floating-point vector to compare. /// A floating-point, scalar value that represents the distance between the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("distance")] - public static Float4 Distance(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Distance)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Distance(Float4 x, Float4 y) => default; /// /// Returns the dot product of two vectors. /// /// The first vector. /// The second vector. /// The dot product of the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("dot")] - public static float Dot(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Float2)}, {typeof(Float2)})"); - + public static float Dot(Float2 x, Float2 y) => default; /// /// Returns the dot product of two vectors. /// /// The first vector. /// The second vector. /// The dot product of the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("dot")] - public static float Dot(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Float3)}, {typeof(Float3)})"); - + public static float Dot(Float3 x, Float3 y) => default; /// /// Returns the dot product of two vectors. /// /// The first vector. /// The second vector. /// The dot product of the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("dot")] - public static float Dot(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Float4)}, {typeof(Float4)})"); - + public static float Dot(Float4 x, Float4 y) => default; /// /// Returns the dot product of two vectors. /// /// The first vector. /// The second vector. /// The dot product of the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("dot")] - public static int Dot(Int2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int2)}, {typeof(Int2)})"); - + public static int Dot(Int2 x, Int2 y) => default; /// /// Returns the dot product of two vectors. /// /// The first vector. /// The second vector. /// The dot product of the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("dot")] - public static int Dot(Int3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int3)}, {typeof(Int3)})"); - + public static int Dot(Int3 x, Int3 y) => default; /// /// Returns the dot product of two vectors. /// /// The first vector. /// The second vector. /// The dot product of the parameter and the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("dot")] - public static int Dot(Int4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Dot)}({typeof(Int4)}, {typeof(Int4)})"); - + public static int Dot(Int4 x, Int4 y) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static float Exp(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(float)})"); - + public static float Exp(float x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float2 Exp(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float2)})"); - + public static Float2 Exp(Float2 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float3 Exp(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float3)})"); - + public static Float3 Exp(Float3 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float4 Exp(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float4)})"); - + public static Float4 Exp(Float4 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float1x1 Exp(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float1x1)})"); - + public static Float1x1 Exp(Float1x1 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float1x2 Exp(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float1x2)})"); - + public static Float1x2 Exp(Float1x2 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float1x3 Exp(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float1x3)})"); - + public static Float1x3 Exp(Float1x3 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float1x4 Exp(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float1x4)})"); - + public static Float1x4 Exp(Float1x4 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float2x1 Exp(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float2x1)})"); - + public static Float2x1 Exp(Float2x1 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float2x2 Exp(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float2x2)})"); - + public static Float2x2 Exp(Float2x2 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float2x3 Exp(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float2x3)})"); - + public static Float2x3 Exp(Float2x3 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float2x4 Exp(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float2x4)})"); - + public static Float2x4 Exp(Float2x4 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float3x1 Exp(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float3x1)})"); - + public static Float3x1 Exp(Float3x1 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float3x2 Exp(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float3x2)})"); - + public static Float3x2 Exp(Float3x2 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float3x3 Exp(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float3x3)})"); - + public static Float3x3 Exp(Float3x3 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float3x4 Exp(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float3x4)})"); - + public static Float3x4 Exp(Float3x4 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float4x1 Exp(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float4x1)})"); - + public static Float4x1 Exp(Float4x1 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float4x2 Exp(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float4x2)})"); - + public static Float4x2 Exp(Float4x2 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float4x3 Exp(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float4x3)})"); - + public static Float4x3 Exp(Float4x3 x) => default; /// /// Returns the base-e exponential of the specified value. /// /// The specified value. /// The base-e exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp")] - public static Float4x4 Exp(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp)}({typeof(Float4x4)})"); - + public static Float4x4 Exp(Float4x4 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static float Exp2(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(float)})"); - + public static float Exp2(float x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float2 Exp2(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float2)})"); - + public static Float2 Exp2(Float2 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float3 Exp2(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float3)})"); - + public static Float3 Exp2(Float3 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float4 Exp2(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float4)})"); - + public static Float4 Exp2(Float4 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float1x1 Exp2(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float1x1)})"); - + public static Float1x1 Exp2(Float1x1 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float1x2 Exp2(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float1x2)})"); - + public static Float1x2 Exp2(Float1x2 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float1x3 Exp2(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float1x3)})"); - + public static Float1x3 Exp2(Float1x3 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float1x4 Exp2(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float1x4)})"); - + public static Float1x4 Exp2(Float1x4 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float2x1 Exp2(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float2x1)})"); - + public static Float2x1 Exp2(Float2x1 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float2x2 Exp2(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float2x2)})"); - + public static Float2x2 Exp2(Float2x2 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float2x3 Exp2(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float2x3)})"); - + public static Float2x3 Exp2(Float2x3 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float2x4 Exp2(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float2x4)})"); - + public static Float2x4 Exp2(Float2x4 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float3x1 Exp2(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float3x1)})"); - + public static Float3x1 Exp2(Float3x1 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float3x2 Exp2(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float3x2)})"); - + public static Float3x2 Exp2(Float3x2 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float3x3 Exp2(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float3x3)})"); - + public static Float3x3 Exp2(Float3x3 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float3x4 Exp2(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float3x4)})"); - + public static Float3x4 Exp2(Float3x4 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float4x1 Exp2(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float4x1)})"); - + public static Float4x1 Exp2(Float4x1 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float4x2 Exp2(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float4x2)})"); - + public static Float4x2 Exp2(Float4x2 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float4x3 Exp2(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float4x3)})"); - + public static Float4x3 Exp2(Float4x3 x) => default; /// /// Returns the base-2 exponential of the specified value. /// /// The specified value. /// The base-2 exponential of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("exp2")] - public static Float4x4 Exp2(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Exp2)}({typeof(Float4x4)})"); - + public static Float4x4 Exp2(Float4x4 x) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static int FirstBitHigh(int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(int)})"); - + public static int FirstBitHigh(int value) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static Int2 FirstBitHigh(Int2 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(Int2)})"); - + public static Int2 FirstBitHigh(Int2 value) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static Int3 FirstBitHigh(Int3 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(Int3)})"); - + public static Int3 FirstBitHigh(Int3 value) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static Int4 FirstBitHigh(Int4 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(Int4)})"); - + public static Int4 FirstBitHigh(Int4 value) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static uint FirstBitHigh(uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(uint)})"); - + public static uint FirstBitHigh(uint value) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static UInt2 FirstBitHigh(UInt2 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(UInt2)})"); - + public static UInt2 FirstBitHigh(UInt2 value) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static UInt3 FirstBitHigh(UInt3 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(UInt3)})"); - + public static UInt3 FirstBitHigh(UInt3 value) => default; /// /// Gets the location of the first set bit starting from the highest order bit and working downward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbithigh")] - public static UInt4 FirstBitHigh(UInt4 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitHigh)}({typeof(UInt4)})"); - + public static UInt4 FirstBitHigh(UInt4 value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static int FirstBitLow(int value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(int)})"); - + public static int FirstBitLow(int value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static Int2 FirstBitLow(Int2 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(Int2)})"); - + public static Int2 FirstBitLow(Int2 value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static Int3 FirstBitLow(Int3 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(Int3)})"); - + public static Int3 FirstBitLow(Int3 value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static Int4 FirstBitLow(Int4 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(Int4)})"); - + public static Int4 FirstBitLow(Int4 value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static uint FirstBitLow(uint value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(uint)})"); - + public static uint FirstBitLow(uint value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static UInt2 FirstBitLow(UInt2 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(UInt2)})"); - + public static UInt2 FirstBitLow(UInt2 value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static UInt3 FirstBitLow(UInt3 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(UInt3)})"); - + public static UInt3 FirstBitLow(UInt3 value) => default; /// /// Returns the location of the first set bit starting from the lowest order bit and working upward, per component. /// /// The input value. /// The location of the first set bit. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("firstbitlow")] - public static UInt4 FirstBitLow(UInt4 value) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FirstBitLow)}({typeof(UInt4)})"); - + public static UInt4 FirstBitLow(UInt4 value) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static float Floor(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(float)})"); - + public static float Floor(float x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float2 Floor(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float2)})"); - + public static Float2 Floor(Float2 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float3 Floor(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float3)})"); - + public static Float3 Floor(Float3 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float4 Floor(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float4)})"); - + public static Float4 Floor(Float4 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float1x1 Floor(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float1x1)})"); - + public static Float1x1 Floor(Float1x1 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float1x2 Floor(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float1x2)})"); - + public static Float1x2 Floor(Float1x2 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float1x3 Floor(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float1x3)})"); - + public static Float1x3 Floor(Float1x3 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float1x4 Floor(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float1x4)})"); - + public static Float1x4 Floor(Float1x4 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float2x1 Floor(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float2x1)})"); - + public static Float2x1 Floor(Float2x1 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float2x2 Floor(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float2x2)})"); - + public static Float2x2 Floor(Float2x2 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float2x3 Floor(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float2x3)})"); - + public static Float2x3 Floor(Float2x3 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float2x4 Floor(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float2x4)})"); - + public static Float2x4 Floor(Float2x4 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float3x1 Floor(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float3x1)})"); - + public static Float3x1 Floor(Float3x1 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float3x2 Floor(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float3x2)})"); - + public static Float3x2 Floor(Float3x2 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float3x3 Floor(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float3x3)})"); - + public static Float3x3 Floor(Float3x3 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float3x4 Floor(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float3x4)})"); - + public static Float3x4 Floor(Float3x4 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float4x1 Floor(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float4x1)})"); - + public static Float4x1 Floor(Float4x1 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float4x2 Floor(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float4x2)})"); - + public static Float4x2 Floor(Float4x2 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float4x3 Floor(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float4x3)})"); - + public static Float4x3 Floor(Float4x3 x) => default; /// /// Returns the largest integer that is less than or equal to the specified value. /// /// The specified value. /// The largest integer value (returned as a floating-point type) that is less than or equal to the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("floor")] - public static Float4x4 Floor(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Floor)}({typeof(Float4x4)})"); - + public static Float4x4 Floor(Float4x4 x) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5310,10 +5310,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static double FusedMultiplyAccumulate(double a, double b, double c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(double)}, {typeof(double)}, {typeof(double)})"); - + public static double FusedMultiplyAccumulate(double a, double b, double c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5321,10 +5321,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double2 FusedMultiplyAccumulate(Double2 a, Double2 b, Double2 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double2)}, {typeof(Double2)}, {typeof(Double2)})"); - + public static Double2 FusedMultiplyAccumulate(Double2 a, Double2 b, Double2 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5332,10 +5332,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double3 FusedMultiplyAccumulate(Double3 a, Double3 b, Double3 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double3)}, {typeof(Double3)}, {typeof(Double3)})"); - + public static Double3 FusedMultiplyAccumulate(Double3 a, Double3 b, Double3 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5343,10 +5343,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double4 FusedMultiplyAccumulate(Double4 a, Double4 b, Double4 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double4)}, {typeof(Double4)}, {typeof(Double4)})"); - + public static Double4 FusedMultiplyAccumulate(Double4 a, Double4 b, Double4 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5354,10 +5354,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double1x1 FusedMultiplyAccumulate(Double1x1 a, Double1x1 b, Double1x1 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double1x1)}, {typeof(Double1x1)}, {typeof(Double1x1)})"); - + public static Double1x1 FusedMultiplyAccumulate(Double1x1 a, Double1x1 b, Double1x1 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5365,10 +5365,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double1x2 FusedMultiplyAccumulate(Double1x2 a, Double1x2 b, Double1x2 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double1x2)}, {typeof(Double1x2)}, {typeof(Double1x2)})"); - + public static Double1x2 FusedMultiplyAccumulate(Double1x2 a, Double1x2 b, Double1x2 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5376,10 +5376,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double1x3 FusedMultiplyAccumulate(Double1x3 a, Double1x3 b, Double1x3 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double1x3)}, {typeof(Double1x3)}, {typeof(Double1x3)})"); - + public static Double1x3 FusedMultiplyAccumulate(Double1x3 a, Double1x3 b, Double1x3 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5387,10 +5387,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double1x4 FusedMultiplyAccumulate(Double1x4 a, Double1x4 b, Double1x4 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double1x4)}, {typeof(Double1x4)}, {typeof(Double1x4)})"); - + public static Double1x4 FusedMultiplyAccumulate(Double1x4 a, Double1x4 b, Double1x4 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5398,10 +5398,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double2x1 FusedMultiplyAccumulate(Double2x1 a, Double2x1 b, Double2x1 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double2x1)}, {typeof(Double2x1)}, {typeof(Double2x1)})"); - + public static Double2x1 FusedMultiplyAccumulate(Double2x1 a, Double2x1 b, Double2x1 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5409,10 +5409,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double2x2 FusedMultiplyAccumulate(Double2x2 a, Double2x2 b, Double2x2 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double2x2)}, {typeof(Double2x2)}, {typeof(Double2x2)})"); - + public static Double2x2 FusedMultiplyAccumulate(Double2x2 a, Double2x2 b, Double2x2 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5420,10 +5420,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double2x3 FusedMultiplyAccumulate(Double2x3 a, Double2x3 b, Double2x3 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double2x3)}, {typeof(Double2x3)}, {typeof(Double2x3)})"); - + public static Double2x3 FusedMultiplyAccumulate(Double2x3 a, Double2x3 b, Double2x3 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5431,10 +5431,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double2x4 FusedMultiplyAccumulate(Double2x4 a, Double2x4 b, Double2x4 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double2x4)}, {typeof(Double2x4)}, {typeof(Double2x4)})"); - + public static Double2x4 FusedMultiplyAccumulate(Double2x4 a, Double2x4 b, Double2x4 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5442,10 +5442,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double3x1 FusedMultiplyAccumulate(Double3x1 a, Double3x1 b, Double3x1 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double3x1)}, {typeof(Double3x1)}, {typeof(Double3x1)})"); - + public static Double3x1 FusedMultiplyAccumulate(Double3x1 a, Double3x1 b, Double3x1 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5453,10 +5453,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double3x2 FusedMultiplyAccumulate(Double3x2 a, Double3x2 b, Double3x2 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double3x2)}, {typeof(Double3x2)}, {typeof(Double3x2)})"); - + public static Double3x2 FusedMultiplyAccumulate(Double3x2 a, Double3x2 b, Double3x2 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5464,10 +5464,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double3x3 FusedMultiplyAccumulate(Double3x3 a, Double3x3 b, Double3x3 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double3x3)}, {typeof(Double3x3)}, {typeof(Double3x3)})"); - + public static Double3x3 FusedMultiplyAccumulate(Double3x3 a, Double3x3 b, Double3x3 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5475,10 +5475,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double3x4 FusedMultiplyAccumulate(Double3x4 a, Double3x4 b, Double3x4 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double3x4)}, {typeof(Double3x4)}, {typeof(Double3x4)})"); - + public static Double3x4 FusedMultiplyAccumulate(Double3x4 a, Double3x4 b, Double3x4 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5486,10 +5486,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double4x1 FusedMultiplyAccumulate(Double4x1 a, Double4x1 b, Double4x1 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double4x1)}, {typeof(Double4x1)}, {typeof(Double4x1)})"); - + public static Double4x1 FusedMultiplyAccumulate(Double4x1 a, Double4x1 b, Double4x1 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5497,10 +5497,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double4x2 FusedMultiplyAccumulate(Double4x2 a, Double4x2 b, Double4x2 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double4x2)}, {typeof(Double4x2)}, {typeof(Double4x2)})"); - + public static Double4x2 FusedMultiplyAccumulate(Double4x2 a, Double4x2 b, Double4x2 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5508,10 +5508,10 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double4x3 FusedMultiplyAccumulate(Double4x3 a, Double4x3 b, Double4x3 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double4x3)}, {typeof(Double4x3)}, {typeof(Double4x3)})"); - + public static Double4x3 FusedMultiplyAccumulate(Double4x3 a, Double4x3 b, Double4x3 c) => default; /// /// Returns the double-precision fused multiply-addition of a * b + c. /// @@ -5519,396 +5519,397 @@ namespace ComputeSharp /// The second value in the fused multiply-addition. /// The third value in the fused multiply-addition. /// The double-precision fused multiply-addition of parameters a * b + c. The returned value must be accurate to 0.5 units of least precision (ULP). + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fma")] - public static Double4x4 FusedMultiplyAccumulate(Double4x4 a, Double4x4 b, Double4x4 c) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(FusedMultiplyAccumulate)}({typeof(Double4x4)}, {typeof(Double4x4)}, {typeof(Double4x4)})"); - + public static Double4x4 FusedMultiplyAccumulate(Double4x4 a, Double4x4 b, Double4x4 c) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static float Fmod(float x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(float)}, {typeof(float)})"); - + public static float Fmod(float x, float y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float2 Fmod(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Fmod(Float2 x, Float2 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float3 Fmod(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Fmod(Float3 x, Float3 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float4 Fmod(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Fmod(Float4 x, Float4 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float1x1 Fmod(Float1x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Fmod(Float1x1 x, Float1x1 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float1x2 Fmod(Float1x2 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Fmod(Float1x2 x, Float1x2 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float1x3 Fmod(Float1x3 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Fmod(Float1x3 x, Float1x3 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float1x4 Fmod(Float1x4 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Fmod(Float1x4 x, Float1x4 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float2x1 Fmod(Float2x1 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Fmod(Float2x1 x, Float2x1 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float2x2 Fmod(Float2x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Fmod(Float2x2 x, Float2x2 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float2x3 Fmod(Float2x3 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Fmod(Float2x3 x, Float2x3 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float2x4 Fmod(Float2x4 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Fmod(Float2x4 x, Float2x4 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float3x1 Fmod(Float3x1 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Fmod(Float3x1 x, Float3x1 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float3x2 Fmod(Float3x2 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Fmod(Float3x2 x, Float3x2 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float3x3 Fmod(Float3x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Fmod(Float3x3 x, Float3x3 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float3x4 Fmod(Float3x4 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Fmod(Float3x4 x, Float3x4 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float4x1 Fmod(Float4x1 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Fmod(Float4x1 x, Float4x1 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float4x2 Fmod(Float4x2 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Fmod(Float4x2 x, Float4x2 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float4x3 Fmod(Float4x3 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Fmod(Float4x3 x, Float4x3 y) => default; /// /// Returns the floating-point remainder of x / y. /// /// The floating-point dividend. /// The floating-point divisor. /// The floating-point remainder of the x parameter divided by the y parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("fmod")] - public static Float4x4 Fmod(Float4x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Fmod)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Fmod(Float4x4 x, Float4x4 y) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static float Frac(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(float)})"); - + public static float Frac(float x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float2 Frac(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float2)})"); - + public static Float2 Frac(Float2 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float3 Frac(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float3)})"); - + public static Float3 Frac(Float3 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float4 Frac(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float4)})"); - + public static Float4 Frac(Float4 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float1x1 Frac(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float1x1)})"); - + public static Float1x1 Frac(Float1x1 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float1x2 Frac(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float1x2)})"); - + public static Float1x2 Frac(Float1x2 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float1x3 Frac(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float1x3)})"); - + public static Float1x3 Frac(Float1x3 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float1x4 Frac(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float1x4)})"); - + public static Float1x4 Frac(Float1x4 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float2x1 Frac(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float2x1)})"); - + public static Float2x1 Frac(Float2x1 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float2x2 Frac(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float2x2)})"); - + public static Float2x2 Frac(Float2x2 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float2x3 Frac(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float2x3)})"); - + public static Float2x3 Frac(Float2x3 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float2x4 Frac(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float2x4)})"); - + public static Float2x4 Frac(Float2x4 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float3x1 Frac(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float3x1)})"); - + public static Float3x1 Frac(Float3x1 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float3x2 Frac(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float3x2)})"); - + public static Float3x2 Frac(Float3x2 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float3x3 Frac(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float3x3)})"); - + public static Float3x3 Frac(Float3x3 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float3x4 Frac(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float3x4)})"); - + public static Float3x4 Frac(Float3x4 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float4x1 Frac(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float4x1)})"); - + public static Float4x1 Frac(Float4x1 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float4x2 Frac(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float4x2)})"); - + public static Float4x2 Frac(Float4x2 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float4x3 Frac(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float4x3)})"); - + public static Float4x3 Frac(Float4x3 x) => default; /// /// Returns the fractional (or decimal) part of the input which is greater than or equal to 0 and less than 1. /// /// The specified value. /// The fractional part of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("frac")] - public static Float4x4 Frac(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frac)}({typeof(Float4x4)})"); - + public static Float4x4 Frac(Float4x4 x) => default; /// /// Returns the mantissa and exponent of the specified floating-point value. /// /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static float Frexp(float x, out float exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(float)}, {typeof(float)})"); @@ -5918,6 +5919,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float2 Frexp(Float2 x, out Float2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float2)}, {typeof(Float2)})"); @@ -5927,6 +5929,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float3 Frexp(Float3 x, out Float3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float3)}, {typeof(Float3)})"); @@ -5936,6 +5939,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float4 Frexp(Float4 x, out Float4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float4)}, {typeof(Float4)})"); @@ -5945,6 +5949,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float1x1 Frexp(Float1x1 x, out Float1x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float1x1)}, {typeof(Float1x1)})"); @@ -5954,6 +5959,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float1x2 Frexp(Float1x2 x, out Float1x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float1x2)}, {typeof(Float1x2)})"); @@ -5963,6 +5969,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float1x3 Frexp(Float1x3 x, out Float1x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float1x3)}, {typeof(Float1x3)})"); @@ -5972,6 +5979,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float1x4 Frexp(Float1x4 x, out Float1x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float1x4)}, {typeof(Float1x4)})"); @@ -5981,6 +5989,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float2x1 Frexp(Float2x1 x, out Float2x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float2x1)}, {typeof(Float2x1)})"); @@ -5990,6 +5999,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float2x2 Frexp(Float2x2 x, out Float2x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float2x2)}, {typeof(Float2x2)})"); @@ -5999,6 +6009,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float2x3 Frexp(Float2x3 x, out Float2x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float2x3)}, {typeof(Float2x3)})"); @@ -6008,6 +6019,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float2x4 Frexp(Float2x4 x, out Float2x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float2x4)}, {typeof(Float2x4)})"); @@ -6017,6 +6029,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float3x1 Frexp(Float3x1 x, out Float3x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float3x1)}, {typeof(Float3x1)})"); @@ -6026,6 +6039,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float3x2 Frexp(Float3x2 x, out Float3x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float3x2)}, {typeof(Float3x2)})"); @@ -6035,6 +6049,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float3x3 Frexp(Float3x3 x, out Float3x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float3x3)}, {typeof(Float3x3)})"); @@ -6044,6 +6059,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float3x4 Frexp(Float3x4 x, out Float3x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float3x4)}, {typeof(Float3x4)})"); @@ -6053,6 +6069,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float4x1 Frexp(Float4x1 x, out Float4x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float4x1)}, {typeof(Float4x1)})"); @@ -6062,6 +6079,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float4x2 Frexp(Float4x2 x, out Float4x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float4x2)}, {typeof(Float4x2)})"); @@ -6071,6 +6089,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float4x3 Frexp(Float4x3 x, out Float4x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float4x3)}, {typeof(Float4x3)})"); @@ -6080,6 +6099,7 @@ namespace ComputeSharp /// The specified floating-point value. /// The returned exponent of the input parameter. /// The mantissa of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [HlslIntrinsicName("frexp")] public static Float4x4 Frexp(Float4x4 x, out Float4x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Frexp)}({typeof(Float4x4)}, {typeof(Float4x4)})"); @@ -6088,768 +6108,768 @@ namespace ComputeSharp /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static bool IsFinite(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(float)})"); - + public static bool IsFinite(float x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool2 IsFinite(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float2)})"); - + public static Bool2 IsFinite(Float2 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool3 IsFinite(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float3)})"); - + public static Bool3 IsFinite(Float3 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool4 IsFinite(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float4)})"); - + public static Bool4 IsFinite(Float4 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool1x1 IsFinite(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float1x1)})"); - + public static Bool1x1 IsFinite(Float1x1 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool1x2 IsFinite(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float1x2)})"); - + public static Bool1x2 IsFinite(Float1x2 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool1x3 IsFinite(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float1x3)})"); - + public static Bool1x3 IsFinite(Float1x3 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool1x4 IsFinite(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float1x4)})"); - + public static Bool1x4 IsFinite(Float1x4 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool2x1 IsFinite(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float2x1)})"); - + public static Bool2x1 IsFinite(Float2x1 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool2x2 IsFinite(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float2x2)})"); - + public static Bool2x2 IsFinite(Float2x2 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool2x3 IsFinite(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float2x3)})"); - + public static Bool2x3 IsFinite(Float2x3 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool2x4 IsFinite(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float2x4)})"); - + public static Bool2x4 IsFinite(Float2x4 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool3x1 IsFinite(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float3x1)})"); - + public static Bool3x1 IsFinite(Float3x1 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool3x2 IsFinite(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float3x2)})"); - + public static Bool3x2 IsFinite(Float3x2 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool3x3 IsFinite(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float3x3)})"); - + public static Bool3x3 IsFinite(Float3x3 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool3x4 IsFinite(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float3x4)})"); - + public static Bool3x4 IsFinite(Float3x4 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool4x1 IsFinite(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float4x1)})"); - + public static Bool4x1 IsFinite(Float4x1 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool4x2 IsFinite(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float4x2)})"); - + public static Bool4x2 IsFinite(Float4x2 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool4x3 IsFinite(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float4x3)})"); - + public static Bool4x3 IsFinite(Float4x3 x) => default; /// /// Determines if the specified floating-point value is finite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is finite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isfinite")] - public static Bool4x4 IsFinite(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsFinite)}({typeof(Float4x4)})"); - + public static Bool4x4 IsFinite(Float4x4 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static bool IsInfinite(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(float)})"); - + public static bool IsInfinite(float x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool2 IsInfinite(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float2)})"); - + public static Bool2 IsInfinite(Float2 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool3 IsInfinite(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float3)})"); - + public static Bool3 IsInfinite(Float3 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool4 IsInfinite(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float4)})"); - + public static Bool4 IsInfinite(Float4 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool1x1 IsInfinite(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float1x1)})"); - + public static Bool1x1 IsInfinite(Float1x1 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool1x2 IsInfinite(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float1x2)})"); - + public static Bool1x2 IsInfinite(Float1x2 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool1x3 IsInfinite(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float1x3)})"); - + public static Bool1x3 IsInfinite(Float1x3 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool1x4 IsInfinite(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float1x4)})"); - + public static Bool1x4 IsInfinite(Float1x4 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool2x1 IsInfinite(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float2x1)})"); - + public static Bool2x1 IsInfinite(Float2x1 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool2x2 IsInfinite(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float2x2)})"); - + public static Bool2x2 IsInfinite(Float2x2 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool2x3 IsInfinite(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float2x3)})"); - + public static Bool2x3 IsInfinite(Float2x3 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool2x4 IsInfinite(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float2x4)})"); - + public static Bool2x4 IsInfinite(Float2x4 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool3x1 IsInfinite(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float3x1)})"); - + public static Bool3x1 IsInfinite(Float3x1 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool3x2 IsInfinite(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float3x2)})"); - + public static Bool3x2 IsInfinite(Float3x2 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool3x3 IsInfinite(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float3x3)})"); - + public static Bool3x3 IsInfinite(Float3x3 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool3x4 IsInfinite(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float3x4)})"); - + public static Bool3x4 IsInfinite(Float3x4 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool4x1 IsInfinite(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float4x1)})"); - + public static Bool4x1 IsInfinite(Float4x1 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool4x2 IsInfinite(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float4x2)})"); - + public static Bool4x2 IsInfinite(Float4x2 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool4x3 IsInfinite(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float4x3)})"); - + public static Bool4x3 IsInfinite(Float4x3 x) => default; /// /// Determines if the specified value is infinite. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is infinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isinf")] - public static Bool4x4 IsInfinite(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsInfinite)}({typeof(Float4x4)})"); - + public static Bool4x4 IsInfinite(Float4x4 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static bool IsNaN(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(float)})"); - + public static bool IsNaN(float x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool2 IsNaN(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float2)})"); - + public static Bool2 IsNaN(Float2 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool3 IsNaN(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float3)})"); - + public static Bool3 IsNaN(Float3 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool4 IsNaN(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float4)})"); - + public static Bool4 IsNaN(Float4 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool1x1 IsNaN(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float1x1)})"); - + public static Bool1x1 IsNaN(Float1x1 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool1x2 IsNaN(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float1x2)})"); - + public static Bool1x2 IsNaN(Float1x2 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool1x3 IsNaN(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float1x3)})"); - + public static Bool1x3 IsNaN(Float1x3 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool1x4 IsNaN(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float1x4)})"); - + public static Bool1x4 IsNaN(Float1x4 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool2x1 IsNaN(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float2x1)})"); - + public static Bool2x1 IsNaN(Float2x1 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool2x2 IsNaN(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float2x2)})"); - + public static Bool2x2 IsNaN(Float2x2 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool2x3 IsNaN(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float2x3)})"); - + public static Bool2x3 IsNaN(Float2x3 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool2x4 IsNaN(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float2x4)})"); - + public static Bool2x4 IsNaN(Float2x4 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool3x1 IsNaN(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float3x1)})"); - + public static Bool3x1 IsNaN(Float3x1 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool3x2 IsNaN(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float3x2)})"); - + public static Bool3x2 IsNaN(Float3x2 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool3x3 IsNaN(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float3x3)})"); - + public static Bool3x3 IsNaN(Float3x3 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool3x4 IsNaN(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float3x4)})"); - + public static Bool3x4 IsNaN(Float3x4 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool4x1 IsNaN(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float4x1)})"); - + public static Bool4x1 IsNaN(Float4x1 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool4x2 IsNaN(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float4x2)})"); - + public static Bool4x2 IsNaN(Float4x2 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool4x3 IsNaN(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float4x3)})"); - + public static Bool4x3 IsNaN(Float4x3 x) => default; /// /// Determines if the specified value is NAN or QNAN. /// /// The specified value. /// Returns a value of the same size as , indicaating whether each component is NAN or QNAN. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("isnan")] - public static Bool4x4 IsNaN(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(IsNaN)}({typeof(Float4x4)})"); - + public static Bool4x4 IsNaN(Float4x4 x) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static float Ldexp(float x, float exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(float)}, {typeof(float)})"); - + public static float Ldexp(float x, float exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float2 Ldexp(Float2 x, Float2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Ldexp(Float2 x, Float2 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float3 Ldexp(Float3 x, Float3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Ldexp(Float3 x, Float3 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float4 Ldexp(Float4 x, Float4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Ldexp(Float4 x, Float4 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float1x1 Ldexp(Float1x1 x, Float1x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Ldexp(Float1x1 x, Float1x1 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float1x2 Ldexp(Float1x2 x, Float1x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Ldexp(Float1x2 x, Float1x2 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float1x3 Ldexp(Float1x3 x, Float1x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Ldexp(Float1x3 x, Float1x3 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float1x4 Ldexp(Float1x4 x, Float1x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Ldexp(Float1x4 x, Float1x4 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float2x1 Ldexp(Float2x1 x, Float2x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Ldexp(Float2x1 x, Float2x1 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float2x2 Ldexp(Float2x2 x, Float2x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Ldexp(Float2x2 x, Float2x2 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float2x3 Ldexp(Float2x3 x, Float2x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Ldexp(Float2x3 x, Float2x3 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float2x4 Ldexp(Float2x4 x, Float2x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Ldexp(Float2x4 x, Float2x4 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float3x1 Ldexp(Float3x1 x, Float3x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Ldexp(Float3x1 x, Float3x1 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float3x2 Ldexp(Float3x2 x, Float3x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Ldexp(Float3x2 x, Float3x2 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float3x3 Ldexp(Float3x3 x, Float3x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Ldexp(Float3x3 x, Float3x3 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float3x4 Ldexp(Float3x4 x, Float3x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Ldexp(Float3x4 x, Float3x4 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float4x1 Ldexp(Float4x1 x, Float4x1 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Ldexp(Float4x1 x, Float4x1 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float4x2 Ldexp(Float4x2 x, Float4x2 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Ldexp(Float4x2 x, Float4x2 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float4x3 Ldexp(Float4x3 x, Float4x3 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Ldexp(Float4x3 x, Float4x3 exp) => default; /// /// Returns the result of multiplying the specified value by two, raised to the power of the specified exponent. /// /// The specified value. /// The specified exponent. /// The result of multiplying the parameter by two, raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("ldexp")] - public static Float4x4 Ldexp(Float4x4 x, Float4x4 exp) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Ldexp)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Ldexp(Float4x4 x, Float4x4 exp) => default; /// /// Returns the length of the specified floating-point vector. /// /// The specified floating-point vector. /// A floating-point scalar that represents the length of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("length")] - public static float Length(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Length)}({typeof(Float2)})"); - + public static float Length(Float2 x) => default; /// /// Returns the length of the specified floating-point vector. /// /// The specified floating-point vector. /// A floating-point scalar that represents the length of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("length")] - public static float Length(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Length)}({typeof(Float3)})"); - + public static float Length(Float3 x) => default; /// /// Returns the length of the specified floating-point vector. /// /// The specified floating-point vector. /// A floating-point scalar that represents the length of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("length")] - public static float Length(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Length)}({typeof(Float4)})"); - + public static float Length(Float4 x) => default; /// /// Performs a linear interpolation. /// @@ -6857,10 +6877,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static float Lerp(float x, float min, float max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(float)}, {typeof(float)}, {typeof(float)})"); - + public static float Lerp(float x, float min, float max) => default; /// /// Performs a linear interpolation. /// @@ -6868,10 +6888,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float2 Lerp(Float2 x, Float2 min, Float2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float2)}, {typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Lerp(Float2 x, Float2 min, Float2 max) => default; /// /// Performs a linear interpolation. /// @@ -6879,10 +6899,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float3 Lerp(Float3 x, Float3 min, Float3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float3)}, {typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Lerp(Float3 x, Float3 min, Float3 max) => default; /// /// Performs a linear interpolation. /// @@ -6890,10 +6910,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float4 Lerp(Float4 x, Float4 min, Float4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float4)}, {typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Lerp(Float4 x, Float4 min, Float4 max) => default; /// /// Performs a linear interpolation. /// @@ -6901,10 +6921,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float1x1 Lerp(Float1x1 x, Float1x1 min, Float1x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float1x1)}, {typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Lerp(Float1x1 x, Float1x1 min, Float1x1 max) => default; /// /// Performs a linear interpolation. /// @@ -6912,10 +6932,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float1x2 Lerp(Float1x2 x, Float1x2 min, Float1x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float1x2)}, {typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Lerp(Float1x2 x, Float1x2 min, Float1x2 max) => default; /// /// Performs a linear interpolation. /// @@ -6923,10 +6943,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float1x3 Lerp(Float1x3 x, Float1x3 min, Float1x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float1x3)}, {typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Lerp(Float1x3 x, Float1x3 min, Float1x3 max) => default; /// /// Performs a linear interpolation. /// @@ -6934,10 +6954,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float1x4 Lerp(Float1x4 x, Float1x4 min, Float1x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float1x4)}, {typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Lerp(Float1x4 x, Float1x4 min, Float1x4 max) => default; /// /// Performs a linear interpolation. /// @@ -6945,10 +6965,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float2x1 Lerp(Float2x1 x, Float2x1 min, Float2x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float2x1)}, {typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Lerp(Float2x1 x, Float2x1 min, Float2x1 max) => default; /// /// Performs a linear interpolation. /// @@ -6956,10 +6976,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float2x2 Lerp(Float2x2 x, Float2x2 min, Float2x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float2x2)}, {typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Lerp(Float2x2 x, Float2x2 min, Float2x2 max) => default; /// /// Performs a linear interpolation. /// @@ -6967,10 +6987,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float2x3 Lerp(Float2x3 x, Float2x3 min, Float2x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float2x3)}, {typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Lerp(Float2x3 x, Float2x3 min, Float2x3 max) => default; /// /// Performs a linear interpolation. /// @@ -6978,10 +6998,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float2x4 Lerp(Float2x4 x, Float2x4 min, Float2x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float2x4)}, {typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Lerp(Float2x4 x, Float2x4 min, Float2x4 max) => default; /// /// Performs a linear interpolation. /// @@ -6989,10 +7009,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float3x1 Lerp(Float3x1 x, Float3x1 min, Float3x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float3x1)}, {typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Lerp(Float3x1 x, Float3x1 min, Float3x1 max) => default; /// /// Performs a linear interpolation. /// @@ -7000,10 +7020,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float3x2 Lerp(Float3x2 x, Float3x2 min, Float3x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float3x2)}, {typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Lerp(Float3x2 x, Float3x2 min, Float3x2 max) => default; /// /// Performs a linear interpolation. /// @@ -7011,10 +7031,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float3x3 Lerp(Float3x3 x, Float3x3 min, Float3x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float3x3)}, {typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Lerp(Float3x3 x, Float3x3 min, Float3x3 max) => default; /// /// Performs a linear interpolation. /// @@ -7022,10 +7042,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float3x4 Lerp(Float3x4 x, Float3x4 min, Float3x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float3x4)}, {typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Lerp(Float3x4 x, Float3x4 min, Float3x4 max) => default; /// /// Performs a linear interpolation. /// @@ -7033,10 +7053,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float4x1 Lerp(Float4x1 x, Float4x1 min, Float4x1 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float4x1)}, {typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Lerp(Float4x1 x, Float4x1 min, Float4x1 max) => default; /// /// Performs a linear interpolation. /// @@ -7044,10 +7064,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float4x2 Lerp(Float4x2 x, Float4x2 min, Float4x2 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float4x2)}, {typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Lerp(Float4x2 x, Float4x2 min, Float4x2 max) => default; /// /// Performs a linear interpolation. /// @@ -7055,10 +7075,10 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float4x3 Lerp(Float4x3 x, Float4x3 min, Float4x3 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float4x3)}, {typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Lerp(Float4x3 x, Float4x3 min, Float4x3 max) => default; /// /// Performs a linear interpolation. /// @@ -7066,1356 +7086,1357 @@ namespace ComputeSharp /// The second-floating point value. /// A value that linearly interpolates between the two inputs. /// The result of the linear interpolation. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("lerp")] - public static Float4x4 Lerp(Float4x4 x, Float4x4 min, Float4x4 max) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Lerp)}({typeof(Float4x4)}, {typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Lerp(Float4x4 x, Float4x4 min, Float4x4 max) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static float Log(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(float)})"); - + public static float Log(float x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float2 Log(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float2)})"); - + public static Float2 Log(Float2 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float3 Log(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float3)})"); - + public static Float3 Log(Float3 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float4 Log(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float4)})"); - + public static Float4 Log(Float4 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float1x1 Log(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float1x1)})"); - + public static Float1x1 Log(Float1x1 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float1x2 Log(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float1x2)})"); - + public static Float1x2 Log(Float1x2 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float1x3 Log(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float1x3)})"); - + public static Float1x3 Log(Float1x3 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float1x4 Log(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float1x4)})"); - + public static Float1x4 Log(Float1x4 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float2x1 Log(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float2x1)})"); - + public static Float2x1 Log(Float2x1 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float2x2 Log(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float2x2)})"); - + public static Float2x2 Log(Float2x2 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float2x3 Log(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float2x3)})"); - + public static Float2x3 Log(Float2x3 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float2x4 Log(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float2x4)})"); - + public static Float2x4 Log(Float2x4 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float3x1 Log(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float3x1)})"); - + public static Float3x1 Log(Float3x1 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float3x2 Log(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float3x2)})"); - + public static Float3x2 Log(Float3x2 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float3x3 Log(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float3x3)})"); - + public static Float3x3 Log(Float3x3 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float3x4 Log(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float3x4)})"); - + public static Float3x4 Log(Float3x4 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float4x1 Log(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float4x1)})"); - + public static Float4x1 Log(Float4x1 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float4x2 Log(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float4x2)})"); - + public static Float4x2 Log(Float4x2 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float4x3 Log(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float4x3)})"); - + public static Float4x3 Log(Float4x3 x) => default; /// /// Returns the base-e logarithm of the specified value. /// /// The specified value. /// The base-e logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log")] - public static Float4x4 Log(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log)}({typeof(Float4x4)})"); - + public static Float4x4 Log(Float4x4 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static float Log10(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(float)})"); - + public static float Log10(float x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float2 Log10(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float2)})"); - + public static Float2 Log10(Float2 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float3 Log10(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float3)})"); - + public static Float3 Log10(Float3 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float4 Log10(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float4)})"); - + public static Float4 Log10(Float4 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float1x1 Log10(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float1x1)})"); - + public static Float1x1 Log10(Float1x1 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float1x2 Log10(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float1x2)})"); - + public static Float1x2 Log10(Float1x2 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float1x3 Log10(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float1x3)})"); - + public static Float1x3 Log10(Float1x3 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float1x4 Log10(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float1x4)})"); - + public static Float1x4 Log10(Float1x4 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float2x1 Log10(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float2x1)})"); - + public static Float2x1 Log10(Float2x1 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float2x2 Log10(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float2x2)})"); - + public static Float2x2 Log10(Float2x2 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float2x3 Log10(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float2x3)})"); - + public static Float2x3 Log10(Float2x3 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float2x4 Log10(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float2x4)})"); - + public static Float2x4 Log10(Float2x4 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float3x1 Log10(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float3x1)})"); - + public static Float3x1 Log10(Float3x1 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float3x2 Log10(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float3x2)})"); - + public static Float3x2 Log10(Float3x2 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float3x3 Log10(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float3x3)})"); - + public static Float3x3 Log10(Float3x3 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float3x4 Log10(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float3x4)})"); - + public static Float3x4 Log10(Float3x4 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float4x1 Log10(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float4x1)})"); - + public static Float4x1 Log10(Float4x1 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float4x2 Log10(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float4x2)})"); - + public static Float4x2 Log10(Float4x2 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float4x3 Log10(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float4x3)})"); - + public static Float4x3 Log10(Float4x3 x) => default; /// /// Returns the base-10 logarithm of the specified value. /// /// The specified value. /// The base-10 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log10")] - public static Float4x4 Log10(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log10)}({typeof(Float4x4)})"); - + public static Float4x4 Log10(Float4x4 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static float Log2(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(float)})"); - + public static float Log2(float x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float2 Log2(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float2)})"); - + public static Float2 Log2(Float2 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float3 Log2(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float3)})"); - + public static Float3 Log2(Float3 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float4 Log2(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float4)})"); - + public static Float4 Log2(Float4 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float1x1 Log2(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float1x1)})"); - + public static Float1x1 Log2(Float1x1 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float1x2 Log2(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float1x2)})"); - + public static Float1x2 Log2(Float1x2 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float1x3 Log2(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float1x3)})"); - + public static Float1x3 Log2(Float1x3 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float1x4 Log2(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float1x4)})"); - + public static Float1x4 Log2(Float1x4 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float2x1 Log2(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float2x1)})"); - + public static Float2x1 Log2(Float2x1 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float2x2 Log2(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float2x2)})"); - + public static Float2x2 Log2(Float2x2 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float2x3 Log2(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float2x3)})"); - + public static Float2x3 Log2(Float2x3 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float2x4 Log2(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float2x4)})"); - + public static Float2x4 Log2(Float2x4 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float3x1 Log2(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float3x1)})"); - + public static Float3x1 Log2(Float3x1 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float3x2 Log2(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float3x2)})"); - + public static Float3x2 Log2(Float3x2 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float3x3 Log2(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float3x3)})"); - + public static Float3x3 Log2(Float3x3 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float3x4 Log2(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float3x4)})"); - + public static Float3x4 Log2(Float3x4 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float4x1 Log2(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float4x1)})"); - + public static Float4x1 Log2(Float4x1 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float4x2 Log2(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float4x2)})"); - + public static Float4x2 Log2(Float4x2 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float4x3 Log2(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float4x3)})"); - + public static Float4x3 Log2(Float4x3 x) => default; /// /// Returns the base-2 logarithm of the specified value. /// /// The specified value. /// The base-2 logarithm of the parameter. If the parameter is negative, this function returns indefinite. If the parameter is 0, this function returns negative infinity. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("log2")] - public static Float4x4 Log2(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Log2)}({typeof(Float4x4)})"); - + public static Float4x4 Log2(Float4x4 x) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static float Max(float x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(float)}, {typeof(float)})"); - + public static float Max(float x, float y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float2 Max(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Max(Float2 x, Float2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float3 Max(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Max(Float3 x, Float3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float4 Max(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Max(Float4 x, Float4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float1x1 Max(Float1x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Max(Float1x1 x, Float1x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float1x2 Max(Float1x2 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Max(Float1x2 x, Float1x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float1x3 Max(Float1x3 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Max(Float1x3 x, Float1x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float1x4 Max(Float1x4 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Max(Float1x4 x, Float1x4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float2x1 Max(Float2x1 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Max(Float2x1 x, Float2x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float2x2 Max(Float2x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Max(Float2x2 x, Float2x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float2x3 Max(Float2x3 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Max(Float2x3 x, Float2x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float2x4 Max(Float2x4 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Max(Float2x4 x, Float2x4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float3x1 Max(Float3x1 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Max(Float3x1 x, Float3x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float3x2 Max(Float3x2 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Max(Float3x2 x, Float3x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float3x3 Max(Float3x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Max(Float3x3 x, Float3x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float3x4 Max(Float3x4 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Max(Float3x4 x, Float3x4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float4x1 Max(Float4x1 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Max(Float4x1 x, Float4x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float4x2 Max(Float4x2 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Max(Float4x2 x, Float4x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float4x3 Max(Float4x3 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Max(Float4x3 x, Float4x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Float4x4 Max(Float4x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Max(Float4x4 x, Float4x4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static int Max(int x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(int)}, {typeof(int)})"); - + public static int Max(int x, int y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int2 Max(Int2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int2)}, {typeof(Int2)})"); - + public static Int2 Max(Int2 x, Int2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int3 Max(Int3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int3)}, {typeof(Int3)})"); - + public static Int3 Max(Int3 x, Int3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int4 Max(Int4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int4)}, {typeof(Int4)})"); - + public static Int4 Max(Int4 x, Int4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int1x1 Max(Int1x1 x, Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int1x1)}, {typeof(Int1x1)})"); - + public static Int1x1 Max(Int1x1 x, Int1x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int1x2 Max(Int1x2 x, Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int1x2)}, {typeof(Int1x2)})"); - + public static Int1x2 Max(Int1x2 x, Int1x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int1x3 Max(Int1x3 x, Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int1x3)}, {typeof(Int1x3)})"); - + public static Int1x3 Max(Int1x3 x, Int1x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int1x4 Max(Int1x4 x, Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int1x4)}, {typeof(Int1x4)})"); - + public static Int1x4 Max(Int1x4 x, Int1x4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int2x1 Max(Int2x1 x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int2x1)}, {typeof(Int2x1)})"); - + public static Int2x1 Max(Int2x1 x, Int2x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int2x2 Max(Int2x2 x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int2x2)}, {typeof(Int2x2)})"); - + public static Int2x2 Max(Int2x2 x, Int2x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int2x3 Max(Int2x3 x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int2x3)}, {typeof(Int2x3)})"); - + public static Int2x3 Max(Int2x3 x, Int2x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int2x4 Max(Int2x4 x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int2x4)}, {typeof(Int2x4)})"); - + public static Int2x4 Max(Int2x4 x, Int2x4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int3x1 Max(Int3x1 x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int3x1)}, {typeof(Int3x1)})"); - + public static Int3x1 Max(Int3x1 x, Int3x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int3x2 Max(Int3x2 x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int3x2)}, {typeof(Int3x2)})"); - + public static Int3x2 Max(Int3x2 x, Int3x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int3x3 Max(Int3x3 x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int3x3)}, {typeof(Int3x3)})"); - + public static Int3x3 Max(Int3x3 x, Int3x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int3x4 Max(Int3x4 x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int3x4)}, {typeof(Int3x4)})"); - + public static Int3x4 Max(Int3x4 x, Int3x4 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int4x1 Max(Int4x1 x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int4x1)}, {typeof(Int4x1)})"); - + public static Int4x1 Max(Int4x1 x, Int4x1 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int4x2 Max(Int4x2 x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int4x2)}, {typeof(Int4x2)})"); - + public static Int4x2 Max(Int4x2 x, Int4x2 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int4x3 Max(Int4x3 x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int4x3)}, {typeof(Int4x3)})"); - + public static Int4x3 Max(Int4x3 x, Int4x3 y) => default; /// /// Selects the greater between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the largest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("max")] - public static Int4x4 Max(Int4x4 x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Max)}({typeof(Int4x4)}, {typeof(Int4x4)})"); - + public static Int4x4 Max(Int4x4 x, Int4x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static float Min(float x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(float)}, {typeof(float)})"); - + public static float Min(float x, float y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float2 Min(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Min(Float2 x, Float2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float3 Min(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Min(Float3 x, Float3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float4 Min(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Min(Float4 x, Float4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float1x1 Min(Float1x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Min(Float1x1 x, Float1x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float1x2 Min(Float1x2 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Min(Float1x2 x, Float1x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float1x3 Min(Float1x3 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Min(Float1x3 x, Float1x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float1x4 Min(Float1x4 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Min(Float1x4 x, Float1x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float2x1 Min(Float2x1 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Min(Float2x1 x, Float2x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float2x2 Min(Float2x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Min(Float2x2 x, Float2x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float2x3 Min(Float2x3 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Min(Float2x3 x, Float2x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float2x4 Min(Float2x4 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Min(Float2x4 x, Float2x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float3x1 Min(Float3x1 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Min(Float3x1 x, Float3x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float3x2 Min(Float3x2 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Min(Float3x2 x, Float3x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float3x3 Min(Float3x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Min(Float3x3 x, Float3x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float3x4 Min(Float3x4 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Min(Float3x4 x, Float3x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float4x1 Min(Float4x1 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Min(Float4x1 x, Float4x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float4x2 Min(Float4x2 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Min(Float4x2 x, Float4x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float4x3 Min(Float4x3 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Min(Float4x3 x, Float4x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Float4x4 Min(Float4x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Min(Float4x4 x, Float4x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static int Min(int x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(int)}, {typeof(int)})"); - + public static int Min(int x, int y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int2 Min(Int2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int2)}, {typeof(Int2)})"); - + public static Int2 Min(Int2 x, Int2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int3 Min(Int3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int3)}, {typeof(Int3)})"); - + public static Int3 Min(Int3 x, Int3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int4 Min(Int4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int4)}, {typeof(Int4)})"); - + public static Int4 Min(Int4 x, Int4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int1x1 Min(Int1x1 x, Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int1x1)}, {typeof(Int1x1)})"); - + public static Int1x1 Min(Int1x1 x, Int1x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int1x2 Min(Int1x2 x, Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int1x2)}, {typeof(Int1x2)})"); - + public static Int1x2 Min(Int1x2 x, Int1x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int1x3 Min(Int1x3 x, Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int1x3)}, {typeof(Int1x3)})"); - + public static Int1x3 Min(Int1x3 x, Int1x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int1x4 Min(Int1x4 x, Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int1x4)}, {typeof(Int1x4)})"); - + public static Int1x4 Min(Int1x4 x, Int1x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int2x1 Min(Int2x1 x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int2x1)}, {typeof(Int2x1)})"); - + public static Int2x1 Min(Int2x1 x, Int2x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int2x2 Min(Int2x2 x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int2x2)}, {typeof(Int2x2)})"); - + public static Int2x2 Min(Int2x2 x, Int2x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int2x3 Min(Int2x3 x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int2x3)}, {typeof(Int2x3)})"); - + public static Int2x3 Min(Int2x3 x, Int2x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int2x4 Min(Int2x4 x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int2x4)}, {typeof(Int2x4)})"); - + public static Int2x4 Min(Int2x4 x, Int2x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int3x1 Min(Int3x1 x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int3x1)}, {typeof(Int3x1)})"); - + public static Int3x1 Min(Int3x1 x, Int3x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int3x2 Min(Int3x2 x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int3x2)}, {typeof(Int3x2)})"); - + public static Int3x2 Min(Int3x2 x, Int3x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int3x3 Min(Int3x3 x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int3x3)}, {typeof(Int3x3)})"); - + public static Int3x3 Min(Int3x3 x, Int3x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int3x4 Min(Int3x4 x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int3x4)}, {typeof(Int3x4)})"); - + public static Int3x4 Min(Int3x4 x, Int3x4 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int4x1 Min(Int4x1 x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int4x1)}, {typeof(Int4x1)})"); - + public static Int4x1 Min(Int4x1 x, Int4x1 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int4x2 Min(Int4x2 x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int4x2)}, {typeof(Int4x2)})"); - + public static Int4x2 Min(Int4x2 x, Int4x2 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int4x3 Min(Int4x3 x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int4x3)}, {typeof(Int4x3)})"); - + public static Int4x3 Min(Int4x3 x, Int4x3 y) => default; /// /// Selects the lesser between two inputs. /// /// The first input value. /// The second input value. /// The or parameter, whichever is the smallest value. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("min")] - public static Int4x4 Min(Int4x4 x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Min)}({typeof(Int4x4)}, {typeof(Int4x4)})"); - + public static Int4x4 Min(Int4x4 x, Int4x4 y) => default; /// /// Splits a value into fractional and integer parts, each with the same sign as the input value. /// /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static float Modf(float x, out float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(float)}, {typeof(float)})"); @@ -8426,6 +8447,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float2 Modf(Float2 x, out Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float2)}, {typeof(Float2)})"); @@ -8436,6 +8458,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float3 Modf(Float3 x, out Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float3)}, {typeof(Float3)})"); @@ -8446,6 +8469,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float4 Modf(Float4 x, out Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float4)}, {typeof(Float4)})"); @@ -8456,6 +8480,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float1x1 Modf(Float1x1 x, out Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float1x1)}, {typeof(Float1x1)})"); @@ -8466,6 +8491,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float1x2 Modf(Float1x2 x, out Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float1x2)}, {typeof(Float1x2)})"); @@ -8476,6 +8502,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float1x3 Modf(Float1x3 x, out Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float1x3)}, {typeof(Float1x3)})"); @@ -8486,6 +8513,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float1x4 Modf(Float1x4 x, out Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float1x4)}, {typeof(Float1x4)})"); @@ -8496,6 +8524,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float2x1 Modf(Float2x1 x, out Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float2x1)}, {typeof(Float2x1)})"); @@ -8506,6 +8535,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float2x2 Modf(Float2x2 x, out Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float2x2)}, {typeof(Float2x2)})"); @@ -8516,6 +8546,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float2x3 Modf(Float2x3 x, out Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float2x3)}, {typeof(Float2x3)})"); @@ -8526,6 +8557,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float2x4 Modf(Float2x4 x, out Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float2x4)}, {typeof(Float2x4)})"); @@ -8536,6 +8568,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float3x1 Modf(Float3x1 x, out Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float3x1)}, {typeof(Float3x1)})"); @@ -8546,6 +8579,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float3x2 Modf(Float3x2 x, out Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float3x2)}, {typeof(Float3x2)})"); @@ -8556,6 +8590,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float3x3 Modf(Float3x3 x, out Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float3x3)}, {typeof(Float3x3)})"); @@ -8566,6 +8601,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float3x4 Modf(Float3x4 x, out Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float3x4)}, {typeof(Float3x4)})"); @@ -8576,6 +8612,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float4x1 Modf(Float4x1 x, out Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float4x1)}, {typeof(Float4x1)})"); @@ -8586,6 +8623,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float4x2 Modf(Float4x2 x, out Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float4x2)}, {typeof(Float4x2)})"); @@ -8596,6 +8634,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float4x3 Modf(Float4x3 x, out Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float4x3)}, {typeof(Float4x3)})"); @@ -8606,6 +8645,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Float4x4 Modf(Float4x4 x, out Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Float4x4)}, {typeof(Float4x4)})"); @@ -8616,6 +8656,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static int Modf(int x, out int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(int)}, {typeof(int)})"); @@ -8626,6 +8667,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int2 Modf(Int2 x, out Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int2)}, {typeof(Int2)})"); @@ -8636,6 +8678,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int3 Modf(Int3 x, out Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int3)}, {typeof(Int3)})"); @@ -8646,6 +8689,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int4 Modf(Int4 x, out Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int4)}, {typeof(Int4)})"); @@ -8656,6 +8700,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int1x1 Modf(Int1x1 x, out Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int1x1)}, {typeof(Int1x1)})"); @@ -8666,6 +8711,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int1x2 Modf(Int1x2 x, out Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int1x2)}, {typeof(Int1x2)})"); @@ -8676,6 +8722,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int1x3 Modf(Int1x3 x, out Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int1x3)}, {typeof(Int1x3)})"); @@ -8686,6 +8733,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int1x4 Modf(Int1x4 x, out Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int1x4)}, {typeof(Int1x4)})"); @@ -8696,6 +8744,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int2x1 Modf(Int2x1 x, out Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int2x1)}, {typeof(Int2x1)})"); @@ -8706,6 +8755,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int2x2 Modf(Int2x2 x, out Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int2x2)}, {typeof(Int2x2)})"); @@ -8716,6 +8766,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int2x3 Modf(Int2x3 x, out Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int2x3)}, {typeof(Int2x3)})"); @@ -8726,6 +8777,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int2x4 Modf(Int2x4 x, out Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int2x4)}, {typeof(Int2x4)})"); @@ -8736,6 +8788,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int3x1 Modf(Int3x1 x, out Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int3x1)}, {typeof(Int3x1)})"); @@ -8746,6 +8799,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int3x2 Modf(Int3x2 x, out Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int3x2)}, {typeof(Int3x2)})"); @@ -8756,6 +8810,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int3x3 Modf(Int3x3 x, out Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int3x3)}, {typeof(Int3x3)})"); @@ -8766,6 +8821,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int3x4 Modf(Int3x4 x, out Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int3x4)}, {typeof(Int3x4)})"); @@ -8776,6 +8832,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int4x1 Modf(Int4x1 x, out Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int4x1)}, {typeof(Int4x1)})"); @@ -8786,6 +8843,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int4x2 Modf(Int4x2 x, out Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int4x2)}, {typeof(Int4x2)})"); @@ -8796,6 +8854,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int4x3 Modf(Int4x3 x, out Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int4x3)}, {typeof(Int4x3)})"); @@ -8806,6 +8865,7 @@ namespace ComputeSharp /// The input value. /// The resulting integer portion. /// The signed-fractional portion of . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("modf")] public static Int4x4 Modf(Int4x4 x, out Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Modf)}({typeof(Int4x4)}, {typeof(Int4x4)})"); @@ -8816,4516 +8876,4517 @@ namespace ComputeSharp /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(float x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(float)})"); - + public static float Mul(float x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(int x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(int)})"); - + public static int Mul(int x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(float x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float2)})"); - + public static Float2 Mul(float x, Float2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(float x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float3)})"); - + public static Float3 Mul(float x, Float3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(float x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float4)})"); - + public static Float4 Mul(float x, Float4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(int x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int2)})"); - + public static Int2 Mul(int x, Int2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(int x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int3)})"); - + public static Int3 Mul(int x, Int3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(int x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int4)})"); - + public static Int4 Mul(int x, Int4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x1 Mul(float x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float1x1)})"); - + public static Float1x1 Mul(float x, Float1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x2 Mul(float x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float1x2)})"); - + public static Float1x2 Mul(float x, Float1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x3 Mul(float x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float1x3)})"); - + public static Float1x3 Mul(float x, Float1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x4 Mul(float x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float1x4)})"); - + public static Float1x4 Mul(float x, Float1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x1 Mul(float x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float2x1)})"); - + public static Float2x1 Mul(float x, Float2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x2 Mul(float x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float2x2)})"); - + public static Float2x2 Mul(float x, Float2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x3 Mul(float x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float2x3)})"); - + public static Float2x3 Mul(float x, Float2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x4 Mul(float x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float2x4)})"); - + public static Float2x4 Mul(float x, Float2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x1 Mul(float x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float3x1)})"); - + public static Float3x1 Mul(float x, Float3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x2 Mul(float x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float3x2)})"); - + public static Float3x2 Mul(float x, Float3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x3 Mul(float x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float3x3)})"); - + public static Float3x3 Mul(float x, Float3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x4 Mul(float x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float3x4)})"); - + public static Float3x4 Mul(float x, Float3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x1 Mul(float x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float4x1)})"); - + public static Float4x1 Mul(float x, Float4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x2 Mul(float x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float4x2)})"); - + public static Float4x2 Mul(float x, Float4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x3 Mul(float x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float4x3)})"); - + public static Float4x3 Mul(float x, Float4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x4 Mul(float x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(float)}, {typeof(Float4x4)})"); - + public static Float4x4 Mul(float x, Float4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x1 Mul(int x, Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int1x1)})"); - + public static Int1x1 Mul(int x, Int1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x2 Mul(int x, Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int1x2)})"); - + public static Int1x2 Mul(int x, Int1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x3 Mul(int x, Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int1x3)})"); - + public static Int1x3 Mul(int x, Int1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x4 Mul(int x, Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int1x4)})"); - + public static Int1x4 Mul(int x, Int1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x1 Mul(int x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int2x1)})"); - + public static Int2x1 Mul(int x, Int2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x2 Mul(int x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int2x2)})"); - + public static Int2x2 Mul(int x, Int2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x3 Mul(int x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int2x3)})"); - + public static Int2x3 Mul(int x, Int2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x4 Mul(int x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int2x4)})"); - + public static Int2x4 Mul(int x, Int2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x1 Mul(int x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int3x1)})"); - + public static Int3x1 Mul(int x, Int3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x2 Mul(int x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int3x2)})"); - + public static Int3x2 Mul(int x, Int3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x3 Mul(int x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int3x3)})"); - + public static Int3x3 Mul(int x, Int3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x4 Mul(int x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int3x4)})"); - + public static Int3x4 Mul(int x, Int3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x1 Mul(int x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int4x1)})"); - + public static Int4x1 Mul(int x, Int4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x2 Mul(int x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int4x2)})"); - + public static Int4x2 Mul(int x, Int4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x3 Mul(int x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int4x3)})"); - + public static Int4x3 Mul(int x, Int4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x4 Mul(int x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(int)}, {typeof(Int4x4)})"); - + public static Int4x4 Mul(int x, Int4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(Float2 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2)}, {typeof(float)})"); - + public static Float2 Mul(Float2 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(Float3 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3)}, {typeof(float)})"); - + public static Float3 Mul(Float3 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(Float4 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4)}, {typeof(float)})"); - + public static Float4 Mul(Float4 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(Int2 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2)}, {typeof(int)})"); - + public static Int2 Mul(Int2 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(Int3 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3)}, {typeof(int)})"); - + public static Int3 Mul(Int3 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(Int4 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4)}, {typeof(int)})"); - + public static Int4 Mul(Int4 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2)}, {typeof(Float2)})"); - + public static float Mul(Float2 x, Float2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3)}, {typeof(Float3)})"); - + public static float Mul(Float3 x, Float3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4)}, {typeof(Float4)})"); - + public static float Mul(Float4 x, Float4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2)}, {typeof(Int2)})"); - + public static int Mul(Int2 x, Int2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3)}, {typeof(Int3)})"); - + public static int Mul(Int3 x, Int3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4)}, {typeof(Int4)})"); - + public static int Mul(Int4 x, Int4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float2 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2)}, {typeof(Float2x1)})"); - + public static float Mul(Float2 x, Float2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(Float2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2)}, {typeof(Float2x2)})"); - + public static Float2 Mul(Float2 x, Float2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(Float2 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2)}, {typeof(Float2x3)})"); - + public static Float3 Mul(Float2 x, Float2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(Float2 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2)}, {typeof(Float2x4)})"); - + public static Float4 Mul(Float2 x, Float2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float3 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3)}, {typeof(Float3x1)})"); - + public static float Mul(Float3 x, Float3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(Float3 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3)}, {typeof(Float3x2)})"); - + public static Float2 Mul(Float3 x, Float3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(Float3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3)}, {typeof(Float3x3)})"); - + public static Float3 Mul(Float3 x, Float3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(Float3 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3)}, {typeof(Float3x4)})"); - + public static Float4 Mul(Float3 x, Float3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float4 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4)}, {typeof(Float4x1)})"); - + public static float Mul(Float4 x, Float4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(Float4 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4)}, {typeof(Float4x2)})"); - + public static Float2 Mul(Float4 x, Float4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(Float4 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4)}, {typeof(Float4x3)})"); - + public static Float3 Mul(Float4 x, Float4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(Float4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4)}, {typeof(Float4x4)})"); - + public static Float4 Mul(Float4 x, Float4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int2 x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2)}, {typeof(Int2x1)})"); - + public static int Mul(Int2 x, Int2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(Int2 x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2)}, {typeof(Int2x2)})"); - + public static Int2 Mul(Int2 x, Int2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(Int2 x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2)}, {typeof(Int2x3)})"); - + public static Int3 Mul(Int2 x, Int2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(Int2 x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2)}, {typeof(Int2x4)})"); - + public static Int4 Mul(Int2 x, Int2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int3 x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3)}, {typeof(Int3x1)})"); - + public static int Mul(Int3 x, Int3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(Int3 x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3)}, {typeof(Int3x2)})"); - + public static Int2 Mul(Int3 x, Int3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(Int3 x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3)}, {typeof(Int3x3)})"); - + public static Int3 Mul(Int3 x, Int3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(Int3 x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3)}, {typeof(Int3x4)})"); - + public static Int4 Mul(Int3 x, Int3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int4 x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4)}, {typeof(Int4x1)})"); - + public static int Mul(Int4 x, Int4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(Int4 x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4)}, {typeof(Int4x2)})"); - + public static Int2 Mul(Int4 x, Int4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(Int4 x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4)}, {typeof(Int4x3)})"); - + public static Int3 Mul(Int4 x, Int4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(Int4 x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4)}, {typeof(Int4x4)})"); - + public static Int4 Mul(Int4 x, Int4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x1 Mul(Float1x1 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x1)}, {typeof(float)})"); - + public static Float1x1 Mul(Float1x1 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x2 Mul(Float1x2 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x2)}, {typeof(float)})"); - + public static Float1x2 Mul(Float1x2 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x3 Mul(Float1x3 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x3)}, {typeof(float)})"); - + public static Float1x3 Mul(Float1x3 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x4 Mul(Float1x4 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x4)}, {typeof(float)})"); - + public static Float1x4 Mul(Float1x4 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x1 Mul(Float2x1 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x1)}, {typeof(float)})"); - + public static Float2x1 Mul(Float2x1 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x2 Mul(Float2x2 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x2)}, {typeof(float)})"); - + public static Float2x2 Mul(Float2x2 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x3 Mul(Float2x3 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x3)}, {typeof(float)})"); - + public static Float2x3 Mul(Float2x3 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x4 Mul(Float2x4 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x4)}, {typeof(float)})"); - + public static Float2x4 Mul(Float2x4 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x1 Mul(Float3x1 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x1)}, {typeof(float)})"); - + public static Float3x1 Mul(Float3x1 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x2 Mul(Float3x2 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x2)}, {typeof(float)})"); - + public static Float3x2 Mul(Float3x2 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x3 Mul(Float3x3 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x3)}, {typeof(float)})"); - + public static Float3x3 Mul(Float3x3 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x4 Mul(Float3x4 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x4)}, {typeof(float)})"); - + public static Float3x4 Mul(Float3x4 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x1 Mul(Float4x1 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x1)}, {typeof(float)})"); - + public static Float4x1 Mul(Float4x1 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x2 Mul(Float4x2 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x2)}, {typeof(float)})"); - + public static Float4x2 Mul(Float4x2 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x3 Mul(Float4x3 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x3)}, {typeof(float)})"); - + public static Float4x3 Mul(Float4x3 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x4 Mul(Float4x4 x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x4)}, {typeof(float)})"); - + public static Float4x4 Mul(Float4x4 x, float y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x1 Mul(Int1x1 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x1)}, {typeof(int)})"); - + public static Int1x1 Mul(Int1x1 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x2 Mul(Int1x2 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x2)}, {typeof(int)})"); - + public static Int1x2 Mul(Int1x2 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x3 Mul(Int1x3 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x3)}, {typeof(int)})"); - + public static Int1x3 Mul(Int1x3 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x4 Mul(Int1x4 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x4)}, {typeof(int)})"); - + public static Int1x4 Mul(Int1x4 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x1 Mul(Int2x1 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x1)}, {typeof(int)})"); - + public static Int2x1 Mul(Int2x1 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x2 Mul(Int2x2 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x2)}, {typeof(int)})"); - + public static Int2x2 Mul(Int2x2 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x3 Mul(Int2x3 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x3)}, {typeof(int)})"); - + public static Int2x3 Mul(Int2x3 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x4 Mul(Int2x4 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x4)}, {typeof(int)})"); - + public static Int2x4 Mul(Int2x4 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x1 Mul(Int3x1 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x1)}, {typeof(int)})"); - + public static Int3x1 Mul(Int3x1 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x2 Mul(Int3x2 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x2)}, {typeof(int)})"); - + public static Int3x2 Mul(Int3x2 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x3 Mul(Int3x3 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x3)}, {typeof(int)})"); - + public static Int3x3 Mul(Int3x3 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x4 Mul(Int3x4 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x4)}, {typeof(int)})"); - + public static Int3x4 Mul(Int3x4 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x1 Mul(Int4x1 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x1)}, {typeof(int)})"); - + public static Int4x1 Mul(Int4x1 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x2 Mul(Int4x2 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x2)}, {typeof(int)})"); - + public static Int4x2 Mul(Int4x2 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x3 Mul(Int4x3 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x3)}, {typeof(int)})"); - + public static Int4x3 Mul(Int4x3 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x4 Mul(Int4x4 x, int y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x4)}, {typeof(int)})"); - + public static Int4x4 Mul(Int4x4 x, int y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float1x2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x2)}, {typeof(Float2)})"); - + public static float Mul(Float1x2 x, Float2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float1x3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x3)}, {typeof(Float3)})"); - + public static float Mul(Float1x3 x, Float3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static float Mul(Float1x4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x4)}, {typeof(Float4)})"); - + public static float Mul(Float1x4 x, Float4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(Float2x2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x2)}, {typeof(Float2)})"); - + public static Float2 Mul(Float2x2 x, Float2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(Float2x3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x3)}, {typeof(Float3)})"); - + public static Float2 Mul(Float2x3 x, Float3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2 Mul(Float2x4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x4)}, {typeof(Float4)})"); - + public static Float2 Mul(Float2x4 x, Float4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(Float3x2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x2)}, {typeof(Float2)})"); - + public static Float3 Mul(Float3x2 x, Float2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(Float3x3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x3)}, {typeof(Float3)})"); - + public static Float3 Mul(Float3x3 x, Float3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3 Mul(Float3x4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x4)}, {typeof(Float4)})"); - + public static Float3 Mul(Float3x4 x, Float4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(Float4x2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x2)}, {typeof(Float2)})"); - + public static Float4 Mul(Float4x2 x, Float2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(Float4x3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x3)}, {typeof(Float3)})"); - + public static Float4 Mul(Float4x3 x, Float3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4 Mul(Float4x4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x4)}, {typeof(Float4)})"); - + public static Float4 Mul(Float4x4 x, Float4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int1x2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x2)}, {typeof(Int2)})"); - + public static int Mul(Int1x2 x, Int2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int1x3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x3)}, {typeof(Int3)})"); - + public static int Mul(Int1x3 x, Int3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static int Mul(Int1x4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x4)}, {typeof(Int4)})"); - + public static int Mul(Int1x4 x, Int4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(Int2x2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x2)}, {typeof(Int2)})"); - + public static Int2 Mul(Int2x2 x, Int2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(Int2x3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x3)}, {typeof(Int3)})"); - + public static Int2 Mul(Int2x3 x, Int3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2 Mul(Int2x4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x4)}, {typeof(Int4)})"); - + public static Int2 Mul(Int2x4 x, Int4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(Int3x2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x2)}, {typeof(Int2)})"); - + public static Int3 Mul(Int3x2 x, Int2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(Int3x3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x3)}, {typeof(Int3)})"); - + public static Int3 Mul(Int3x3 x, Int3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3 Mul(Int3x4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x4)}, {typeof(Int4)})"); - + public static Int3 Mul(Int3x4 x, Int4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(Int4x2 x, Int2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x2)}, {typeof(Int2)})"); - + public static Int4 Mul(Int4x2 x, Int2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(Int4x3 x, Int3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x3)}, {typeof(Int3)})"); - + public static Int4 Mul(Int4x3 x, Int3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4 Mul(Int4x4 x, Int4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x4)}, {typeof(Int4)})"); - + public static Int4 Mul(Int4x4 x, Int4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x1 Mul(Float1x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Mul(Float1x1 x, Float1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x2 Mul(Float1x1 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x1)}, {typeof(Float1x2)})"); - + public static Float1x2 Mul(Float1x1 x, Float1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x3 Mul(Float1x1 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x1)}, {typeof(Float1x3)})"); - + public static Float1x3 Mul(Float1x1 x, Float1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x4 Mul(Float1x1 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x1)}, {typeof(Float1x4)})"); - + public static Float1x4 Mul(Float1x1 x, Float1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x1 Mul(Float1x2 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x2)}, {typeof(Float2x1)})"); - + public static Float1x1 Mul(Float1x2 x, Float2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x2 Mul(Float1x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x2)}, {typeof(Float2x2)})"); - + public static Float1x2 Mul(Float1x2 x, Float2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x3 Mul(Float1x2 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x2)}, {typeof(Float2x3)})"); - + public static Float1x3 Mul(Float1x2 x, Float2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x4 Mul(Float1x2 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x2)}, {typeof(Float2x4)})"); - + public static Float1x4 Mul(Float1x2 x, Float2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x1 Mul(Float1x3 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x3)}, {typeof(Float3x1)})"); - + public static Float1x1 Mul(Float1x3 x, Float3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x2 Mul(Float1x3 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x3)}, {typeof(Float3x2)})"); - + public static Float1x2 Mul(Float1x3 x, Float3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x3 Mul(Float1x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x3)}, {typeof(Float3x3)})"); - + public static Float1x3 Mul(Float1x3 x, Float3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x4 Mul(Float1x3 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x3)}, {typeof(Float3x4)})"); - + public static Float1x4 Mul(Float1x3 x, Float3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x1 Mul(Float1x4 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x4)}, {typeof(Float4x1)})"); - + public static Float1x1 Mul(Float1x4 x, Float4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x2 Mul(Float1x4 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x4)}, {typeof(Float4x2)})"); - + public static Float1x2 Mul(Float1x4 x, Float4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x3 Mul(Float1x4 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x4)}, {typeof(Float4x3)})"); - + public static Float1x3 Mul(Float1x4 x, Float4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float1x4 Mul(Float1x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float1x4)}, {typeof(Float4x4)})"); - + public static Float1x4 Mul(Float1x4 x, Float4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x1 Mul(Float2x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x1)}, {typeof(Float1x1)})"); - + public static Float2x1 Mul(Float2x1 x, Float1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x2 Mul(Float2x1 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x1)}, {typeof(Float1x2)})"); - + public static Float2x2 Mul(Float2x1 x, Float1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x3 Mul(Float2x1 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x1)}, {typeof(Float1x3)})"); - + public static Float2x3 Mul(Float2x1 x, Float1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x4 Mul(Float2x1 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x1)}, {typeof(Float1x4)})"); - + public static Float2x4 Mul(Float2x1 x, Float1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x1 Mul(Float2x2 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x2)}, {typeof(Float2x1)})"); - + public static Float2x1 Mul(Float2x2 x, Float2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x2 Mul(Float2x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Mul(Float2x2 x, Float2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x3 Mul(Float2x2 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x2)}, {typeof(Float2x3)})"); - + public static Float2x3 Mul(Float2x2 x, Float2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x4 Mul(Float2x2 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x2)}, {typeof(Float2x4)})"); - + public static Float2x4 Mul(Float2x2 x, Float2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x1 Mul(Float2x3 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x3)}, {typeof(Float3x1)})"); - + public static Float2x1 Mul(Float2x3 x, Float3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x2 Mul(Float2x3 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x3)}, {typeof(Float3x2)})"); - + public static Float2x2 Mul(Float2x3 x, Float3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x3 Mul(Float2x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x3)}, {typeof(Float3x3)})"); - + public static Float2x3 Mul(Float2x3 x, Float3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x4 Mul(Float2x3 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x3)}, {typeof(Float3x4)})"); - + public static Float2x4 Mul(Float2x3 x, Float3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x1 Mul(Float2x4 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x4)}, {typeof(Float4x1)})"); - + public static Float2x1 Mul(Float2x4 x, Float4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x2 Mul(Float2x4 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x4)}, {typeof(Float4x2)})"); - + public static Float2x2 Mul(Float2x4 x, Float4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x3 Mul(Float2x4 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x4)}, {typeof(Float4x3)})"); - + public static Float2x3 Mul(Float2x4 x, Float4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float2x4 Mul(Float2x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float2x4)}, {typeof(Float4x4)})"); - + public static Float2x4 Mul(Float2x4 x, Float4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x1 Mul(Float3x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x1)}, {typeof(Float1x1)})"); - + public static Float3x1 Mul(Float3x1 x, Float1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x2 Mul(Float3x1 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x1)}, {typeof(Float1x2)})"); - + public static Float3x2 Mul(Float3x1 x, Float1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x3 Mul(Float3x1 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x1)}, {typeof(Float1x3)})"); - + public static Float3x3 Mul(Float3x1 x, Float1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x4 Mul(Float3x1 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x1)}, {typeof(Float1x4)})"); - + public static Float3x4 Mul(Float3x1 x, Float1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x1 Mul(Float3x2 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x2)}, {typeof(Float2x1)})"); - + public static Float3x1 Mul(Float3x2 x, Float2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x2 Mul(Float3x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x2)}, {typeof(Float2x2)})"); - + public static Float3x2 Mul(Float3x2 x, Float2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x3 Mul(Float3x2 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x2)}, {typeof(Float2x3)})"); - + public static Float3x3 Mul(Float3x2 x, Float2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x4 Mul(Float3x2 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x2)}, {typeof(Float2x4)})"); - + public static Float3x4 Mul(Float3x2 x, Float2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x1 Mul(Float3x3 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x3)}, {typeof(Float3x1)})"); - + public static Float3x1 Mul(Float3x3 x, Float3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x2 Mul(Float3x3 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x3)}, {typeof(Float3x2)})"); - + public static Float3x2 Mul(Float3x3 x, Float3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x3 Mul(Float3x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Mul(Float3x3 x, Float3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x4 Mul(Float3x3 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x3)}, {typeof(Float3x4)})"); - + public static Float3x4 Mul(Float3x3 x, Float3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x1 Mul(Float3x4 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x4)}, {typeof(Float4x1)})"); - + public static Float3x1 Mul(Float3x4 x, Float4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x2 Mul(Float3x4 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x4)}, {typeof(Float4x2)})"); - + public static Float3x2 Mul(Float3x4 x, Float4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x3 Mul(Float3x4 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x4)}, {typeof(Float4x3)})"); - + public static Float3x3 Mul(Float3x4 x, Float4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float3x4 Mul(Float3x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float3x4)}, {typeof(Float4x4)})"); - + public static Float3x4 Mul(Float3x4 x, Float4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x1 Mul(Float4x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x1)}, {typeof(Float1x1)})"); - + public static Float4x1 Mul(Float4x1 x, Float1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x2 Mul(Float4x1 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x1)}, {typeof(Float1x2)})"); - + public static Float4x2 Mul(Float4x1 x, Float1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x3 Mul(Float4x1 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x1)}, {typeof(Float1x3)})"); - + public static Float4x3 Mul(Float4x1 x, Float1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x4 Mul(Float4x1 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x1)}, {typeof(Float1x4)})"); - + public static Float4x4 Mul(Float4x1 x, Float1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x1 Mul(Float4x2 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x2)}, {typeof(Float2x1)})"); - + public static Float4x1 Mul(Float4x2 x, Float2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x2 Mul(Float4x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x2)}, {typeof(Float2x2)})"); - + public static Float4x2 Mul(Float4x2 x, Float2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x3 Mul(Float4x2 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x2)}, {typeof(Float2x3)})"); - + public static Float4x3 Mul(Float4x2 x, Float2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x4 Mul(Float4x2 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x2)}, {typeof(Float2x4)})"); - + public static Float4x4 Mul(Float4x2 x, Float2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x1 Mul(Float4x3 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x3)}, {typeof(Float3x1)})"); - + public static Float4x1 Mul(Float4x3 x, Float3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x2 Mul(Float4x3 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x3)}, {typeof(Float3x2)})"); - + public static Float4x2 Mul(Float4x3 x, Float3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x3 Mul(Float4x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x3)}, {typeof(Float3x3)})"); - + public static Float4x3 Mul(Float4x3 x, Float3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x4 Mul(Float4x3 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x3)}, {typeof(Float3x4)})"); - + public static Float4x4 Mul(Float4x3 x, Float3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x1 Mul(Float4x4 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x4)}, {typeof(Float4x1)})"); - + public static Float4x1 Mul(Float4x4 x, Float4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x2 Mul(Float4x4 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x4)}, {typeof(Float4x2)})"); - + public static Float4x2 Mul(Float4x4 x, Float4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x3 Mul(Float4x4 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x4)}, {typeof(Float4x3)})"); - + public static Float4x3 Mul(Float4x4 x, Float4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Float4x4 Mul(Float4x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Mul(Float4x4 x, Float4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x1 Mul(Int1x1 x, Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x1)}, {typeof(Int1x1)})"); - + public static Int1x1 Mul(Int1x1 x, Int1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x2 Mul(Int1x1 x, Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x1)}, {typeof(Int1x2)})"); - + public static Int1x2 Mul(Int1x1 x, Int1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x3 Mul(Int1x1 x, Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x1)}, {typeof(Int1x3)})"); - + public static Int1x3 Mul(Int1x1 x, Int1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x4 Mul(Int1x1 x, Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x1)}, {typeof(Int1x4)})"); - + public static Int1x4 Mul(Int1x1 x, Int1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x1 Mul(Int1x2 x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x2)}, {typeof(Int2x1)})"); - + public static Int1x1 Mul(Int1x2 x, Int2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x2 Mul(Int1x2 x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x2)}, {typeof(Int2x2)})"); - + public static Int1x2 Mul(Int1x2 x, Int2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x3 Mul(Int1x2 x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x2)}, {typeof(Int2x3)})"); - + public static Int1x3 Mul(Int1x2 x, Int2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x4 Mul(Int1x2 x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x2)}, {typeof(Int2x4)})"); - + public static Int1x4 Mul(Int1x2 x, Int2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x1 Mul(Int1x3 x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x3)}, {typeof(Int3x1)})"); - + public static Int1x1 Mul(Int1x3 x, Int3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x2 Mul(Int1x3 x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x3)}, {typeof(Int3x2)})"); - + public static Int1x2 Mul(Int1x3 x, Int3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x3 Mul(Int1x3 x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x3)}, {typeof(Int3x3)})"); - + public static Int1x3 Mul(Int1x3 x, Int3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x4 Mul(Int1x3 x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x3)}, {typeof(Int3x4)})"); - + public static Int1x4 Mul(Int1x3 x, Int3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x1 Mul(Int1x4 x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x4)}, {typeof(Int4x1)})"); - + public static Int1x1 Mul(Int1x4 x, Int4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x2 Mul(Int1x4 x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x4)}, {typeof(Int4x2)})"); - + public static Int1x2 Mul(Int1x4 x, Int4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x3 Mul(Int1x4 x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x4)}, {typeof(Int4x3)})"); - + public static Int1x3 Mul(Int1x4 x, Int4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int1x4 Mul(Int1x4 x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int1x4)}, {typeof(Int4x4)})"); - + public static Int1x4 Mul(Int1x4 x, Int4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x1 Mul(Int2x1 x, Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x1)}, {typeof(Int1x1)})"); - + public static Int2x1 Mul(Int2x1 x, Int1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x2 Mul(Int2x1 x, Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x1)}, {typeof(Int1x2)})"); - + public static Int2x2 Mul(Int2x1 x, Int1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x3 Mul(Int2x1 x, Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x1)}, {typeof(Int1x3)})"); - + public static Int2x3 Mul(Int2x1 x, Int1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x4 Mul(Int2x1 x, Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x1)}, {typeof(Int1x4)})"); - + public static Int2x4 Mul(Int2x1 x, Int1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x1 Mul(Int2x2 x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x2)}, {typeof(Int2x1)})"); - + public static Int2x1 Mul(Int2x2 x, Int2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x2 Mul(Int2x2 x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x2)}, {typeof(Int2x2)})"); - + public static Int2x2 Mul(Int2x2 x, Int2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x3 Mul(Int2x2 x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x2)}, {typeof(Int2x3)})"); - + public static Int2x3 Mul(Int2x2 x, Int2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x4 Mul(Int2x2 x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x2)}, {typeof(Int2x4)})"); - + public static Int2x4 Mul(Int2x2 x, Int2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x1 Mul(Int2x3 x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x3)}, {typeof(Int3x1)})"); - + public static Int2x1 Mul(Int2x3 x, Int3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x2 Mul(Int2x3 x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x3)}, {typeof(Int3x2)})"); - + public static Int2x2 Mul(Int2x3 x, Int3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x3 Mul(Int2x3 x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x3)}, {typeof(Int3x3)})"); - + public static Int2x3 Mul(Int2x3 x, Int3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x4 Mul(Int2x3 x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x3)}, {typeof(Int3x4)})"); - + public static Int2x4 Mul(Int2x3 x, Int3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x1 Mul(Int2x4 x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x4)}, {typeof(Int4x1)})"); - + public static Int2x1 Mul(Int2x4 x, Int4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x2 Mul(Int2x4 x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x4)}, {typeof(Int4x2)})"); - + public static Int2x2 Mul(Int2x4 x, Int4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x3 Mul(Int2x4 x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x4)}, {typeof(Int4x3)})"); - + public static Int2x3 Mul(Int2x4 x, Int4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int2x4 Mul(Int2x4 x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int2x4)}, {typeof(Int4x4)})"); - + public static Int2x4 Mul(Int2x4 x, Int4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x1 Mul(Int3x1 x, Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x1)}, {typeof(Int1x1)})"); - + public static Int3x1 Mul(Int3x1 x, Int1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x2 Mul(Int3x1 x, Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x1)}, {typeof(Int1x2)})"); - + public static Int3x2 Mul(Int3x1 x, Int1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x3 Mul(Int3x1 x, Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x1)}, {typeof(Int1x3)})"); - + public static Int3x3 Mul(Int3x1 x, Int1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x4 Mul(Int3x1 x, Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x1)}, {typeof(Int1x4)})"); - + public static Int3x4 Mul(Int3x1 x, Int1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x1 Mul(Int3x2 x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x2)}, {typeof(Int2x1)})"); - + public static Int3x1 Mul(Int3x2 x, Int2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x2 Mul(Int3x2 x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x2)}, {typeof(Int2x2)})"); - + public static Int3x2 Mul(Int3x2 x, Int2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x3 Mul(Int3x2 x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x2)}, {typeof(Int2x3)})"); - + public static Int3x3 Mul(Int3x2 x, Int2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x4 Mul(Int3x2 x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x2)}, {typeof(Int2x4)})"); - + public static Int3x4 Mul(Int3x2 x, Int2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x1 Mul(Int3x3 x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x3)}, {typeof(Int3x1)})"); - + public static Int3x1 Mul(Int3x3 x, Int3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x2 Mul(Int3x3 x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x3)}, {typeof(Int3x2)})"); - + public static Int3x2 Mul(Int3x3 x, Int3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x3 Mul(Int3x3 x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x3)}, {typeof(Int3x3)})"); - + public static Int3x3 Mul(Int3x3 x, Int3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x4 Mul(Int3x3 x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x3)}, {typeof(Int3x4)})"); - + public static Int3x4 Mul(Int3x3 x, Int3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x1 Mul(Int3x4 x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x4)}, {typeof(Int4x1)})"); - + public static Int3x1 Mul(Int3x4 x, Int4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x2 Mul(Int3x4 x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x4)}, {typeof(Int4x2)})"); - + public static Int3x2 Mul(Int3x4 x, Int4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x3 Mul(Int3x4 x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x4)}, {typeof(Int4x3)})"); - + public static Int3x3 Mul(Int3x4 x, Int4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int3x4 Mul(Int3x4 x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int3x4)}, {typeof(Int4x4)})"); - + public static Int3x4 Mul(Int3x4 x, Int4x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x1 Mul(Int4x1 x, Int1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x1)}, {typeof(Int1x1)})"); - + public static Int4x1 Mul(Int4x1 x, Int1x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x2 Mul(Int4x1 x, Int1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x1)}, {typeof(Int1x2)})"); - + public static Int4x2 Mul(Int4x1 x, Int1x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x3 Mul(Int4x1 x, Int1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x1)}, {typeof(Int1x3)})"); - + public static Int4x3 Mul(Int4x1 x, Int1x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x4 Mul(Int4x1 x, Int1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x1)}, {typeof(Int1x4)})"); - + public static Int4x4 Mul(Int4x1 x, Int1x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x1 Mul(Int4x2 x, Int2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x2)}, {typeof(Int2x1)})"); - + public static Int4x1 Mul(Int4x2 x, Int2x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x2 Mul(Int4x2 x, Int2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x2)}, {typeof(Int2x2)})"); - + public static Int4x2 Mul(Int4x2 x, Int2x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x3 Mul(Int4x2 x, Int2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x2)}, {typeof(Int2x3)})"); - + public static Int4x3 Mul(Int4x2 x, Int2x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x4 Mul(Int4x2 x, Int2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x2)}, {typeof(Int2x4)})"); - + public static Int4x4 Mul(Int4x2 x, Int2x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x1 Mul(Int4x3 x, Int3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x3)}, {typeof(Int3x1)})"); - + public static Int4x1 Mul(Int4x3 x, Int3x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x2 Mul(Int4x3 x, Int3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x3)}, {typeof(Int3x2)})"); - + public static Int4x2 Mul(Int4x3 x, Int3x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x3 Mul(Int4x3 x, Int3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x3)}, {typeof(Int3x3)})"); - + public static Int4x3 Mul(Int4x3 x, Int3x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x4 Mul(Int4x3 x, Int3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x3)}, {typeof(Int3x4)})"); - + public static Int4x4 Mul(Int4x3 x, Int3x4 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x1 Mul(Int4x4 x, Int4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x4)}, {typeof(Int4x1)})"); - + public static Int4x1 Mul(Int4x4 x, Int4x1 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x2 Mul(Int4x4 x, Int4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x4)}, {typeof(Int4x2)})"); - + public static Int4x2 Mul(Int4x4 x, Int4x2 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x3 Mul(Int4x4 x, Int4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x4)}, {typeof(Int4x3)})"); - + public static Int4x3 Mul(Int4x4 x, Int4x3 y) => default; /// /// Multiplies two values using matrix math. /// /// The first input value. /// The second input value. /// The result of times . The result has the dimension -rows by -columns. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("mul")] - public static Int4x4 Mul(Int4x4 x, Int4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Mul)}({typeof(Int4x4)}, {typeof(Int4x4)})"); - + public static Int4x4 Mul(Int4x4 x, Int4x4 y) => default; /// /// Generates a random value using the Perlin-noise algorithm. /// /// A floating-point vector from which to generate Perlin noise. /// The Perlin noise value within a range between -1 and 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("noise")] - public static float Noise(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Noise)}({typeof(Float2)})"); - + public static float Noise(Float2 x) => default; /// /// Generates a random value using the Perlin-noise algorithm. /// /// A floating-point vector from which to generate Perlin noise. /// The Perlin noise value within a range between -1 and 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("noise")] - public static float Noise(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Noise)}({typeof(Float3)})"); - + public static float Noise(Float3 x) => default; /// /// Generates a random value using the Perlin-noise algorithm. /// /// A floating-point vector from which to generate Perlin noise. /// The Perlin noise value within a range between -1 and 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("noise")] - public static float Noise(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Noise)}({typeof(Float4)})"); - + public static float Noise(Float4 x) => default; /// /// Normalizes the specified floating-point vector according to x / length(x). /// /// The specified floating-point vector. /// The normalized parameter. If the length of the parameter is 0, the result is indefinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("normalize")] - public static float Normalize(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Normalize)}({typeof(Float2)})"); - + public static float Normalize(Float2 x) => default; /// /// Normalizes the specified floating-point vector according to x / length(x). /// /// The specified floating-point vector. /// The normalized parameter. If the length of the parameter is 0, the result is indefinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("normalize")] - public static float Normalize(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Normalize)}({typeof(Float3)})"); - + public static float Normalize(Float3 x) => default; /// /// Normalizes the specified floating-point vector according to x / length(x). /// /// The specified floating-point vector. /// The normalized parameter. If the length of the parameter is 0, the result is indefinite. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("normalize")] - public static float Normalize(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Normalize)}({typeof(Float4)})"); - + public static float Normalize(Float4 x) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static float Pow(float x, float y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(float)}, {typeof(float)})"); - + public static float Pow(float x, float y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float2 Pow(Float2 x, Float2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Pow(Float2 x, Float2 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float3 Pow(Float3 x, Float3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Pow(Float3 x, Float3 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float4 Pow(Float4 x, Float4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Pow(Float4 x, Float4 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float1x1 Pow(Float1x1 x, Float1x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Pow(Float1x1 x, Float1x1 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float1x2 Pow(Float1x2 x, Float1x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Pow(Float1x2 x, Float1x2 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float1x3 Pow(Float1x3 x, Float1x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Pow(Float1x3 x, Float1x3 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float1x4 Pow(Float1x4 x, Float1x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Pow(Float1x4 x, Float1x4 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float2x1 Pow(Float2x1 x, Float2x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Pow(Float2x1 x, Float2x1 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float2x2 Pow(Float2x2 x, Float2x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Pow(Float2x2 x, Float2x2 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float2x3 Pow(Float2x3 x, Float2x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Pow(Float2x3 x, Float2x3 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float2x4 Pow(Float2x4 x, Float2x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Pow(Float2x4 x, Float2x4 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float3x1 Pow(Float3x1 x, Float3x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Pow(Float3x1 x, Float3x1 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float3x2 Pow(Float3x2 x, Float3x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Pow(Float3x2 x, Float3x2 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float3x3 Pow(Float3x3 x, Float3x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Pow(Float3x3 x, Float3x3 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float3x4 Pow(Float3x4 x, Float3x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Pow(Float3x4 x, Float3x4 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float4x1 Pow(Float4x1 x, Float4x1 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Pow(Float4x1 x, Float4x1 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float4x2 Pow(Float4x2 x, Float4x2 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Pow(Float4x2 x, Float4x2 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float4x3 Pow(Float4x3 x, Float4x3 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Pow(Float4x3 x, Float4x3 y) => default; /// /// Returns the specified value raised to the specified power. /// /// The specified value. /// The specified power. /// The parameter raised to the power of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("pow")] - public static Float4x4 Pow(Float4x4 x, Float4x4 y) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Pow)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Pow(Float4x4 x, Float4x4 y) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static float Radians(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(float)})"); - + public static float Radians(float x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float2 Radians(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float2)})"); - + public static Float2 Radians(Float2 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float3 Radians(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float3)})"); - + public static Float3 Radians(Float3 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float4 Radians(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float4)})"); - + public static Float4 Radians(Float4 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float1x1 Radians(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float1x1)})"); - + public static Float1x1 Radians(Float1x1 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float1x2 Radians(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float1x2)})"); - + public static Float1x2 Radians(Float1x2 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float1x3 Radians(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float1x3)})"); - + public static Float1x3 Radians(Float1x3 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float1x4 Radians(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float1x4)})"); - + public static Float1x4 Radians(Float1x4 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float2x1 Radians(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float2x1)})"); - + public static Float2x1 Radians(Float2x1 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float2x2 Radians(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float2x2)})"); - + public static Float2x2 Radians(Float2x2 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float2x3 Radians(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float2x3)})"); - + public static Float2x3 Radians(Float2x3 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float2x4 Radians(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float2x4)})"); - + public static Float2x4 Radians(Float2x4 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float3x1 Radians(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float3x1)})"); - + public static Float3x1 Radians(Float3x1 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float3x2 Radians(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float3x2)})"); - + public static Float3x2 Radians(Float3x2 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float3x3 Radians(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float3x3)})"); - + public static Float3x3 Radians(Float3x3 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float3x4 Radians(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float3x4)})"); - + public static Float3x4 Radians(Float3x4 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float4x1 Radians(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float4x1)})"); - + public static Float4x1 Radians(Float4x1 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float4x2 Radians(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float4x2)})"); - + public static Float4x2 Radians(Float4x2 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float4x3 Radians(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float4x3)})"); - + public static Float4x3 Radians(Float4x3 x) => default; /// /// Converts the specified value from degrees to radians. /// /// The specified value. /// The parameter converted from degrees to radians. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("radians")] - public static Float4x4 Radians(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Radians)}({typeof(Float4x4)})"); - + public static Float4x4 Radians(Float4x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static float Rcp(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(float)})"); - + public static float Rcp(float x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float2 Rcp(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float2)})"); - + public static Float2 Rcp(Float2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float3 Rcp(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float3)})"); - + public static Float3 Rcp(Float3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float4 Rcp(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float4)})"); - + public static Float4 Rcp(Float4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float1x1 Rcp(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float1x1)})"); - + public static Float1x1 Rcp(Float1x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float1x2 Rcp(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float1x2)})"); - + public static Float1x2 Rcp(Float1x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float1x3 Rcp(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float1x3)})"); - + public static Float1x3 Rcp(Float1x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float1x4 Rcp(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float1x4)})"); - + public static Float1x4 Rcp(Float1x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float2x1 Rcp(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float2x1)})"); - + public static Float2x1 Rcp(Float2x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float2x2 Rcp(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float2x2)})"); - + public static Float2x2 Rcp(Float2x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float2x3 Rcp(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float2x3)})"); - + public static Float2x3 Rcp(Float2x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float2x4 Rcp(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float2x4)})"); - + public static Float2x4 Rcp(Float2x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float3x1 Rcp(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float3x1)})"); - + public static Float3x1 Rcp(Float3x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float3x2 Rcp(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float3x2)})"); - + public static Float3x2 Rcp(Float3x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float3x3 Rcp(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float3x3)})"); - + public static Float3x3 Rcp(Float3x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float3x4 Rcp(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float3x4)})"); - + public static Float3x4 Rcp(Float3x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float4x1 Rcp(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float4x1)})"); - + public static Float4x1 Rcp(Float4x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float4x2 Rcp(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float4x2)})"); - + public static Float4x2 Rcp(Float4x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float4x3 Rcp(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float4x3)})"); - + public static Float4x3 Rcp(Float4x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Float4x4 Rcp(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Float4x4)})"); - + public static Float4x4 Rcp(Float4x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static double Rcp(double x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(double)})"); - + public static double Rcp(double x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double2 Rcp(Double2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double2)})"); - + public static Double2 Rcp(Double2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double3 Rcp(Double3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double3)})"); - + public static Double3 Rcp(Double3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double4 Rcp(Double4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double4)})"); - + public static Double4 Rcp(Double4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double1x1 Rcp(Double1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double1x1)})"); - + public static Double1x1 Rcp(Double1x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double1x2 Rcp(Double1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double1x2)})"); - + public static Double1x2 Rcp(Double1x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double1x3 Rcp(Double1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double1x3)})"); - + public static Double1x3 Rcp(Double1x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double1x4 Rcp(Double1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double1x4)})"); - + public static Double1x4 Rcp(Double1x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double2x1 Rcp(Double2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double2x1)})"); - + public static Double2x1 Rcp(Double2x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double2x2 Rcp(Double2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double2x2)})"); - + public static Double2x2 Rcp(Double2x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double2x3 Rcp(Double2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double2x3)})"); - + public static Double2x3 Rcp(Double2x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double2x4 Rcp(Double2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double2x4)})"); - + public static Double2x4 Rcp(Double2x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double3x1 Rcp(Double3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double3x1)})"); - + public static Double3x1 Rcp(Double3x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double3x2 Rcp(Double3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double3x2)})"); - + public static Double3x2 Rcp(Double3x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double3x3 Rcp(Double3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double3x3)})"); - + public static Double3x3 Rcp(Double3x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double3x4 Rcp(Double3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double3x4)})"); - + public static Double3x4 Rcp(Double3x4 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double4x1 Rcp(Double4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double4x1)})"); - + public static Double4x1 Rcp(Double4x1 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double4x2 Rcp(Double4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double4x2)})"); - + public static Double4x2 Rcp(Double4x2 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double4x3 Rcp(Double4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double4x3)})"); - + public static Double4x3 Rcp(Double4x3 x) => default; /// /// Calculates a fast, approximate, per-component reciprocal. /// /// The input value. /// The reciprocal of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rcp")] - public static Double4x4 Rcp(Double4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rcp)}({typeof(Double4x4)})"); - + public static Double4x4 Rcp(Double4x4 x) => default; /// /// Reverses the order of the bits, per component. /// /// The input value. /// The input value, with the bit order reversed. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("reversebits")] - public static uint ReverseBits(uint x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(ReverseBits)}({typeof(uint)})"); - + public static uint ReverseBits(uint x) => default; /// /// Reverses the order of the bits, per component. /// /// The input value. /// The input value, with the bit order reversed. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("reversebits")] - public static UInt2 ReverseBits(UInt2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(ReverseBits)}({typeof(UInt2)})"); - + public static UInt2 ReverseBits(UInt2 x) => default; /// /// Reverses the order of the bits, per component. /// /// The input value. /// The input value, with the bit order reversed. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("reversebits")] - public static UInt3 ReverseBits(UInt3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(ReverseBits)}({typeof(UInt3)})"); - + public static UInt3 ReverseBits(UInt3 x) => default; /// /// Reverses the order of the bits, per component. /// /// The input value. /// The input value, with the bit order reversed. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("reversebits")] - public static UInt4 ReverseBits(UInt4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(ReverseBits)}({typeof(UInt4)})"); - + public static UInt4 ReverseBits(UInt4 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static float Round(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(float)})"); - + public static float Round(float x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float2 Round(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float2)})"); - + public static Float2 Round(Float2 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float3 Round(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float3)})"); - + public static Float3 Round(Float3 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float4 Round(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float4)})"); - + public static Float4 Round(Float4 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float1x1 Round(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float1x1)})"); - + public static Float1x1 Round(Float1x1 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float1x2 Round(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float1x2)})"); - + public static Float1x2 Round(Float1x2 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float1x3 Round(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float1x3)})"); - + public static Float1x3 Round(Float1x3 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float1x4 Round(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float1x4)})"); - + public static Float1x4 Round(Float1x4 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float2x1 Round(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float2x1)})"); - + public static Float2x1 Round(Float2x1 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float2x2 Round(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float2x2)})"); - + public static Float2x2 Round(Float2x2 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float2x3 Round(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float2x3)})"); - + public static Float2x3 Round(Float2x3 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float2x4 Round(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float2x4)})"); - + public static Float2x4 Round(Float2x4 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float3x1 Round(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float3x1)})"); - + public static Float3x1 Round(Float3x1 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float3x2 Round(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float3x2)})"); - + public static Float3x2 Round(Float3x2 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float3x3 Round(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float3x3)})"); - + public static Float3x3 Round(Float3x3 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float3x4 Round(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float3x4)})"); - + public static Float3x4 Round(Float3x4 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float4x1 Round(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float4x1)})"); - + public static Float4x1 Round(Float4x1 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float4x2 Round(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float4x2)})"); - + public static Float4x2 Round(Float4x2 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float4x3 Round(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float4x3)})"); - + public static Float4x3 Round(Float4x3 x) => default; /// /// Rounds the specified value to the nearest integer. Halfway cases are rounded to the nearest even. /// /// The specified value. /// The parameter, rounded to the nearest integer within a floating-point type. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("round")] - public static Float4x4 Round(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Round)}({typeof(Float4x4)})"); - + public static Float4x4 Round(Float4x4 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static float Rsqrt(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(float)})"); - + public static float Rsqrt(float x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float2 Rsqrt(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float2)})"); - + public static Float2 Rsqrt(Float2 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float3 Rsqrt(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float3)})"); - + public static Float3 Rsqrt(Float3 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float4 Rsqrt(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float4)})"); - + public static Float4 Rsqrt(Float4 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float1x1 Rsqrt(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float1x1)})"); - + public static Float1x1 Rsqrt(Float1x1 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float1x2 Rsqrt(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float1x2)})"); - + public static Float1x2 Rsqrt(Float1x2 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float1x3 Rsqrt(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float1x3)})"); - + public static Float1x3 Rsqrt(Float1x3 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float1x4 Rsqrt(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float1x4)})"); - + public static Float1x4 Rsqrt(Float1x4 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float2x1 Rsqrt(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float2x1)})"); - + public static Float2x1 Rsqrt(Float2x1 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float2x2 Rsqrt(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float2x2)})"); - + public static Float2x2 Rsqrt(Float2x2 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float2x3 Rsqrt(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float2x3)})"); - + public static Float2x3 Rsqrt(Float2x3 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float2x4 Rsqrt(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float2x4)})"); - + public static Float2x4 Rsqrt(Float2x4 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float3x1 Rsqrt(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float3x1)})"); - + public static Float3x1 Rsqrt(Float3x1 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float3x2 Rsqrt(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float3x2)})"); - + public static Float3x2 Rsqrt(Float3x2 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float3x3 Rsqrt(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float3x3)})"); - + public static Float3x3 Rsqrt(Float3x3 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float3x4 Rsqrt(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float3x4)})"); - + public static Float3x4 Rsqrt(Float3x4 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float4x1 Rsqrt(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float4x1)})"); - + public static Float4x1 Rsqrt(Float4x1 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float4x2 Rsqrt(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float4x2)})"); - + public static Float4x2 Rsqrt(Float4x2 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float4x3 Rsqrt(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float4x3)})"); - + public static Float4x3 Rsqrt(Float4x3 x) => default; /// /// Returns the reciprocal of the square root of the specified value. /// /// The specified value. /// The reciprocal of the square root of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("rsqrt")] - public static Float4x4 Rsqrt(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Rsqrt)}({typeof(Float4x4)})"); - + public static Float4x4 Rsqrt(Float4x4 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static float Saturate(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(float)})"); - + public static float Saturate(float x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float2 Saturate(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float2)})"); - + public static Float2 Saturate(Float2 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float3 Saturate(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float3)})"); - + public static Float3 Saturate(Float3 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float4 Saturate(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float4)})"); - + public static Float4 Saturate(Float4 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float1x1 Saturate(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float1x1)})"); - + public static Float1x1 Saturate(Float1x1 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float1x2 Saturate(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float1x2)})"); - + public static Float1x2 Saturate(Float1x2 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float1x3 Saturate(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float1x3)})"); - + public static Float1x3 Saturate(Float1x3 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float1x4 Saturate(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float1x4)})"); - + public static Float1x4 Saturate(Float1x4 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float2x1 Saturate(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float2x1)})"); - + public static Float2x1 Saturate(Float2x1 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float2x2 Saturate(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float2x2)})"); - + public static Float2x2 Saturate(Float2x2 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float2x3 Saturate(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float2x3)})"); - + public static Float2x3 Saturate(Float2x3 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float2x4 Saturate(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float2x4)})"); - + public static Float2x4 Saturate(Float2x4 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float3x1 Saturate(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float3x1)})"); - + public static Float3x1 Saturate(Float3x1 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float3x2 Saturate(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float3x2)})"); - + public static Float3x2 Saturate(Float3x2 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float3x3 Saturate(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float3x3)})"); - + public static Float3x3 Saturate(Float3x3 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float3x4 Saturate(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float3x4)})"); - + public static Float3x4 Saturate(Float3x4 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float4x1 Saturate(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float4x1)})"); - + public static Float4x1 Saturate(Float4x1 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float4x2 Saturate(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float4x2)})"); - + public static Float4x2 Saturate(Float4x2 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float4x3 Saturate(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float4x3)})"); - + public static Float4x3 Saturate(Float4x3 x) => default; /// /// Clamps the specified value within the range of 0 to 1. /// /// The specified value. /// The parameter, clamped within the range of 0 to 1. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("saturate")] - public static Float4x4 Saturate(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Saturate)}({typeof(Float4x4)})"); - + public static Float4x4 Saturate(Float4x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static int Sign(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(float)})"); - + public static int Sign(float x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2 Sign(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float2)})"); - + public static Int2 Sign(Float2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3 Sign(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float3)})"); - + public static Int3 Sign(Float3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4 Sign(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float4)})"); - + public static Int4 Sign(Float4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x1 Sign(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float1x1)})"); - + public static Int1x1 Sign(Float1x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x2 Sign(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float1x2)})"); - + public static Int1x2 Sign(Float1x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x3 Sign(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float1x3)})"); - + public static Int1x3 Sign(Float1x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x4 Sign(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float1x4)})"); - + public static Int1x4 Sign(Float1x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x1 Sign(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float2x1)})"); - + public static Int2x1 Sign(Float2x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x2 Sign(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float2x2)})"); - + public static Int2x2 Sign(Float2x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x3 Sign(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float2x3)})"); - + public static Int2x3 Sign(Float2x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x4 Sign(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float2x4)})"); - + public static Int2x4 Sign(Float2x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x1 Sign(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float3x1)})"); - + public static Int3x1 Sign(Float3x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x2 Sign(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float3x2)})"); - + public static Int3x2 Sign(Float3x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x3 Sign(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float3x3)})"); - + public static Int3x3 Sign(Float3x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x4 Sign(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float3x4)})"); - + public static Int3x4 Sign(Float3x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x1 Sign(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float4x1)})"); - + public static Int4x1 Sign(Float4x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x2 Sign(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float4x2)})"); - + public static Int4x2 Sign(Float4x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x3 Sign(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float4x3)})"); - + public static Int4x3 Sign(Float4x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x4 Sign(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Float4x4)})"); - + public static Int4x4 Sign(Float4x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static int Sign(int x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(int)})"); - + public static int Sign(int x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2 Sign(Int2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int2)})"); - + public static Int2 Sign(Int2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3 Sign(Int3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int3)})"); - + public static Int3 Sign(Int3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4 Sign(Int4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int4)})"); - + public static Int4 Sign(Int4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x1 Sign(Int1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int1x1)})"); - + public static Int1x1 Sign(Int1x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x2 Sign(Int1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int1x2)})"); - + public static Int1x2 Sign(Int1x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x3 Sign(Int1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int1x3)})"); - + public static Int1x3 Sign(Int1x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int1x4 Sign(Int1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int1x4)})"); - + public static Int1x4 Sign(Int1x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x1 Sign(Int2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int2x1)})"); - + public static Int2x1 Sign(Int2x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x2 Sign(Int2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int2x2)})"); - + public static Int2x2 Sign(Int2x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x3 Sign(Int2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int2x3)})"); - + public static Int2x3 Sign(Int2x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int2x4 Sign(Int2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int2x4)})"); - + public static Int2x4 Sign(Int2x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x1 Sign(Int3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int3x1)})"); - + public static Int3x1 Sign(Int3x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x2 Sign(Int3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int3x2)})"); - + public static Int3x2 Sign(Int3x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x3 Sign(Int3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int3x3)})"); - + public static Int3x3 Sign(Int3x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int3x4 Sign(Int3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int3x4)})"); - + public static Int3x4 Sign(Int3x4 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x1 Sign(Int4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int4x1)})"); - + public static Int4x1 Sign(Int4x1 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x2 Sign(Int4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int4x2)})"); - + public static Int4x2 Sign(Int4x2 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x3 Sign(Int4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int4x3)})"); - + public static Int4x3 Sign(Int4x3 x) => default; /// /// Returns the sign of the input value. /// /// The specified value. /// Returns -1 if is less than zero; 0 if equals zero; and 1 if is greater than zero. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sign")] - public static Int4x4 Sign(Int4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sign)}({typeof(Int4x4)})"); - + public static Int4x4 Sign(Int4x4 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static float Sin(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(float)})"); - + public static float Sin(float x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float2 Sin(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float2)})"); - + public static Float2 Sin(Float2 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float3 Sin(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float3)})"); - + public static Float3 Sin(Float3 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float4 Sin(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float4)})"); - + public static Float4 Sin(Float4 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float1x1 Sin(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float1x1)})"); - + public static Float1x1 Sin(Float1x1 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float1x2 Sin(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float1x2)})"); - + public static Float1x2 Sin(Float1x2 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float1x3 Sin(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float1x3)})"); - + public static Float1x3 Sin(Float1x3 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float1x4 Sin(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float1x4)})"); - + public static Float1x4 Sin(Float1x4 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float2x1 Sin(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float2x1)})"); - + public static Float2x1 Sin(Float2x1 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float2x2 Sin(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float2x2)})"); - + public static Float2x2 Sin(Float2x2 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float2x3 Sin(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float2x3)})"); - + public static Float2x3 Sin(Float2x3 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float2x4 Sin(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float2x4)})"); - + public static Float2x4 Sin(Float2x4 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float3x1 Sin(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float3x1)})"); - + public static Float3x1 Sin(Float3x1 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float3x2 Sin(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float3x2)})"); - + public static Float3x2 Sin(Float3x2 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float3x3 Sin(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float3x3)})"); - + public static Float3x3 Sin(Float3x3 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float3x4 Sin(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float3x4)})"); - + public static Float3x4 Sin(Float3x4 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float4x1 Sin(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float4x1)})"); - + public static Float4x1 Sin(Float4x1 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float4x2 Sin(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float4x2)})"); - + public static Float4x2 Sin(Float4x2 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float4x3 Sin(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float4x3)})"); - + public static Float4x3 Sin(Float4x3 x) => default; /// /// Returns the sine of the specified value. /// /// The specified value, in radians. /// The sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sin")] - public static Float4x4 Sin(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sin)}({typeof(Float4x4)})"); - + public static Float4x4 Sin(Float4x4 x) => default; /// /// Returns the sine and cosine of a specified value. /// /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(float x, out float sin, out float cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(float)}, {typeof(float)}, {typeof(float)})"); @@ -13336,6 +13397,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float2 x, out Float2 sin, out Float2 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float2)}, {typeof(Float2)}, {typeof(Float2)})"); @@ -13346,6 +13408,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float3 x, out Float3 sin, out Float3 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float3)}, {typeof(Float3)}, {typeof(Float3)})"); @@ -13356,6 +13419,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float4 x, out Float4 sin, out Float4 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float4)}, {typeof(Float4)}, {typeof(Float4)})"); @@ -13366,6 +13430,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float1x1 x, out Float1x1 sin, out Float1x1 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float1x1)}, {typeof(Float1x1)}, {typeof(Float1x1)})"); @@ -13376,6 +13441,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float1x2 x, out Float1x2 sin, out Float1x2 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float1x2)}, {typeof(Float1x2)}, {typeof(Float1x2)})"); @@ -13386,6 +13452,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float1x3 x, out Float1x3 sin, out Float1x3 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float1x3)}, {typeof(Float1x3)}, {typeof(Float1x3)})"); @@ -13396,6 +13463,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float1x4 x, out Float1x4 sin, out Float1x4 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float1x4)}, {typeof(Float1x4)}, {typeof(Float1x4)})"); @@ -13406,6 +13474,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float2x1 x, out Float2x1 sin, out Float2x1 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float2x1)}, {typeof(Float2x1)}, {typeof(Float2x1)})"); @@ -13416,6 +13485,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float2x2 x, out Float2x2 sin, out Float2x2 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float2x2)}, {typeof(Float2x2)}, {typeof(Float2x2)})"); @@ -13426,6 +13496,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float2x3 x, out Float2x3 sin, out Float2x3 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float2x3)}, {typeof(Float2x3)}, {typeof(Float2x3)})"); @@ -13436,6 +13507,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float2x4 x, out Float2x4 sin, out Float2x4 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float2x4)}, {typeof(Float2x4)}, {typeof(Float2x4)})"); @@ -13446,6 +13518,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float3x1 x, out Float3x1 sin, out Float3x1 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float3x1)}, {typeof(Float3x1)}, {typeof(Float3x1)})"); @@ -13456,6 +13529,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float3x2 x, out Float3x2 sin, out Float3x2 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float3x2)}, {typeof(Float3x2)}, {typeof(Float3x2)})"); @@ -13466,6 +13540,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float3x3 x, out Float3x3 sin, out Float3x3 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float3x3)}, {typeof(Float3x3)}, {typeof(Float3x3)})"); @@ -13476,6 +13551,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float3x4 x, out Float3x4 sin, out Float3x4 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float3x4)}, {typeof(Float3x4)}, {typeof(Float3x4)})"); @@ -13486,6 +13562,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float4x1 x, out Float4x1 sin, out Float4x1 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float4x1)}, {typeof(Float4x1)}, {typeof(Float4x1)})"); @@ -13496,6 +13573,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float4x2 x, out Float4x2 sin, out Float4x2 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float4x2)}, {typeof(Float4x2)}, {typeof(Float4x2)})"); @@ -13506,6 +13584,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float4x3 x, out Float4x3 sin, out Float4x3 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float4x3)}, {typeof(Float4x3)}, {typeof(Float4x3)})"); @@ -13516,6 +13595,7 @@ namespace ComputeSharp /// The specified value, in radians. /// The resulting sine. /// The resulting cosine. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sincos")] public static void SinCos(Float4x4 x, out Float4x4 sin, out Float4x4 cos) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SinCos)}({typeof(Float4x4)}, {typeof(Float4x4)}, {typeof(Float4x4)})"); @@ -13525,181 +13605,181 @@ namespace ComputeSharp /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static float Sinh(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(float)})"); - + public static float Sinh(float x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float2 Sinh(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float2)})"); - + public static Float2 Sinh(Float2 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float3 Sinh(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float3)})"); - + public static Float3 Sinh(Float3 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float4 Sinh(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float4)})"); - + public static Float4 Sinh(Float4 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float1x1 Sinh(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float1x1)})"); - + public static Float1x1 Sinh(Float1x1 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float1x2 Sinh(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float1x2)})"); - + public static Float1x2 Sinh(Float1x2 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float1x3 Sinh(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float1x3)})"); - + public static Float1x3 Sinh(Float1x3 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float1x4 Sinh(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float1x4)})"); - + public static Float1x4 Sinh(Float1x4 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float2x1 Sinh(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float2x1)})"); - + public static Float2x1 Sinh(Float2x1 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float2x2 Sinh(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float2x2)})"); - + public static Float2x2 Sinh(Float2x2 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float2x3 Sinh(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float2x3)})"); - + public static Float2x3 Sinh(Float2x3 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float2x4 Sinh(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float2x4)})"); - + public static Float2x4 Sinh(Float2x4 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float3x1 Sinh(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float3x1)})"); - + public static Float3x1 Sinh(Float3x1 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float3x2 Sinh(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float3x2)})"); - + public static Float3x2 Sinh(Float3x2 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float3x3 Sinh(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float3x3)})"); - + public static Float3x3 Sinh(Float3x3 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float3x4 Sinh(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float3x4)})"); - + public static Float3x4 Sinh(Float3x4 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float4x1 Sinh(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float4x1)})"); - + public static Float4x1 Sinh(Float4x1 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float4x2 Sinh(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float4x2)})"); - + public static Float4x2 Sinh(Float4x2 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float4x3 Sinh(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float4x3)})"); - + public static Float4x3 Sinh(Float4x3 x) => default; /// /// Returns the hyperbolic sine of the specified value. /// /// The specified value, in radians. /// The hyperbolic sine of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sinh")] - public static Float4x4 Sinh(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sinh)}({typeof(Float4x4)})"); - + public static Float4x4 Sinh(Float4x4 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13707,10 +13787,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static float SmoothStep(float min, float max, float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(float)}, {typeof(float)}, {typeof(float)})"); - + public static float SmoothStep(float min, float max, float x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13718,10 +13798,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float2 SmoothStep(Float2 min, Float2 max, Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float2)}, {typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 SmoothStep(Float2 min, Float2 max, Float2 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13729,10 +13809,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float3 SmoothStep(Float3 min, Float3 max, Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float3)}, {typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 SmoothStep(Float3 min, Float3 max, Float3 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13740,10 +13820,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float4 SmoothStep(Float4 min, Float4 max, Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float4)}, {typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 SmoothStep(Float4 min, Float4 max, Float4 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13751,10 +13831,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float1x1 SmoothStep(Float1x1 min, Float1x1 max, Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float1x1)}, {typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 SmoothStep(Float1x1 min, Float1x1 max, Float1x1 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13762,10 +13842,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float1x2 SmoothStep(Float1x2 min, Float1x2 max, Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float1x2)}, {typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 SmoothStep(Float1x2 min, Float1x2 max, Float1x2 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13773,10 +13853,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float1x3 SmoothStep(Float1x3 min, Float1x3 max, Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float1x3)}, {typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 SmoothStep(Float1x3 min, Float1x3 max, Float1x3 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13784,10 +13864,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float1x4 SmoothStep(Float1x4 min, Float1x4 max, Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float1x4)}, {typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 SmoothStep(Float1x4 min, Float1x4 max, Float1x4 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13795,10 +13875,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float2x1 SmoothStep(Float2x1 min, Float2x1 max, Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float2x1)}, {typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 SmoothStep(Float2x1 min, Float2x1 max, Float2x1 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13806,10 +13886,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float2x2 SmoothStep(Float2x2 min, Float2x2 max, Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float2x2)}, {typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 SmoothStep(Float2x2 min, Float2x2 max, Float2x2 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13817,10 +13897,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float2x3 SmoothStep(Float2x3 min, Float2x3 max, Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float2x3)}, {typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 SmoothStep(Float2x3 min, Float2x3 max, Float2x3 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13828,10 +13908,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float2x4 SmoothStep(Float2x4 min, Float2x4 max, Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float2x4)}, {typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 SmoothStep(Float2x4 min, Float2x4 max, Float2x4 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13839,10 +13919,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float3x1 SmoothStep(Float3x1 min, Float3x1 max, Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float3x1)}, {typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 SmoothStep(Float3x1 min, Float3x1 max, Float3x1 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13850,10 +13930,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float3x2 SmoothStep(Float3x2 min, Float3x2 max, Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float3x2)}, {typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 SmoothStep(Float3x2 min, Float3x2 max, Float3x2 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13861,10 +13941,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float3x3 SmoothStep(Float3x3 min, Float3x3 max, Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float3x3)}, {typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 SmoothStep(Float3x3 min, Float3x3 max, Float3x3 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13872,10 +13952,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float3x4 SmoothStep(Float3x4 min, Float3x4 max, Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float3x4)}, {typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 SmoothStep(Float3x4 min, Float3x4 max, Float3x4 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13883,10 +13963,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float4x1 SmoothStep(Float4x1 min, Float4x1 max, Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float4x1)}, {typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 SmoothStep(Float4x1 min, Float4x1 max, Float4x1 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13894,10 +13974,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float4x2 SmoothStep(Float4x2 min, Float4x2 max, Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float4x2)}, {typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 SmoothStep(Float4x2 min, Float4x2 max, Float4x2 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13905,10 +13985,10 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float4x3 SmoothStep(Float4x3 min, Float4x3 max, Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float4x3)}, {typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 SmoothStep(Float4x3 min, Float4x3 max, Float4x3 x) => default; /// /// Returns a smooth Hermite interpolation between 0 and 1 if the specified value is in the input range. /// @@ -13916,1252 +13996,1252 @@ namespace ComputeSharp /// The specified maximum range. /// The specified value to be interpolated. /// Returns 0 if is less than ; 1 if is greater than ; otherwise, a value between 0 and 1 if is in the range [, ]. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("smoothstep")] - public static Float4x4 SmoothStep(Float4x4 min, Float4x4 max, Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(SmoothStep)}({typeof(Float4x4)}, {typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 SmoothStep(Float4x4 min, Float4x4 max, Float4x4 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static float Sqrt(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(float)})"); - + public static float Sqrt(float x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float2 Sqrt(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float2)})"); - + public static Float2 Sqrt(Float2 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float3 Sqrt(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float3)})"); - + public static Float3 Sqrt(Float3 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float4 Sqrt(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float4)})"); - + public static Float4 Sqrt(Float4 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float1x1 Sqrt(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float1x1)})"); - + public static Float1x1 Sqrt(Float1x1 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float1x2 Sqrt(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float1x2)})"); - + public static Float1x2 Sqrt(Float1x2 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float1x3 Sqrt(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float1x3)})"); - + public static Float1x3 Sqrt(Float1x3 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float1x4 Sqrt(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float1x4)})"); - + public static Float1x4 Sqrt(Float1x4 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float2x1 Sqrt(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float2x1)})"); - + public static Float2x1 Sqrt(Float2x1 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float2x2 Sqrt(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float2x2)})"); - + public static Float2x2 Sqrt(Float2x2 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float2x3 Sqrt(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float2x3)})"); - + public static Float2x3 Sqrt(Float2x3 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float2x4 Sqrt(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float2x4)})"); - + public static Float2x4 Sqrt(Float2x4 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float3x1 Sqrt(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float3x1)})"); - + public static Float3x1 Sqrt(Float3x1 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float3x2 Sqrt(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float3x2)})"); - + public static Float3x2 Sqrt(Float3x2 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float3x3 Sqrt(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float3x3)})"); - + public static Float3x3 Sqrt(Float3x3 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float3x4 Sqrt(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float3x4)})"); - + public static Float3x4 Sqrt(Float3x4 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float4x1 Sqrt(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float4x1)})"); - + public static Float4x1 Sqrt(Float4x1 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float4x2 Sqrt(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float4x2)})"); - + public static Float4x2 Sqrt(Float4x2 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float4x3 Sqrt(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float4x3)})"); - + public static Float4x3 Sqrt(Float4x3 x) => default; /// /// Returns the square root of the specified floating-point value, per component. /// /// The specified floating-point value. /// The square root of the parameter, per component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("sqrt")] - public static Float4x4 Sqrt(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Sqrt)}({typeof(Float4x4)})"); - + public static Float4x4 Sqrt(Float4x4 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static float Step(float y, float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(float)}, {typeof(float)})"); - + public static float Step(float y, float x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float2 Step(Float2 y, Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float2)}, {typeof(Float2)})"); - + public static Float2 Step(Float2 y, Float2 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float3 Step(Float3 y, Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float3)}, {typeof(Float3)})"); - + public static Float3 Step(Float3 y, Float3 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float4 Step(Float4 y, Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float4)}, {typeof(Float4)})"); - + public static Float4 Step(Float4 y, Float4 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float1x1 Step(Float1x1 y, Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float1x1)}, {typeof(Float1x1)})"); - + public static Float1x1 Step(Float1x1 y, Float1x1 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float1x2 Step(Float1x2 y, Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float1x2)}, {typeof(Float1x2)})"); - + public static Float1x2 Step(Float1x2 y, Float1x2 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float1x3 Step(Float1x3 y, Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float1x3)}, {typeof(Float1x3)})"); - + public static Float1x3 Step(Float1x3 y, Float1x3 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float1x4 Step(Float1x4 y, Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float1x4)}, {typeof(Float1x4)})"); - + public static Float1x4 Step(Float1x4 y, Float1x4 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float2x1 Step(Float2x1 y, Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float2x1)}, {typeof(Float2x1)})"); - + public static Float2x1 Step(Float2x1 y, Float2x1 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float2x2 Step(Float2x2 y, Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float2x2)}, {typeof(Float2x2)})"); - + public static Float2x2 Step(Float2x2 y, Float2x2 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float2x3 Step(Float2x3 y, Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float2x3)}, {typeof(Float2x3)})"); - + public static Float2x3 Step(Float2x3 y, Float2x3 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float2x4 Step(Float2x4 y, Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float2x4)}, {typeof(Float2x4)})"); - + public static Float2x4 Step(Float2x4 y, Float2x4 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float3x1 Step(Float3x1 y, Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float3x1)}, {typeof(Float3x1)})"); - + public static Float3x1 Step(Float3x1 y, Float3x1 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float3x2 Step(Float3x2 y, Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float3x2)}, {typeof(Float3x2)})"); - + public static Float3x2 Step(Float3x2 y, Float3x2 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float3x3 Step(Float3x3 y, Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float3x3)}, {typeof(Float3x3)})"); - + public static Float3x3 Step(Float3x3 y, Float3x3 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float3x4 Step(Float3x4 y, Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float3x4)}, {typeof(Float3x4)})"); - + public static Float3x4 Step(Float3x4 y, Float3x4 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float4x1 Step(Float4x1 y, Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float4x1)}, {typeof(Float4x1)})"); - + public static Float4x1 Step(Float4x1 y, Float4x1 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float4x2 Step(Float4x2 y, Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float4x2)}, {typeof(Float4x2)})"); - + public static Float4x2 Step(Float4x2 y, Float4x2 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float4x3 Step(Float4x3 y, Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float4x3)}, {typeof(Float4x3)})"); - + public static Float4x3 Step(Float4x3 y, Float4x3 x) => default; /// /// Compares two values, returning 0 or 1 based on which value is greater. /// /// The first specified floating-point value. /// The second specified floating-point value. /// 1 if the parameter is greater than or equal to the parameter; otherwise, 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("step")] - public static Float4x4 Step(Float4x4 y, Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Step)}({typeof(Float4x4)}, {typeof(Float4x4)})"); - + public static Float4x4 Step(Float4x4 y, Float4x4 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static float Tan(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(float)})"); - + public static float Tan(float x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float2 Tan(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float2)})"); - + public static Float2 Tan(Float2 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float3 Tan(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float3)})"); - + public static Float3 Tan(Float3 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float4 Tan(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float4)})"); - + public static Float4 Tan(Float4 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float1x1 Tan(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float1x1)})"); - + public static Float1x1 Tan(Float1x1 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float1x2 Tan(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float1x2)})"); - + public static Float1x2 Tan(Float1x2 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float1x3 Tan(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float1x3)})"); - + public static Float1x3 Tan(Float1x3 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float1x4 Tan(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float1x4)})"); - + public static Float1x4 Tan(Float1x4 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float2x1 Tan(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float2x1)})"); - + public static Float2x1 Tan(Float2x1 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float2x2 Tan(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float2x2)})"); - + public static Float2x2 Tan(Float2x2 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float2x3 Tan(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float2x3)})"); - + public static Float2x3 Tan(Float2x3 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float2x4 Tan(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float2x4)})"); - + public static Float2x4 Tan(Float2x4 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float3x1 Tan(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float3x1)})"); - + public static Float3x1 Tan(Float3x1 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float3x2 Tan(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float3x2)})"); - + public static Float3x2 Tan(Float3x2 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float3x3 Tan(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float3x3)})"); - + public static Float3x3 Tan(Float3x3 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float3x4 Tan(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float3x4)})"); - + public static Float3x4 Tan(Float3x4 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float4x1 Tan(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float4x1)})"); - + public static Float4x1 Tan(Float4x1 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float4x2 Tan(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float4x2)})"); - + public static Float4x2 Tan(Float4x2 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float4x3 Tan(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float4x3)})"); - + public static Float4x3 Tan(Float4x3 x) => default; /// /// Returns the tangent of the specified value. /// /// The specified value, in radians. /// The tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tan")] - public static Float4x4 Tan(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tan)}({typeof(Float4x4)})"); - + public static Float4x4 Tan(Float4x4 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static float Tanh(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(float)})"); - + public static float Tanh(float x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float2 Tanh(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float2)})"); - + public static Float2 Tanh(Float2 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float3 Tanh(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float3)})"); - + public static Float3 Tanh(Float3 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float4 Tanh(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float4)})"); - + public static Float4 Tanh(Float4 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float1x1 Tanh(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float1x1)})"); - + public static Float1x1 Tanh(Float1x1 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float1x2 Tanh(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float1x2)})"); - + public static Float1x2 Tanh(Float1x2 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float1x3 Tanh(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float1x3)})"); - + public static Float1x3 Tanh(Float1x3 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float1x4 Tanh(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float1x4)})"); - + public static Float1x4 Tanh(Float1x4 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float2x1 Tanh(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float2x1)})"); - + public static Float2x1 Tanh(Float2x1 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float2x2 Tanh(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float2x2)})"); - + public static Float2x2 Tanh(Float2x2 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float2x3 Tanh(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float2x3)})"); - + public static Float2x3 Tanh(Float2x3 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float2x4 Tanh(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float2x4)})"); - + public static Float2x4 Tanh(Float2x4 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float3x1 Tanh(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float3x1)})"); - + public static Float3x1 Tanh(Float3x1 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float3x2 Tanh(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float3x2)})"); - + public static Float3x2 Tanh(Float3x2 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float3x3 Tanh(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float3x3)})"); - + public static Float3x3 Tanh(Float3x3 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float3x4 Tanh(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float3x4)})"); - + public static Float3x4 Tanh(Float3x4 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float4x1 Tanh(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float4x1)})"); - + public static Float4x1 Tanh(Float4x1 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float4x2 Tanh(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float4x2)})"); - + public static Float4x2 Tanh(Float4x2 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float4x3 Tanh(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float4x3)})"); - + public static Float4x3 Tanh(Float4x3 x) => default; /// /// Returns the hyperbolic tangent of the specified value. /// /// The specified value, in radians. /// The hyperbolic tangent of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("tanh")] - public static Float4x4 Tanh(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Tanh)}({typeof(Float4x4)})"); - + public static Float4x4 Tanh(Float4x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float2x1 Transpose(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float1x2)})"); - + public static Float2x1 Transpose(Float1x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float3x1 Transpose(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float1x3)})"); - + public static Float3x1 Transpose(Float1x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float4x1 Transpose(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float1x4)})"); - + public static Float4x1 Transpose(Float1x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float1x2 Transpose(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float2x1)})"); - + public static Float1x2 Transpose(Float2x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float3x2 Transpose(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float2x3)})"); - + public static Float3x2 Transpose(Float2x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float4x2 Transpose(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float2x4)})"); - + public static Float4x2 Transpose(Float2x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float1x3 Transpose(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float3x1)})"); - + public static Float1x3 Transpose(Float3x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float2x3 Transpose(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float3x2)})"); - + public static Float2x3 Transpose(Float3x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float4x3 Transpose(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float3x4)})"); - + public static Float4x3 Transpose(Float3x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float1x4 Transpose(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float4x1)})"); - + public static Float1x4 Transpose(Float4x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float2x4 Transpose(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float4x2)})"); - + public static Float2x4 Transpose(Float4x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Float3x4 Transpose(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Float4x3)})"); - + public static Float3x4 Transpose(Float4x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int2x1 Transpose(Int1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int1x2)})"); - + public static Int2x1 Transpose(Int1x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int3x1 Transpose(Int1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int1x3)})"); - + public static Int3x1 Transpose(Int1x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int4x1 Transpose(Int1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int1x4)})"); - + public static Int4x1 Transpose(Int1x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int1x2 Transpose(Int2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int2x1)})"); - + public static Int1x2 Transpose(Int2x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int3x2 Transpose(Int2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int2x3)})"); - + public static Int3x2 Transpose(Int2x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int4x2 Transpose(Int2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int2x4)})"); - + public static Int4x2 Transpose(Int2x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int1x3 Transpose(Int3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int3x1)})"); - + public static Int1x3 Transpose(Int3x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int2x3 Transpose(Int3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int3x2)})"); - + public static Int2x3 Transpose(Int3x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int4x3 Transpose(Int3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int3x4)})"); - + public static Int4x3 Transpose(Int3x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int1x4 Transpose(Int4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int4x1)})"); - + public static Int1x4 Transpose(Int4x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int2x4 Transpose(Int4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int4x2)})"); - + public static Int2x4 Transpose(Int4x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Int3x4 Transpose(Int4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Int4x3)})"); - + public static Int3x4 Transpose(Int4x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool2x1 Transpose(Bool1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool1x2)})"); - + public static Bool2x1 Transpose(Bool1x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool3x1 Transpose(Bool1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool1x3)})"); - + public static Bool3x1 Transpose(Bool1x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool4x1 Transpose(Bool1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool1x4)})"); - + public static Bool4x1 Transpose(Bool1x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool1x2 Transpose(Bool2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool2x1)})"); - + public static Bool1x2 Transpose(Bool2x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool3x2 Transpose(Bool2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool2x3)})"); - + public static Bool3x2 Transpose(Bool2x3 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool4x2 Transpose(Bool2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool2x4)})"); - + public static Bool4x2 Transpose(Bool2x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool1x3 Transpose(Bool3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool3x1)})"); - + public static Bool1x3 Transpose(Bool3x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool2x3 Transpose(Bool3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool3x2)})"); - + public static Bool2x3 Transpose(Bool3x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool4x3 Transpose(Bool3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool3x4)})"); - + public static Bool4x3 Transpose(Bool3x4 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool1x4 Transpose(Bool4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool4x1)})"); - + public static Bool1x4 Transpose(Bool4x1 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool2x4 Transpose(Bool4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool4x2)})"); - + public static Bool2x4 Transpose(Bool4x2 x) => default; /// /// Transposes the specified input matrix. /// /// The specified matrix. /// The transposed value of the parameter. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("transpose")] - public static Bool3x4 Transpose(Bool4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Transpose)}({typeof(Bool4x3)})"); - + public static Bool3x4 Transpose(Bool4x3 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static float Trunc(float x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(float)})"); - + public static float Trunc(float x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float2 Trunc(Float2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float2)})"); - + public static Float2 Trunc(Float2 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float3 Trunc(Float3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float3)})"); - + public static Float3 Trunc(Float3 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float4 Trunc(Float4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float4)})"); - + public static Float4 Trunc(Float4 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float1x1 Trunc(Float1x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float1x1)})"); - + public static Float1x1 Trunc(Float1x1 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float1x2 Trunc(Float1x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float1x2)})"); - + public static Float1x2 Trunc(Float1x2 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float1x3 Trunc(Float1x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float1x3)})"); - + public static Float1x3 Trunc(Float1x3 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float1x4 Trunc(Float1x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float1x4)})"); - + public static Float1x4 Trunc(Float1x4 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float2x1 Trunc(Float2x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float2x1)})"); - + public static Float2x1 Trunc(Float2x1 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float2x2 Trunc(Float2x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float2x2)})"); - + public static Float2x2 Trunc(Float2x2 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float2x3 Trunc(Float2x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float2x3)})"); - + public static Float2x3 Trunc(Float2x3 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float2x4 Trunc(Float2x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float2x4)})"); - + public static Float2x4 Trunc(Float2x4 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float3x1 Trunc(Float3x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float3x1)})"); - + public static Float3x1 Trunc(Float3x1 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float3x2 Trunc(Float3x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float3x2)})"); - + public static Float3x2 Trunc(Float3x2 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float3x3 Trunc(Float3x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float3x3)})"); - + public static Float3x3 Trunc(Float3x3 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float3x4 Trunc(Float3x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float3x4)})"); - + public static Float3x4 Trunc(Float3x4 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float4x1 Trunc(Float4x1 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float4x1)})"); - + public static Float4x1 Trunc(Float4x1 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float4x2 Trunc(Float4x2 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float4x2)})"); - + public static Float4x2 Trunc(Float4x2 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float4x3 Trunc(Float4x3 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float4x3)})"); - + public static Float4x3 Trunc(Float4x3 x) => default; /// /// Truncates a floating-point value to the integer component. /// /// The specified input. /// The input value truncated to an integer component. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [Pure] [HlslIntrinsicName("trunc")] - public static Float4x4 Trunc(Float4x4 x) => throw new InvalidExecutionContextException($"{typeof(Hlsl)}.{nameof(Trunc)}({typeof(Float4x4)})"); - } + public static Float4x4 Trunc(Float4x4 x) => default; } } diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.tt b/src/ComputeSharp/Core/Intrinsics/Hlsl.tt index f8d4292f..105a5828 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.tt +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.tt @@ -37,16 +37,27 @@ foreach (var intrinsic in Intrinsics) WriteLine($"/// {returns}"); } + 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."); + if (intrinsic.IsPure) WriteLine("[Pure]"); WriteLine($"[HlslIntrinsicName(\"{intrinsic.HlslName}\")]"); Write($"public static {overload.Return} {intrinsic.Name}("); Write(string.Join(", ", intrinsic.Parameters.Zip(overload.Params, (a, b) => $"{(a.IsOut ? "out " : "")}{b} {a.Name}"))); - Write(") => throw new InvalidExecutionContextException("); + Write(")"); - var parameters = string.Join(", ", overload.Params.Select(t => $"{{typeof({t})}}")); + if (intrinsic.Parameters.Any(param => param.IsOut)) + { + Write(" => throw new InvalidExecutionContextException("); - WriteLine($"$\"{{typeof(Hlsl)}}.{{nameof({intrinsic.Name})}}({parameters})\");"); + var parameters = string.Join(", ", overload.Params.Select(t => $"{{typeof({t})}}")); + + WriteLine($"$\"{{typeof(Hlsl)}}.{{nameof({intrinsic.Name})}}({parameters})\");"); + } + else + { + Write(" => default;"); + } } } diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs index 238566f3..fc5ecb87 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Bool2 + public unsafe partial struct Bool2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2), sizeof(Bool2)); + [FieldOffset(0)] private bool x; @@ -17,66 +27,75 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref bool this[int i] => throw new InvalidExecutionContextException($"{typeof(Bool2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref bool this[int i] => ref *(bool*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref bool X => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(X)}"); + public ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref bool Y => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(Y)}"); + public ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 XX => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 XX => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 XY => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 XY => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 YX => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 YX => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 YY => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 YY => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref bool R => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(R)}"); + public ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref bool G => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(G)}"); + public ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 RR => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 RR => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 RG => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 RG => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 GR => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 GR => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 GG => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 GG => ref *(Bool2*)UndefinedData; } } diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs index 84ce6598..81ee2efc 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Bool3 + public unsafe partial struct Bool3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3), sizeof(Bool3)); + [FieldOffset(0)] private bool x; @@ -20,396 +30,469 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref bool this[int i] => throw new InvalidExecutionContextException($"{typeof(Bool3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref bool this[int i] => ref *(bool*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref bool X => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(X)}"); + public ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref bool Y => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(Y)}"); + public ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref bool Z => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(Z)}"); + public ref bool Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 XX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 XX => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 XY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 XY => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 XZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 XZ => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 YX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 YX => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 YY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 YY => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 YZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 YZ => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 ZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 ZX => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 ZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 ZY => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 ZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 ZZ => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XXX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XXY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XXZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XYX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XYY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XYY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XYZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XZX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YXX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YXY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YXY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YXZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YYX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YYY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YYZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YYZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZXX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZXX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZXY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZXZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZYX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZYY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZZZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref bool R => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(R)}"); + public ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref bool G => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(G)}"); + public ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref bool B => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(B)}"); + public ref bool B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 RR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 RR => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 RG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 RG => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 RB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 RB => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 GR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 GR => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 GG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 GG => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 GB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 GB => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 BR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 BR => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 BG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 BG => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 BB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 BB => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RRR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RRG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RRB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RRB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RGR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RGG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RGG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RGB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RBR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RBR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RBG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RBB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RBB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GRR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GRG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GRG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GRB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GRB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GGR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GGG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GGB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GGB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GBR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GBG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GBB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GBB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BRR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BRR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BRG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BRB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BRB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BGR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BGG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BGB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BBR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BBG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BBB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BBB => ref *(Bool3*)UndefinedData; } } diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs index 096c0f97..7b755bb9 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Bool4 + public unsafe partial struct Bool4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4), sizeof(Bool4)); + [FieldOffset(0)] private bool x; @@ -23,3406 +33,4079 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref bool this[int i] => throw new InvalidExecutionContextException($"{typeof(Bool4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref bool this[int i] => ref *(bool*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref bool X => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(X)}"); + public ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref bool Y => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(Y)}"); + public ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref bool Z => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(Z)}"); + public ref bool Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the W component. /// - public ref bool W => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(W)}"); + public ref bool W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 XX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 XX => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 XY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 XY => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 XZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 XZ => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 XW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 XW => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 YX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 YX => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 YY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 YY => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 YZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 YZ => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 YW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 YW => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 ZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 ZX => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 ZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 ZY => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 ZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 ZZ => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 ZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 ZW => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 WX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 WX => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 WY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 WY => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 WZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 WZ => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 WW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 WW => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XXW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XYY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XYZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XYW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XZX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XZZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XZW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XWX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XWY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 XWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 XWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 XWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 XWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YXX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YXY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YXZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YXW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YYW => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YZZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YZW => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YWX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YWY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 YWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 YWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 YWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 YWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZXX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZXY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZXZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZXW => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZYY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZYZ => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZYW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZZX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZZW => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZWX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ZWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ZWY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ZWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ZWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WXX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 WXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 WXY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 WXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 WXZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WXW => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 WYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 WYX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WYY => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 WYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 WYZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WYW => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 WZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 WZX => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 WZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 WZY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WZZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WZW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WWX => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WWY => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WWZ => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 WWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 WWW => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XXWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 XYZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 XYZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYWY => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 XYWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 XYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XYWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 XZYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 XZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZWX => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 XZWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 XZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XZWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWYY => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 XWYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 XWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWZX => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 XWZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 XWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 XWWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(XWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 XWWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 YXZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 YXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXWY => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 YXWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 YXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YXWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YYWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 YZXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 YZXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZZW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 YZWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 YZWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YZWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWXY => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 YWXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 YWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWYW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 YWZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 YWZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 YWWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(YWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 YWWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ZXYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ZXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXWX => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ZXWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ZXWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZXWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ZYXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ZYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYZW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ZYWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ZYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZYWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZZWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWXX => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ZWXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ZWXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWXW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ZWYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ZWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ZWWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ZWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ZWWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXYY => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 WXYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 WXYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXZX => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 WXZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 WXZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WXWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WXWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYXY => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 WYXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 WYXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYYW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 WYZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 WYZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WYWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WYWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZXX => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 WZXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 WZXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZXW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 WZYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 WZYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WZWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WZWW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWXX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWXX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWXY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWXY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWXZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWXZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWXW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWXW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWYX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWYX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWYY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWYY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWYZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWYZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWYW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWYW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWZX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWZX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWZY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWZY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWZZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWZZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWZW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWZW => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWWX => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWWX => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWWY => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWWY => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWWZ => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWWZ => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 WWWW => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(WWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 WWWW => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref bool R => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(R)}"); + public ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref bool G => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(G)}"); + public ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref bool B => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(B)}"); + public ref bool B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the A component. /// - public ref bool A => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(A)}"); + public ref bool A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 RR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 RR => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 RG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 RG => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 RB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 RB => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 RA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 RA => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 GR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 GR => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 GG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 GG => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 GB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 GB => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 GA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 GA => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 BR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 BR => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 BG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 BG => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 BB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 BB => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 BA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 BA => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 AR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 AR => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 AG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 AG => ref *(Bool2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Bool2 AB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool2 AB => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Bool2 AA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool2 AA => ref *(Bool2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RRB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RRA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RGG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RGB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RGA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RBR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RBB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RBA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RAR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RAG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 RAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 RAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 RAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 RAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GRR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GRG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GRB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GRA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GGA => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GBB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GBA => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GAR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GAG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 GAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 GAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 GAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 GAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BRR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BRG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BRB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BRA => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BGG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BGB => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BGA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BBR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BBG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BBB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BBA => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BAR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 BAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 BAG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 BAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 BAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ARR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ARR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ARG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ARG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ARB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ARB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ARA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ARA => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 AGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 AGR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 AGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 AGG => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 AGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 AGB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 AGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 AGA => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ABR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ABR => ref *(Bool3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Bool3 ABG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool3 ABG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ABB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ABB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 ABA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 ABA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 AAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 AAR => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 AAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 AAG => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 AAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 AAB => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Bool3 AAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool3 AAA => ref *(Bool3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RRAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RRAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGBB => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 RGBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 RGBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGAG => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 RGAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 RGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RGAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBGB => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 RBGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 RBGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBAR => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 RBAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 RBAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RBAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RBAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RARR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RARR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RARG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RARG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RARB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RARA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RARA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RAGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RAGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RAGG => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 RAGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 RAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RAGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RAGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RABR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RABR => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 RABG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 RABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RABB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RABA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RAAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RAAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RAAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 RAAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(RAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 RAAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRBB => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 GRBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 GRBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRAG => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 GRAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 GRAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GRAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GRAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GGAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBRB => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 GBRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 GBRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBBA => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 GBAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 GBAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GBAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GBAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GARR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GARR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GARG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GARG => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 GARB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 GARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GARA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GARA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAGA => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 GABR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 GABR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GABG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GABB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GABA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 GAAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(GAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 GAAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRGB => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 BRGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 BRGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRAR => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 BRAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 BRAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BRAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BRAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGRB => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 BGRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 BGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGBA => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 BGAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 BGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BGAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BBAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BBAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BARR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BARR => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 BARG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 BARG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BARB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BARA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BARA => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 BAGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 BAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BAGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BAGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BAGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BAGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BAGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BABR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BABR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BABG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BABB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BABA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BAAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BAAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BAAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 BAAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(BAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 BAAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARGG => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ARGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ARGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARBR => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ARBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ARBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ARAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ARAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ARAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGRR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGRG => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 AGRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 AGRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGRA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGGA => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 AGBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 AGBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AGAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AGAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABRR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABRR => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ABRG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ABRG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABRB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABRB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABRA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABRA => ref *(Bool4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Bool4 ABGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Bool4 ABGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABBR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABBR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABBG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABBG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABBB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABBB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABBA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABBA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 ABAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(ABAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 ABAA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AARR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AARR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AARG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AARG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AARB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AARB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AARA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AARA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAGR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAGR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAGG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAGG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAGB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAGB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAGA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAGA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AABR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AABR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AABG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AABG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AABB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AABB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AABA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AABA => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAAR => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAAR => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAAG => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAAG => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAAB => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAAB => ref *(Bool4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Bool4 AAAA => throw new InvalidExecutionContextException($"{typeof(Bool4)}.{nameof(AAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Bool4 AAAA => ref *(Bool4*)UndefinedData; } } diff --git a/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs b/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs index 1b3586df..ab957957 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] - public partial struct Bool1x1 + public unsafe partial struct Bool1x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x1), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -23,14 +33,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref bool this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -38,7 +50,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -47,12 +60,13 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Creates a new value with the same value for all its components. @@ -71,41 +85,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool1x1 operator -(Bool1x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}.-"); + /// This 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 Bool1x1 operator -(Bool1x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool1x1 operator +(Bool1x1 left, Bool1x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}.+"); + /// This 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 Bool1x1 operator +(Bool1x1 left, Bool1x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool1x1 operator /(Bool1x1 left, Bool1x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}./"); + /// This 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 Bool1x1 operator /(Bool1x1 left, Bool1x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool1x1 operator *(Bool1x1 left, Bool1x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}.*"); + /// This 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 Bool1x1 operator *(Bool1x1 left, Bool1x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool1x1 operator -(Bool1x1 left, Bool1x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x1)}.-"); + /// This 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 Bool1x1 operator -(Bool1x1 left, Bool1x1 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Bool1x2 + public unsafe partial struct Bool1x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x2), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -127,14 +151,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -142,7 +168,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -151,17 +178,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Creates a new value with the same value for all its components. @@ -181,47 +209,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool1x2 operator -(Bool1x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.-"); + /// This 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 Bool1x2 operator -(Bool1x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool1x2 operator +(Bool1x2 left, Bool1x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.+"); + /// This 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 Bool1x2 operator +(Bool1x2 left, Bool1x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool1x2 operator /(Bool1x2 left, Bool1x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}./"); + /// This 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 Bool1x2 operator /(Bool1x2 left, Bool1x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool1x2 operator *(Bool1x2 left, Bool1x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.*"); + /// This 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 Bool1x2 operator *(Bool1x2 left, Bool1x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool1x2 operator -(Bool1x2 left, Bool1x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.-"); + /// This 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 Bool1x2 operator -(Bool1x2 left, Bool1x2 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Bool1x2(Bool2 vector) => throw new InvalidExecutionContextException($"{typeof(Bool1x2)}.{typeof(Bool1x2)}({typeof(Bool2)})"); + public static implicit operator Bool1x2(Bool2 vector) => *(Bool1x2*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Bool1x3 + public unsafe partial struct Bool1x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x3), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -248,14 +286,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -263,7 +303,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -272,22 +313,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Creates a new value with the same value for all its components. @@ -308,47 +350,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool1x3 operator -(Bool1x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.-"); + /// This 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 Bool1x3 operator -(Bool1x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool1x3 operator +(Bool1x3 left, Bool1x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.+"); + /// This 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 Bool1x3 operator +(Bool1x3 left, Bool1x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool1x3 operator /(Bool1x3 left, Bool1x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}./"); + /// This 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 Bool1x3 operator /(Bool1x3 left, Bool1x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool1x3 operator *(Bool1x3 left, Bool1x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.*"); + /// This 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 Bool1x3 operator *(Bool1x3 left, Bool1x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool1x3 operator -(Bool1x3 left, Bool1x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.-"); + /// This 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 Bool1x3 operator -(Bool1x3 left, Bool1x3 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Bool1x3(Bool3 vector) => throw new InvalidExecutionContextException($"{typeof(Bool1x3)}.{typeof(Bool1x3)}({typeof(Bool3)})"); + public static implicit operator Bool1x3(Bool3 vector) => *(Bool1x3*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Bool1x4 + public unsafe partial struct Bool1x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x4), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -380,14 +432,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -395,7 +449,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -404,27 +459,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.M14"); + public ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Creates a new value with the same value for all its components. @@ -446,47 +502,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool1x4 operator -(Bool1x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.-"); + /// This 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 Bool1x4 operator -(Bool1x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool1x4 operator +(Bool1x4 left, Bool1x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.+"); + /// This 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 Bool1x4 operator +(Bool1x4 left, Bool1x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool1x4 operator /(Bool1x4 left, Bool1x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}./"); + /// This 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 Bool1x4 operator /(Bool1x4 left, Bool1x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool1x4 operator *(Bool1x4 left, Bool1x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.*"); + /// This 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 Bool1x4 operator *(Bool1x4 left, Bool1x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool1x4 operator -(Bool1x4 left, Bool1x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.-"); + /// This 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 Bool1x4 operator -(Bool1x4 left, Bool1x4 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Bool1x4(Bool4 vector) => throw new InvalidExecutionContextException($"{typeof(Bool1x4)}.{typeof(Bool1x4)}({typeof(Bool4)})"); + public static implicit operator Bool1x4(Bool4 vector) => *(Bool1x4*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Bool2x1 + public unsafe partial struct Bool2x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x1), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -508,14 +574,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref bool this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -523,7 +591,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -532,17 +601,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Creates a new value with the same value for all its components. @@ -562,47 +632,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool2x1 operator -(Bool2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.-"); + /// This 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 Bool2x1 operator -(Bool2x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool2x1 operator +(Bool2x1 left, Bool2x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.+"); + /// This 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 Bool2x1 operator +(Bool2x1 left, Bool2x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool2x1 operator /(Bool2x1 left, Bool2x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}./"); + /// This 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 Bool2x1 operator /(Bool2x1 left, Bool2x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool2x1 operator *(Bool2x1 left, Bool2x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.*"); + /// This 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 Bool2x1 operator *(Bool2x1 left, Bool2x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool2x1 operator -(Bool2x1 left, Bool2x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.-"); + /// This 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 Bool2x1 operator -(Bool2x1 left, Bool2x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Bool2(Bool2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool2x1)}.{typeof(Bool2)}({typeof(Bool2x1)})"); + public static implicit operator Bool2(Bool2x1 matrix) => *(Bool2*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Bool2x2 + public unsafe partial struct Bool2x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x2), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -647,14 +727,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -662,7 +744,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -671,27 +754,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Creates a new value with the same value for all its components. @@ -713,41 +797,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool2x2 operator -(Bool2x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.-"); + /// This 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 Bool2x2 operator -(Bool2x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool2x2 operator +(Bool2x2 left, Bool2x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.+"); + /// This 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 Bool2x2 operator +(Bool2x2 left, Bool2x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool2x2 operator /(Bool2x2 left, Bool2x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}./"); + /// This 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 Bool2x2 operator /(Bool2x2 left, Bool2x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool2x2 operator *(Bool2x2 left, Bool2x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.*"); + /// This 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 Bool2x2 operator *(Bool2x2 left, Bool2x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool2x2 operator -(Bool2x2 left, Bool2x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x2)}.-"); + /// This 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 Bool2x2 operator -(Bool2x2 left, Bool2x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct Bool2x3 + public unsafe partial struct Bool2x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x3), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -804,14 +898,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -819,7 +915,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -828,37 +925,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.M23"); + public ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Creates a new value with the same value for all its components. @@ -882,41 +980,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool2x3 operator -(Bool2x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.-"); + /// This 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 Bool2x3 operator -(Bool2x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool2x3 operator +(Bool2x3 left, Bool2x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.+"); + /// This 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 Bool2x3 operator +(Bool2x3 left, Bool2x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool2x3 operator /(Bool2x3 left, Bool2x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}./"); + /// This 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 Bool2x3 operator /(Bool2x3 left, Bool2x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool2x3 operator *(Bool2x3 left, Bool2x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.*"); + /// This 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 Bool2x3 operator *(Bool2x3 left, Bool2x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool2x3 operator -(Bool2x3 left, Bool2x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x3)}.-"); + /// This 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 Bool2x3 operator -(Bool2x3 left, Bool2x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct Bool2x4 + public unsafe partial struct Bool2x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x4), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -985,14 +1093,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1000,7 +1110,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1009,47 +1120,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M14"); + public ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M23"); + public ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref bool M24 => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.M24"); + public ref bool M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Creates a new value with the same value for all its components. @@ -1075,41 +1187,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool2x4 operator -(Bool2x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.-"); + /// This 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 Bool2x4 operator -(Bool2x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool2x4 operator +(Bool2x4 left, Bool2x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.+"); + /// This 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 Bool2x4 operator +(Bool2x4 left, Bool2x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool2x4 operator /(Bool2x4 left, Bool2x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}./"); + /// This 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 Bool2x4 operator /(Bool2x4 left, Bool2x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool2x4 operator *(Bool2x4 left, Bool2x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.*"); + /// This 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 Bool2x4 operator *(Bool2x4 left, Bool2x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool2x4 operator -(Bool2x4 left, Bool2x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool2x4)}.-"); + /// This 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 Bool2x4 operator -(Bool2x4 left, Bool2x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Bool3x1 + public unsafe partial struct Bool3x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x1), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -1136,14 +1258,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref bool this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1151,7 +1275,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1160,22 +1285,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Creates a new value with the same value for all its components. @@ -1196,47 +1322,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool3x1 operator -(Bool3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.-"); + /// This 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 Bool3x1 operator -(Bool3x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool3x1 operator +(Bool3x1 left, Bool3x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.+"); + /// This 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 Bool3x1 operator +(Bool3x1 left, Bool3x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool3x1 operator /(Bool3x1 left, Bool3x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}./"); + /// This 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 Bool3x1 operator /(Bool3x1 left, Bool3x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool3x1 operator *(Bool3x1 left, Bool3x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.*"); + /// This 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 Bool3x1 operator *(Bool3x1 left, Bool3x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool3x1 operator -(Bool3x1 left, Bool3x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.-"); + /// This 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 Bool3x1 operator -(Bool3x1 left, Bool3x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Bool3(Bool3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool3x1)}.{typeof(Bool3)}({typeof(Bool3x1)})"); + public static implicit operator Bool3(Bool3x1 matrix) => *(Bool3*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct Bool3x2 + public unsafe partial struct Bool3x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x2), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -1294,14 +1430,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1309,7 +1447,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1318,37 +1457,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.M32"); + public ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Creates a new value with the same value for all its components. @@ -1372,41 +1512,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool3x2 operator -(Bool3x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.-"); + /// This 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 Bool3x2 operator -(Bool3x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool3x2 operator +(Bool3x2 left, Bool3x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.+"); + /// This 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 Bool3x2 operator +(Bool3x2 left, Bool3x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool3x2 operator /(Bool3x2 left, Bool3x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}./"); + /// This 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 Bool3x2 operator /(Bool3x2 left, Bool3x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool3x2 operator *(Bool3x2 left, Bool3x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.*"); + /// This 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 Bool3x2 operator *(Bool3x2 left, Bool3x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool3x2 operator -(Bool3x2 left, Bool3x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x2)}.-"); + /// This 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 Bool3x2 operator -(Bool3x2 left, Bool3x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)] - public partial struct Bool3x3 + public unsafe partial struct Bool3x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x3), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -1482,14 +1632,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1497,7 +1649,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1506,52 +1659,53 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M23"); + public ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M32"); + public ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.M33"); + public ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Creates a new value with the same value for all its components. @@ -1578,41 +1732,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool3x3 operator -(Bool3x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.-"); + /// This 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 Bool3x3 operator -(Bool3x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool3x3 operator +(Bool3x3 left, Bool3x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.+"); + /// This 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 Bool3x3 operator +(Bool3x3 left, Bool3x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool3x3 operator /(Bool3x3 left, Bool3x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}./"); + /// This 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 Bool3x3 operator /(Bool3x3 left, Bool3x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool3x3 operator *(Bool3x3 left, Bool3x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.*"); + /// This 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 Bool3x3 operator *(Bool3x3 left, Bool3x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool3x3 operator -(Bool3x3 left, Bool3x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x3)}.-"); + /// This 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 Bool3x3 operator -(Bool3x3 left, Bool3x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct Bool3x4 + public unsafe partial struct Bool3x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x4), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -1706,14 +1870,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1721,7 +1887,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1730,67 +1897,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M14"); + public ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M23"); + public ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref bool M24 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M24"); + public ref bool M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M32"); + public ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M33"); + public ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref bool M34 => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.M34"); + public ref bool M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Creates a new value with the same value for all its components. @@ -1820,41 +1988,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool3x4 operator -(Bool3x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.-"); + /// This 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 Bool3x4 operator -(Bool3x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool3x4 operator +(Bool3x4 left, Bool3x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.+"); + /// This 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 Bool3x4 operator +(Bool3x4 left, Bool3x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool3x4 operator /(Bool3x4 left, Bool3x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}./"); + /// This 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 Bool3x4 operator /(Bool3x4 left, Bool3x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool3x4 operator *(Bool3x4 left, Bool3x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.*"); + /// This 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 Bool3x4 operator *(Bool3x4 left, Bool3x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool3x4 operator -(Bool3x4 left, Bool3x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool3x4)}.-"); + /// This 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 Bool3x4 operator -(Bool3x4 left, Bool3x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Bool4x1 + public unsafe partial struct Bool4x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x1), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -1886,14 +2064,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref bool this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1901,7 +2081,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1910,27 +2091,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.M41"); + public ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Creates a new value with the same value for all its components. @@ -1952,47 +2134,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool4x1 operator -(Bool4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.-"); + /// This 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 Bool4x1 operator -(Bool4x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool4x1 operator +(Bool4x1 left, Bool4x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.+"); + /// This 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 Bool4x1 operator +(Bool4x1 left, Bool4x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool4x1 operator /(Bool4x1 left, Bool4x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}./"); + /// This 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 Bool4x1 operator /(Bool4x1 left, Bool4x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool4x1 operator *(Bool4x1 left, Bool4x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.*"); + /// This 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 Bool4x1 operator *(Bool4x1 left, Bool4x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool4x1 operator -(Bool4x1 left, Bool4x1 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.-"); + /// This 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 Bool4x1 operator -(Bool4x1 left, Bool4x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Bool4(Bool4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool4x1)}.{typeof(Bool4)}({typeof(Bool4x1)})"); + public static implicit operator Bool4(Bool4x1 matrix) => *(Bool4*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct Bool4x2 + public unsafe partial struct Bool4x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x2), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -2063,14 +2255,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2078,7 +2272,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2087,47 +2282,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M32"); + public ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M41"); + public ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref bool M42 => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.M42"); + public ref bool M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Creates a new value with the same value for all its components. @@ -2153,41 +2349,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool4x2 operator -(Bool4x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.-"); + /// This 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 Bool4x2 operator -(Bool4x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool4x2 operator +(Bool4x2 left, Bool4x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.+"); + /// This 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 Bool4x2 operator +(Bool4x2 left, Bool4x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool4x2 operator /(Bool4x2 left, Bool4x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}./"); + /// This 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 Bool4x2 operator /(Bool4x2 left, Bool4x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool4x2 operator *(Bool4x2 left, Bool4x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.*"); + /// This 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 Bool4x2 operator *(Bool4x2 left, Bool4x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool4x2 operator -(Bool4x2 left, Bool4x2 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x2)}.-"); + /// This 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 Bool4x2 operator -(Bool4x2 left, Bool4x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct Bool4x3 + public unsafe partial struct Bool4x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x3), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -2282,14 +2488,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2297,7 +2505,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2306,67 +2515,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M23"); + public ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M32"); + public ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M33"); + public ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M41"); + public ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref bool M42 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M42"); + public ref bool M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref bool M43 => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.M43"); + public ref bool M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Creates a new value with the same value for all its components. @@ -2396,41 +2606,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool4x3 operator -(Bool4x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.-"); + /// This 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 Bool4x3 operator -(Bool4x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool4x3 operator +(Bool4x3 left, Bool4x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.+"); + /// This 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 Bool4x3 operator +(Bool4x3 left, Bool4x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool4x3 operator /(Bool4x3 left, Bool4x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}./"); + /// This 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 Bool4x3 operator /(Bool4x3 left, Bool4x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool4x3 operator *(Bool4x3 left, Bool4x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.*"); + /// This 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 Bool4x3 operator *(Bool4x3 left, Bool4x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool4x3 operator -(Bool4x3 left, Bool4x3 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x3)}.-"); + /// This 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 Bool4x3 operator -(Bool4x3 left, Bool4x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)] - public partial struct Bool4x4 + public unsafe partial struct Bool4x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x4), sizeof(Bool4)); + [FieldOffset(0)] private bool m11; @@ -2549,14 +2769,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Bool4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2564,7 +2786,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2573,87 +2796,88 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref bool M11 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M11"); + public ref bool M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref bool M12 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M12"); + public ref bool M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref bool M13 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M13"); + public ref bool M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref bool M14 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M14"); + public ref bool M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref bool M21 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M21"); + public ref bool M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref bool M22 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M22"); + public ref bool M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref bool M23 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M23"); + public ref bool M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref bool M24 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M24"); + public ref bool M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref bool M31 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M31"); + public ref bool M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref bool M32 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M32"); + public ref bool M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref bool M33 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M33"); + public ref bool M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref bool M34 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M34"); + public ref bool M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref bool M41 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M41"); + public ref bool M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref bool M42 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M42"); + public ref bool M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref bool M43 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M43"); + public ref bool M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public ref bool M44 => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.M44"); + public ref bool M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m44, 1)); /// /// Creates a new value with the same value for all its components. @@ -2687,34 +2911,39 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Bool4x4 operator -(Bool4x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.-"); + /// This 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 Bool4x4 operator -(Bool4x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Bool4x4 operator +(Bool4x4 left, Bool4x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.+"); + /// This 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 Bool4x4 operator +(Bool4x4 left, Bool4x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Bool4x4 operator /(Bool4x4 left, Bool4x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}./"); + /// This 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 Bool4x4 operator /(Bool4x4 left, Bool4x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Bool4x4 operator *(Bool4x4 left, Bool4x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.*"); + /// This 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 Bool4x4 operator *(Bool4x4 left, Bool4x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Bool4x4 operator -(Bool4x4 left, Bool4x4 right) => throw new InvalidExecutionContextException($"{typeof(Bool4x4)}.-"); + /// This 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 Bool4x4 operator -(Bool4x4 left, Bool4x4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Double/Double2.cs b/src/ComputeSharp/Core/Primitives/Double/Double2.cs index b28fa948..45b9cafc 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double2.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double2.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -50,18 +49,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int2(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.({nameof(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 explicit operator Int2(Double2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt2(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.({nameof(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 explicit operator UInt2(Double2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Float2(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.({nameof(Float2)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static explicit operator Float2(Double2 xy) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs index 4d3f1728..c89db8db 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] - public partial struct Double2 + public unsafe partial struct Double2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2), sizeof(Double2)); + [FieldOffset(0)] private double x; @@ -17,100 +27,114 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref double this[int i] => throw new InvalidExecutionContextException($"{typeof(Double2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref double this[int i] => ref *(double*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref double X => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(X)}"); + public ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref double Y => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(Y)}"); + public ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 XX => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 XX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 XY => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 XY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 YX => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 YY => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 YY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref double R => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(R)}"); + public ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref double G => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(G)}"); + public ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 RR => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 RR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 RG => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 RG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 GR => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 GG => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 GG => ref *(Double2*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Double2 operator -(Double2 xy) => throw new InvalidExecutionContextException($"{typeof(Double2)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2 operator -(Double2 xy) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double2 operator +(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}.+"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2 operator +(Double2 left, Double2 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Double2 operator /(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}./"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2 operator /(Double2 left, Double2 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Double2 operator *(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}.*"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2 operator *(Double2 left, Double2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double2 operator -(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2 operator -(Double2 left, Double2 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Double/Double3.cs b/src/ComputeSharp/Core/Primitives/Double/Double3.cs index 22ac229f..508e6c09 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double3.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double3.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -81,18 +80,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int3(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.({nameof(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 explicit operator Int3(Double3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt3(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.({nameof(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 explicit operator UInt3(Double3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Float3(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.({nameof(Float3)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static explicit operator Float3(Double3 xyz) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs index 594e0ae4..fcaf1279 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)] - public partial struct Double3 + public unsafe partial struct Double3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3), sizeof(Double3)); + [FieldOffset(0)] private double x; @@ -20,430 +30,508 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref double this[int i] => throw new InvalidExecutionContextException($"{typeof(Double3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref double this[int i] => ref *(double*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref double X => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(X)}"); + public ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref double Y => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(Y)}"); + public ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref double Z => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(Z)}"); + public ref double Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 XX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 XX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 XY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 XY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 XZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 XZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 YX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 YY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 YY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 YZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 YZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 ZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 ZX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 ZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 ZY => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 ZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 ZZ => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XXX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XXY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XXZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XYX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XYY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XYY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XYZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XZX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YXX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YXY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YXY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YXZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YYX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YYY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YYZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YYZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZXX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZXX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZXY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZXZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZYX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZYY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZZZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref double R => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(R)}"); + public ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref double G => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(G)}"); + public ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref double B => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(B)}"); + public ref double B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 RR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 RR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 RG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 RG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 RB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 RB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 GR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 GG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 GG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 GB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 GB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 BR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 BR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 BG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 BG => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 BB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 BB => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RRR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RRG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RRB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RRB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RGR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RGG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RGG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RGB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RBR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RBR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RBG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RBB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RBB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GRR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GRG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GRG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GRB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GRB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GGR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GGG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GGB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GGB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GBR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GBG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GBB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GBB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BRR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BRR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BRG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BRB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BRB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BGR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BGG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BGB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BBR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BBG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BBB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BBB => ref *(Double3*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Double3 operator -(Double3 xyz) => throw new InvalidExecutionContextException($"{typeof(Double3)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3 operator -(Double3 xyz) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double3 operator +(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}.+"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3 operator +(Double3 left, Double3 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Double3 operator /(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}./"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3 operator /(Double3 left, Double3 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Double3 operator *(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}.*"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3 operator *(Double3 left, Double3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double3 operator -(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3 operator -(Double3 left, Double3 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Double/Double4.cs b/src/ComputeSharp/Core/Primitives/Double/Double4.cs index 76fc888c..c4e231bd 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double4.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double4.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -131,18 +130,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int4(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.({nameof(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 explicit operator Int4(Double4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt4(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.({nameof(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 explicit operator UInt4(Double4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Float4(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.({nameof(Float4)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static explicit operator Float4(Double4 xyzw) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs index a147c510..558ac8f2 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] - public partial struct Double4 + public unsafe partial struct Double4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4), sizeof(Double4)); + [FieldOffset(0)] private double x; @@ -23,3440 +33,4118 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref double this[int i] => throw new InvalidExecutionContextException($"{typeof(Double4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref double this[int i] => ref *(double*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref double X => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(X)}"); + public ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref double Y => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(Y)}"); + public ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref double Z => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(Z)}"); + public ref double Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the W component. /// - public ref double W => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(W)}"); + public ref double W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 XX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 XX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 XY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 XY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 XZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 XZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 XW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 XW => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 YX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 YX => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 YY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 YY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 YZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 YZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 YW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 YW => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 ZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 ZX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 ZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 ZY => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 ZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 ZZ => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 ZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 ZW => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 WX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 WX => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 WY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 WY => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 WZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 WZ => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 WW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 WW => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XXW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XYY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XYZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XYW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XZX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XZZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XZW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XWX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XWY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 XWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 XWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 XWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 XWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YXX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YXY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YXZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YXW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YYW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YZZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YZW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YWX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YWY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 YWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 YWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 YWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 YWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZXX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZXY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZXZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZXW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZYY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZYZ => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZYW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZZX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZZW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZWX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ZWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ZWY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ZWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ZWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WXX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 WXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 WXY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 WXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 WXZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WXW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 WYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 WYX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WYY => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 WYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 WYZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WYW => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 WZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 WZX => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 WZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 WZY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WZZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WZW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WWX => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WWY => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WWZ => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 WWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 WWW => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XXWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYZZ => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 XYZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 XYZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYWY => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 XYWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 XYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XYWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZYZ => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 XZYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 XZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZWX => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 XZWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 XZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XZWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWYY => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 XWYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 XWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWZX => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 XWZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 XWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 XWWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(XWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 XWWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXZZ => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 YXZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 YXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXWY => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 YXWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 YXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YXWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YYWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZXZ => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 YZXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 YZXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZZW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 YZWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 YZWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YZWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWXY => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 YWXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 YWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWYW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 YWZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 YWZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 YWWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(YWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 YWWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXYZ => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ZXYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ZXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXWX => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ZXWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ZXWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZXWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYXZ => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ZYXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ZYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYZW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ZYWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ZYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZYWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZZWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWXX => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ZWXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ZWXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWXW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ZWYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ZWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ZWWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ZWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ZWWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXYY => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 WXYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 WXYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXZX => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 WXZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 WXZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WXWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WXWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYXY => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 WYXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 WYXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYYW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 WYZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 WYZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WYWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WYWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZXX => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 WZXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 WZXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZXW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 WZYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 WZYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WZWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WZWW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWXX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWXX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWXY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWXY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWXZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWXZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWXW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWXW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWYX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWYX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWYY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWYY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWYZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWYZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWYW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWYW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWZX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWZX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWZY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWZY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWZZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWZZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWZW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWZW => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWWX => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWWX => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWWY => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWWY => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWWZ => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWWZ => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 WWWW => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(WWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 WWWW => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref double R => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(R)}"); + public ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref double G => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(G)}"); + public ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref double B => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(B)}"); + public ref double B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the A component. /// - public ref double A => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(A)}"); + public ref double A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 RR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 RR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 RG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 RG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 RB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 RB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 RA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 RA => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 GR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 GR => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 GG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 GG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 GB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 GB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 GA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 GA => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 BR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 BR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 BG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 BG => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 BB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 BB => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 BA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 BA => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 AR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 AR => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 AG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 AG => ref *(Double2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Double2 AB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double2 AB => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Double2 AA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double2 AA => ref *(Double2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RRB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RRA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RGG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RGB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RGA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RBR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RBB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RBA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RAR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RAG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 RAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 RAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 RAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 RAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GRR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GRG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GRB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GRA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GGA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GBB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GBA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GAR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GAG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 GAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 GAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 GAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 GAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BRR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BRG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BRB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BRA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BGG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BGB => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BGA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BBR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BBG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BBB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BBA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BAR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 BAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 BAG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 BAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 BAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ARR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ARR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ARG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ARG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ARB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ARB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ARA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ARA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 AGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 AGR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 AGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 AGG => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 AGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 AGB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 AGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 AGA => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ABR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ABR => ref *(Double3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Double3 ABG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double3 ABG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ABB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ABB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 ABA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 ABA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 AAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 AAR => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 AAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 AAG => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 AAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 AAB => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Double3 AAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double3 AAA => ref *(Double3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RRAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RRAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGBB => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 RGBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 RGBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGAG => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 RGAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 RGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RGAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBGB => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 RBGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 RBGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBAR => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 RBAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 RBAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RBAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RBAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RARR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RARR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RARG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RARG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RARB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RARA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RARA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RAGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RAGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RAGG => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 RAGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 RAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RAGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RAGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RABR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RABR => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 RABG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 RABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RABB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RABA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RAAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RAAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RAAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 RAAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(RAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 RAAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRBB => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 GRBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 GRBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRAG => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 GRAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 GRAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GRAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GRAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GGAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBRB => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 GBRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 GBRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBBA => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 GBAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 GBAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GBAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GBAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GARR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GARR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GARG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GARG => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 GARB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 GARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GARA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GARA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAGA => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 GABR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 GABR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GABG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GABB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GABA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 GAAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(GAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 GAAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRGB => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 BRGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 BRGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRAR => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 BRAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 BRAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BRAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BRAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGRB => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 BGRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 BGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGBA => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 BGAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 BGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BGAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BBAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BBAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BARR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BARR => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 BARG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 BARG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BARB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BARA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BARA => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 BAGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 BAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BAGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BAGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BAGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BAGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BAGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BABR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BABR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BABG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BABB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BABA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BAAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BAAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BAAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 BAAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(BAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 BAAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARGG => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ARGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ARGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARBR => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ARBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ARBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ARAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ARAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ARAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGRR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGRG => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 AGRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 AGRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGRA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGGA => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 AGBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 AGBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AGAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AGAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABRR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABRR => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ABRG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ABRG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABRB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABRB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABRA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABRA => ref *(Double4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Double4 ABGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Double4 ABGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABBR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABBR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABBG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABBG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABBB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABBB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABBA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABBA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 ABAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(ABAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 ABAA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AARR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AARR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AARG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AARG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AARB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AARB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AARA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AARA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAGR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAGR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAGG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAGG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAGB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAGB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAGA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAGA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AABR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AABR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AABG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AABG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AABB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AABB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AABA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AABA => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAAR => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAAR => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAAG => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAAG => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAAB => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAAB => ref *(Double4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Double4 AAAA => throw new InvalidExecutionContextException($"{typeof(Double4)}.{nameof(AAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Double4 AAAA => ref *(Double4*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Double4 operator -(Double4 xyzw) => throw new InvalidExecutionContextException($"{typeof(Double4)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4 operator -(Double4 xyzw) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double4 operator +(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{typeof(Double4)}.+"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4 operator +(Double4 left, Double4 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Double4 operator /(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{typeof(Double4)}./"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4 operator /(Double4 left, Double4 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Double4 operator *(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{typeof(Double4)}.*"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4 operator *(Double4 left, Double4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double4 operator -(Double4 left, Double4 right) => throw new InvalidExecutionContextException($"{typeof(Double4)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4 operator -(Double4 left, Double4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs b/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs index f095b1ef..5d22bf30 100644 --- a/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 8)] - public partial struct Double1x1 + public unsafe partial struct Double1x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x1), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -23,14 +33,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref double this[int row] => throw new InvalidExecutionContextException($"{typeof(Double1x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -38,7 +50,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -47,12 +60,13 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x1)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Creates a new value with the same value for all its components. @@ -71,41 +85,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double1x1 operator -(Double1x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Double1x1)}.-"); + /// This 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 Double1x1 operator -(Double1x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double1x1 operator +(Double1x1 left, Double1x1 right) => throw new InvalidExecutionContextException($"{typeof(Double1x1)}.+"); + /// This 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 Double1x1 operator +(Double1x1 left, Double1x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double1x1 operator /(Double1x1 left, Double1x1 right) => throw new InvalidExecutionContextException($"{typeof(Double1x1)}./"); + /// This 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 Double1x1 operator /(Double1x1 left, Double1x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double1x1 operator *(Double1x1 left, Double1x1 right) => throw new InvalidExecutionContextException($"{typeof(Double1x1)}.*"); + /// This 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 Double1x1 operator *(Double1x1 left, Double1x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double1x1 operator -(Double1x1 left, Double1x1 right) => throw new InvalidExecutionContextException($"{typeof(Double1x1)}.-"); + /// This 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 Double1x1 operator -(Double1x1 left, Double1x1 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] - public partial struct Double1x2 + public unsafe partial struct Double1x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x2), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -127,14 +151,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double1x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -142,7 +168,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -151,17 +178,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Creates a new value with the same value for all its components. @@ -181,47 +209,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double1x2 operator -(Double1x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.-"); + /// This 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 Double1x2 operator -(Double1x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double1x2 operator +(Double1x2 left, Double1x2 right) => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.+"); + /// This 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 Double1x2 operator +(Double1x2 left, Double1x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double1x2 operator /(Double1x2 left, Double1x2 right) => throw new InvalidExecutionContextException($"{typeof(Double1x2)}./"); + /// This 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 Double1x2 operator /(Double1x2 left, Double1x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double1x2 operator *(Double1x2 left, Double1x2 right) => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.*"); + /// This 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 Double1x2 operator *(Double1x2 left, Double1x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double1x2 operator -(Double1x2 left, Double1x2 right) => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.-"); + /// This 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 Double1x2 operator -(Double1x2 left, Double1x2 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double1x2(Double2 vector) => throw new InvalidExecutionContextException($"{typeof(Double1x2)}.{typeof(Double1x2)}({typeof(Double2)})"); + public static implicit operator Double1x2(Double2 vector) => *(Double1x2*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)] - public partial struct Double1x3 + public unsafe partial struct Double1x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x3), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -248,14 +286,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double1x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -263,7 +303,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -272,22 +313,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Creates a new value with the same value for all its components. @@ -308,47 +350,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double1x3 operator -(Double1x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.-"); + /// This 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 Double1x3 operator -(Double1x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double1x3 operator +(Double1x3 left, Double1x3 right) => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.+"); + /// This 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 Double1x3 operator +(Double1x3 left, Double1x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double1x3 operator /(Double1x3 left, Double1x3 right) => throw new InvalidExecutionContextException($"{typeof(Double1x3)}./"); + /// This 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 Double1x3 operator /(Double1x3 left, Double1x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double1x3 operator *(Double1x3 left, Double1x3 right) => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.*"); + /// This 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 Double1x3 operator *(Double1x3 left, Double1x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double1x3 operator -(Double1x3 left, Double1x3 right) => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.-"); + /// This 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 Double1x3 operator -(Double1x3 left, Double1x3 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double1x3(Double3 vector) => throw new InvalidExecutionContextException($"{typeof(Double1x3)}.{typeof(Double1x3)}({typeof(Double3)})"); + public static implicit operator Double1x3(Double3 vector) => *(Double1x3*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] - public partial struct Double1x4 + public unsafe partial struct Double1x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x4), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -380,14 +432,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double1x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -395,7 +449,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -404,27 +459,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.M14"); + public ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Creates a new value with the same value for all its components. @@ -446,47 +502,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double1x4 operator -(Double1x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.-"); + /// This 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 Double1x4 operator -(Double1x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double1x4 operator +(Double1x4 left, Double1x4 right) => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.+"); + /// This 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 Double1x4 operator +(Double1x4 left, Double1x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double1x4 operator /(Double1x4 left, Double1x4 right) => throw new InvalidExecutionContextException($"{typeof(Double1x4)}./"); + /// This 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 Double1x4 operator /(Double1x4 left, Double1x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double1x4 operator *(Double1x4 left, Double1x4 right) => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.*"); + /// This 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 Double1x4 operator *(Double1x4 left, Double1x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double1x4 operator -(Double1x4 left, Double1x4 right) => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.-"); + /// This 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 Double1x4 operator -(Double1x4 left, Double1x4 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double1x4(Double4 vector) => throw new InvalidExecutionContextException($"{typeof(Double1x4)}.{typeof(Double1x4)}({typeof(Double4)})"); + public static implicit operator Double1x4(Double4 vector) => *(Double1x4*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] - public partial struct Double2x1 + public unsafe partial struct Double2x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x1), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -508,14 +574,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref double this[int row] => throw new InvalidExecutionContextException($"{typeof(Double2x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -523,7 +591,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -532,17 +601,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Creates a new value with the same value for all its components. @@ -562,47 +632,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double2x1 operator -(Double2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.-"); + /// This 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 Double2x1 operator -(Double2x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double2x1 operator +(Double2x1 left, Double2x1 right) => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.+"); + /// This 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 Double2x1 operator +(Double2x1 left, Double2x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double2x1 operator /(Double2x1 left, Double2x1 right) => throw new InvalidExecutionContextException($"{typeof(Double2x1)}./"); + /// This 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 Double2x1 operator /(Double2x1 left, Double2x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double2x1 operator *(Double2x1 left, Double2x1 right) => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.*"); + /// This 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 Double2x1 operator *(Double2x1 left, Double2x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double2x1 operator -(Double2x1 left, Double2x1 right) => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.-"); + /// This 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 Double2x1 operator -(Double2x1 left, Double2x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double2(Double2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Double2x1)}.{typeof(Double2)}({typeof(Double2x1)})"); + public static implicit operator Double2(Double2x1 matrix) => *(Double2*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] - public partial struct Double2x2 + public unsafe partial struct Double2x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x2), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -647,14 +727,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double2x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -662,7 +744,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -671,27 +754,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Creates a new value with the same value for all its components. @@ -713,41 +797,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double2x2 operator -(Double2x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.-"); + /// This 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 Double2x2 operator -(Double2x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double2x2 operator +(Double2x2 left, Double2x2 right) => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.+"); + /// This 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 Double2x2 operator +(Double2x2 left, Double2x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double2x2 operator /(Double2x2 left, Double2x2 right) => throw new InvalidExecutionContextException($"{typeof(Double2x2)}./"); + /// This 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 Double2x2 operator /(Double2x2 left, Double2x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double2x2 operator *(Double2x2 left, Double2x2 right) => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.*"); + /// This 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 Double2x2 operator *(Double2x2 left, Double2x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double2x2 operator -(Double2x2 left, Double2x2 right) => throw new InvalidExecutionContextException($"{typeof(Double2x2)}.-"); + /// This 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 Double2x2 operator -(Double2x2 left, Double2x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)] - public partial struct Double2x3 + public unsafe partial struct Double2x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x3), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -804,14 +898,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double2x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -819,7 +915,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -828,37 +925,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.M23"); + public ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Creates a new value with the same value for all its components. @@ -882,41 +980,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double2x3 operator -(Double2x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.-"); + /// This 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 Double2x3 operator -(Double2x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double2x3 operator +(Double2x3 left, Double2x3 right) => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.+"); + /// This 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 Double2x3 operator +(Double2x3 left, Double2x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double2x3 operator /(Double2x3 left, Double2x3 right) => throw new InvalidExecutionContextException($"{typeof(Double2x3)}./"); + /// This 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 Double2x3 operator /(Double2x3 left, Double2x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double2x3 operator *(Double2x3 left, Double2x3 right) => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.*"); + /// This 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 Double2x3 operator *(Double2x3 left, Double2x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double2x3 operator -(Double2x3 left, Double2x3 right) => throw new InvalidExecutionContextException($"{typeof(Double2x3)}.-"); + /// This 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 Double2x3 operator -(Double2x3 left, Double2x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 8)] - public partial struct Double2x4 + public unsafe partial struct Double2x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x4), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -985,14 +1093,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double2x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1000,7 +1110,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1009,47 +1120,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M14"); + public ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M23"); + public ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref double M24 => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.M24"); + public ref double M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Creates a new value with the same value for all its components. @@ -1075,41 +1187,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double2x4 operator -(Double2x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.-"); + /// This 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 Double2x4 operator -(Double2x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double2x4 operator +(Double2x4 left, Double2x4 right) => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.+"); + /// This 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 Double2x4 operator +(Double2x4 left, Double2x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double2x4 operator /(Double2x4 left, Double2x4 right) => throw new InvalidExecutionContextException($"{typeof(Double2x4)}./"); + /// This 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 Double2x4 operator /(Double2x4 left, Double2x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double2x4 operator *(Double2x4 left, Double2x4 right) => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.*"); + /// This 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 Double2x4 operator *(Double2x4 left, Double2x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double2x4 operator -(Double2x4 left, Double2x4 right) => throw new InvalidExecutionContextException($"{typeof(Double2x4)}.-"); + /// This 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 Double2x4 operator -(Double2x4 left, Double2x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)] - public partial struct Double3x1 + public unsafe partial struct Double3x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x1), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -1136,14 +1258,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref double this[int row] => throw new InvalidExecutionContextException($"{typeof(Double3x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1151,7 +1275,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1160,22 +1285,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Creates a new value with the same value for all its components. @@ -1196,47 +1322,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double3x1 operator -(Double3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.-"); + /// This 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 Double3x1 operator -(Double3x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double3x1 operator +(Double3x1 left, Double3x1 right) => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.+"); + /// This 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 Double3x1 operator +(Double3x1 left, Double3x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double3x1 operator /(Double3x1 left, Double3x1 right) => throw new InvalidExecutionContextException($"{typeof(Double3x1)}./"); + /// This 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 Double3x1 operator /(Double3x1 left, Double3x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double3x1 operator *(Double3x1 left, Double3x1 right) => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.*"); + /// This 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 Double3x1 operator *(Double3x1 left, Double3x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double3x1 operator -(Double3x1 left, Double3x1 right) => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.-"); + /// This 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 Double3x1 operator -(Double3x1 left, Double3x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double3(Double3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Double3x1)}.{typeof(Double3)}({typeof(Double3x1)})"); + public static implicit operator Double3(Double3x1 matrix) => *(Double3*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)] - public partial struct Double3x2 + public unsafe partial struct Double3x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x2), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -1294,14 +1430,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double3x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1309,7 +1447,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1318,37 +1457,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.M32"); + public ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Creates a new value with the same value for all its components. @@ -1372,41 +1512,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double3x2 operator -(Double3x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.-"); + /// This 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 Double3x2 operator -(Double3x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double3x2 operator +(Double3x2 left, Double3x2 right) => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.+"); + /// This 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 Double3x2 operator +(Double3x2 left, Double3x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double3x2 operator /(Double3x2 left, Double3x2 right) => throw new InvalidExecutionContextException($"{typeof(Double3x2)}./"); + /// This 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 Double3x2 operator /(Double3x2 left, Double3x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double3x2 operator *(Double3x2 left, Double3x2 right) => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.*"); + /// This 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 Double3x2 operator *(Double3x2 left, Double3x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double3x2 operator -(Double3x2 left, Double3x2 right) => throw new InvalidExecutionContextException($"{typeof(Double3x2)}.-"); + /// This 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 Double3x2 operator -(Double3x2 left, Double3x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 72, Pack = 8)] - public partial struct Double3x3 + public unsafe partial struct Double3x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x3), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -1482,14 +1632,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double3x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1497,7 +1649,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1506,52 +1659,53 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M23"); + public ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M32"); + public ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.M33"); + public ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Creates a new value with the same value for all its components. @@ -1578,41 +1732,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double3x3 operator -(Double3x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.-"); + /// This 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 Double3x3 operator -(Double3x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double3x3 operator +(Double3x3 left, Double3x3 right) => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.+"); + /// This 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 Double3x3 operator +(Double3x3 left, Double3x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double3x3 operator /(Double3x3 left, Double3x3 right) => throw new InvalidExecutionContextException($"{typeof(Double3x3)}./"); + /// This 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 Double3x3 operator /(Double3x3 left, Double3x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double3x3 operator *(Double3x3 left, Double3x3 right) => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.*"); + /// This 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 Double3x3 operator *(Double3x3 left, Double3x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double3x3 operator -(Double3x3 left, Double3x3 right) => throw new InvalidExecutionContextException($"{typeof(Double3x3)}.-"); + /// This 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 Double3x3 operator -(Double3x3 left, Double3x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 96, Pack = 8)] - public partial struct Double3x4 + public unsafe partial struct Double3x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x4), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -1706,14 +1870,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double3x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1721,7 +1887,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1730,67 +1897,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M14"); + public ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M23"); + public ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref double M24 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M24"); + public ref double M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M32"); + public ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M33"); + public ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref double M34 => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.M34"); + public ref double M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Creates a new value with the same value for all its components. @@ -1820,41 +1988,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double3x4 operator -(Double3x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.-"); + /// This 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 Double3x4 operator -(Double3x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double3x4 operator +(Double3x4 left, Double3x4 right) => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.+"); + /// This 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 Double3x4 operator +(Double3x4 left, Double3x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double3x4 operator /(Double3x4 left, Double3x4 right) => throw new InvalidExecutionContextException($"{typeof(Double3x4)}./"); + /// This 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 Double3x4 operator /(Double3x4 left, Double3x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double3x4 operator *(Double3x4 left, Double3x4 right) => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.*"); + /// This 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 Double3x4 operator *(Double3x4 left, Double3x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double3x4 operator -(Double3x4 left, Double3x4 right) => throw new InvalidExecutionContextException($"{typeof(Double3x4)}.-"); + /// This 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 Double3x4 operator -(Double3x4 left, Double3x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] - public partial struct Double4x1 + public unsafe partial struct Double4x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x1), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -1886,14 +2064,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref double this[int row] => throw new InvalidExecutionContextException($"{typeof(Double4x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1901,7 +2081,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1910,27 +2091,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.M41"); + public ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Creates a new value with the same value for all its components. @@ -1952,47 +2134,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double4x1 operator -(Double4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.-"); + /// This 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 Double4x1 operator -(Double4x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double4x1 operator +(Double4x1 left, Double4x1 right) => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.+"); + /// This 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 Double4x1 operator +(Double4x1 left, Double4x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double4x1 operator /(Double4x1 left, Double4x1 right) => throw new InvalidExecutionContextException($"{typeof(Double4x1)}./"); + /// This 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 Double4x1 operator /(Double4x1 left, Double4x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double4x1 operator *(Double4x1 left, Double4x1 right) => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.*"); + /// This 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 Double4x1 operator *(Double4x1 left, Double4x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double4x1 operator -(Double4x1 left, Double4x1 right) => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.-"); + /// This 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 Double4x1 operator -(Double4x1 left, Double4x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double4(Double4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Double4x1)}.{typeof(Double4)}({typeof(Double4x1)})"); + public static implicit operator Double4(Double4x1 matrix) => *(Double4*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 8)] - public partial struct Double4x2 + public unsafe partial struct Double4x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x2), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -2063,14 +2255,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double4x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2078,7 +2272,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2087,47 +2282,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M32"); + public ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M41"); + public ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref double M42 => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.M42"); + public ref double M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Creates a new value with the same value for all its components. @@ -2153,41 +2349,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double4x2 operator -(Double4x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.-"); + /// This 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 Double4x2 operator -(Double4x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double4x2 operator +(Double4x2 left, Double4x2 right) => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.+"); + /// This 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 Double4x2 operator +(Double4x2 left, Double4x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double4x2 operator /(Double4x2 left, Double4x2 right) => throw new InvalidExecutionContextException($"{typeof(Double4x2)}./"); + /// This 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 Double4x2 operator /(Double4x2 left, Double4x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double4x2 operator *(Double4x2 left, Double4x2 right) => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.*"); + /// This 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 Double4x2 operator *(Double4x2 left, Double4x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double4x2 operator -(Double4x2 left, Double4x2 right) => throw new InvalidExecutionContextException($"{typeof(Double4x2)}.-"); + /// This 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 Double4x2 operator -(Double4x2 left, Double4x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 96, Pack = 8)] - public partial struct Double4x3 + public unsafe partial struct Double4x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x3), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -2282,14 +2488,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double4x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2297,7 +2505,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2306,67 +2515,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M23"); + public ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M32"); + public ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M33"); + public ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M41"); + public ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref double M42 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M42"); + public ref double M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref double M43 => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.M43"); + public ref double M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Creates a new value with the same value for all its components. @@ -2396,41 +2606,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double4x3 operator -(Double4x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.-"); + /// This 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 Double4x3 operator -(Double4x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double4x3 operator +(Double4x3 left, Double4x3 right) => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.+"); + /// This 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 Double4x3 operator +(Double4x3 left, Double4x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double4x3 operator /(Double4x3 left, Double4x3 right) => throw new InvalidExecutionContextException($"{typeof(Double4x3)}./"); + /// This 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 Double4x3 operator /(Double4x3 left, Double4x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double4x3 operator *(Double4x3 left, Double4x3 right) => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.*"); + /// This 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 Double4x3 operator *(Double4x3 left, Double4x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double4x3 operator -(Double4x3 left, Double4x3 right) => throw new InvalidExecutionContextException($"{typeof(Double4x3)}.-"); + /// This 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 Double4x3 operator -(Double4x3 left, Double4x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 128, Pack = 8)] - public partial struct Double4x4 + public unsafe partial struct Double4x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x4), sizeof(Double4)); + [FieldOffset(0)] private double m11; @@ -2549,14 +2769,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Double4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Double4x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Double4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2564,7 +2786,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Double4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2573,87 +2796,88 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Double4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref double M11 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M11"); + public ref double M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref double M12 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M12"); + public ref double M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref double M13 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M13"); + public ref double M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref double M14 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M14"); + public ref double M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref double M21 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M21"); + public ref double M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref double M22 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M22"); + public ref double M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref double M23 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M23"); + public ref double M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref double M24 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M24"); + public ref double M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref double M31 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M31"); + public ref double M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref double M32 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M32"); + public ref double M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref double M33 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M33"); + public ref double M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref double M34 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M34"); + public ref double M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref double M41 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M41"); + public ref double M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref double M42 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M42"); + public ref double M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref double M43 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M43"); + public ref double M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public ref double M44 => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.M44"); + public ref double M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m44, 1)); /// /// Creates a new value with the same value for all its components. @@ -2687,34 +2911,39 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Double4x4 operator -(Double4x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.-"); + /// This 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 Double4x4 operator -(Double4x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Double4x4 operator +(Double4x4 left, Double4x4 right) => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.+"); + /// This 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 Double4x4 operator +(Double4x4 left, Double4x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Double4x4 operator /(Double4x4 left, Double4x4 right) => throw new InvalidExecutionContextException($"{typeof(Double4x4)}./"); + /// This 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 Double4x4 operator /(Double4x4 left, Double4x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Double4x4 operator *(Double4x4 left, Double4x4 right) => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.*"); + /// This 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 Double4x4 operator *(Double4x4 left, Double4x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Double4x4 operator -(Double4x4 left, Double4x4 right) => throw new InvalidExecutionContextException($"{typeof(Double4x4)}.-"); + /// This 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 Double4x4 operator -(Double4x4 left, Double4x4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Float/Float2.cs b/src/ComputeSharp/Core/Primitives/Float/Float2.cs index 9ca796f5..50eaaa9d 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float2.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float2.cs @@ -1,6 +1,5 @@ using System.Diagnostics; using System.Numerics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -63,18 +62,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double2(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.({nameof(Double2)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double2(Float2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int2(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.({nameof(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 explicit operator Int2(Float2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt2(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.({nameof(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 explicit operator UInt2(Float2 xy) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs index 42a5e38b..c106cf64 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Float2 + public unsafe partial struct Float2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2), sizeof(Float2)); + [FieldOffset(0)] private float x; @@ -17,100 +27,114 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref float this[int i] => throw new InvalidExecutionContextException($"{typeof(Float2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref float this[int i] => ref *(float*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref float X => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(X)}"); + public ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref float Y => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(Y)}"); + public ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 XX => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 XX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 XY => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 XY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 YX => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 YY => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 YY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref float R => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(R)}"); + public ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref float G => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(G)}"); + public ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 RR => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 RR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 RG => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 RG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 GR => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 GG => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 GG => ref *(Float2*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Float2 operator -(Float2 xy) => throw new InvalidExecutionContextException($"{typeof(Float2)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator -(Float2 xy) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float2 operator +(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}.+"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator +(Float2 left, Float2 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Float2 operator /(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}./"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator /(Float2 left, Float2 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Float2 operator *(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}.*"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator *(Float2 left, Float2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float2 operator -(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator -(Float2 left, Float2 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Float/Float3.cs b/src/ComputeSharp/Core/Primitives/Float/Float3.cs index 81497f02..5ecfbf25 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float3.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float3.cs @@ -1,6 +1,5 @@ using System.Diagnostics; using System.Numerics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -94,18 +93,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double3(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.({nameof(Double3)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double3(Float3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int3(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.({nameof(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 explicit operator Int3(Float3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt3(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.({nameof(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 explicit operator UInt3(Float3 xyz) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs index 254b1a85..eaf7c0c8 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Float3 + public unsafe partial struct Float3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3), sizeof(Float3)); + [FieldOffset(0)] private float x; @@ -20,430 +30,508 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref float this[int i] => throw new InvalidExecutionContextException($"{typeof(Float3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref float this[int i] => ref *(float*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref float X => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(X)}"); + public ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref float Y => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(Y)}"); + public ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref float Z => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(Z)}"); + public ref float Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 XX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 XX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 XY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 XY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 XZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 XZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 YX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 YY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 YY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 YZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 YZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 ZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 ZX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 ZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 ZY => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 ZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 ZZ => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XXX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XXY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XXZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XYX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XYY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XYY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XYZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XZX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YXX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YXY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YXY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YXZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YYX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YYY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YYZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YYZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZXX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZXX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZXY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZXZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZYX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZYY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZZZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref float R => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(R)}"); + public ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref float G => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(G)}"); + public ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref float B => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(B)}"); + public ref float B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 RR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 RR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 RG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 RG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 RB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 RB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 GR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 GG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 GG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 GB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 GB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 BR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 BR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 BG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 BG => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 BB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 BB => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RRR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RRG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RRB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RRB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RGR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RGG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RGG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RGB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RBR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RBR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RBG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RBB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RBB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GRR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GRG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GRG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GRB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GRB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GGR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GGG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GGB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GGB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GBR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GBG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GBB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GBB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BRR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BRR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BRG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BRB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BRB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BGR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BGG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BGB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BBR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BBG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BBB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BBB => ref *(Float3*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Float3 operator -(Float3 xyz) => throw new InvalidExecutionContextException($"{typeof(Float3)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator -(Float3 xyz) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float3 operator +(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}.+"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator +(Float3 left, Float3 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Float3 operator /(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}./"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator /(Float3 left, Float3 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Float3 operator *(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}.*"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator *(Float3 left, Float3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float3 operator -(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator -(Float3 left, Float3 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Float/Float4.cs b/src/ComputeSharp/Core/Primitives/Float/Float4.cs index 0571ccd0..44916723 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float4.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float4.cs @@ -1,6 +1,5 @@ using System.Diagnostics; using System.Numerics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -144,18 +143,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double4(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.({nameof(Double4)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double4(Float4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int4(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.({nameof(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 explicit operator Int4(Float4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt4(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.({nameof(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 explicit operator UInt4(Float4 xyzw) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs index 19c0bc09..4566e57f 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Float4 + public unsafe partial struct Float4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4), sizeof(Float4)); + [FieldOffset(0)] private float x; @@ -23,3440 +33,4118 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref float this[int i] => throw new InvalidExecutionContextException($"{typeof(Float4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref float this[int i] => ref *(float*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref float X => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(X)}"); + public ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref float Y => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(Y)}"); + public ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref float Z => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(Z)}"); + public ref float Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the W component. /// - public ref float W => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(W)}"); + public ref float W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 XX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 XX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 XY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 XY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 XZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 XZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 XW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 XW => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 YX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 YX => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 YY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 YY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 YZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 YZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 YW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 YW => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 ZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 ZX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 ZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 ZY => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 ZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 ZZ => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 ZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 ZW => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 WX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 WX => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 WY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 WY => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 WZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 WZ => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 WW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 WW => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XXW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XYY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XYZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XYW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XZX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XZZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XZW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XWX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XWY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 XWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 XWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 XWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 XWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YXX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YXY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YXZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YXW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YYW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YZZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YZW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YWX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YWY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 YWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 YWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 YWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 YWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZXX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZXY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZXZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZXW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZYY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZYZ => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZYW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZZX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZZW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZWX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ZWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ZWY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ZWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ZWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WXX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 WXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 WXY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 WXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 WXZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WXW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 WYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 WYX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WYY => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 WYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 WYZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WYW => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 WZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 WZX => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 WZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 WZY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WZZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WZW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WWX => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WWY => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WWZ => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 WWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 WWW => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XXWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYZZ => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 XYZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 XYZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYWY => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 XYWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 XYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XYWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZYZ => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 XZYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 XZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZWX => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 XZWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 XZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XZWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWYY => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 XWYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 XWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWZX => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 XWZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 XWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 XWWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(XWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 XWWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXZZ => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 YXZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 YXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXWY => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 YXWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 YXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YXWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YYWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZXZ => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 YZXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 YZXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZZW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 YZWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 YZWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YZWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWXY => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 YWXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 YWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWYW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 YWZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 YWZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 YWWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(YWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 YWWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXYZ => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ZXYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ZXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXWX => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ZXWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ZXWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZXWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYXZ => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ZYXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ZYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYZW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ZYWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ZYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZYWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZZWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWXX => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ZWXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ZWXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWXW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ZWYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ZWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ZWWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ZWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ZWWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXYY => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 WXYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 WXYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXZX => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 WXZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 WXZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WXWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WXWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYXY => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 WYXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 WYXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYYW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 WYZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 WYZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WYWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WYWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZXX => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 WZXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 WZXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZXW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 WZYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 WZYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WZWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WZWW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWXX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWXX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWXY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWXY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWXZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWXZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWXW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWXW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWYX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWYX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWYY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWYY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWYZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWYZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWYW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWYW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWZX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWZX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWZY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWZY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWZZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWZZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWZW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWZW => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWWX => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWWX => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWWY => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWWY => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWWZ => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWWZ => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 WWWW => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(WWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 WWWW => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref float R => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(R)}"); + public ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref float G => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(G)}"); + public ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref float B => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(B)}"); + public ref float B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the A component. /// - public ref float A => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(A)}"); + public ref float A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 RR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 RR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 RG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 RG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 RB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 RB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 RA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 RA => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 GR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 GR => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 GG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 GG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 GB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 GB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 GA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 GA => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 BR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 BR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 BG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 BG => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 BB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 BB => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 BA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 BA => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 AR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 AR => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 AG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 AG => ref *(Float2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Float2 AB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float2 AB => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Float2 AA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float2 AA => ref *(Float2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RRB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RRA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RGG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RGB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RGA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RBR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RBB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RBA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RAR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RAG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 RAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 RAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 RAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 RAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GRR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GRG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GRB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GRA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GGA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GBB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GBA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GAR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GAG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 GAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 GAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 GAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 GAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BRR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BRG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BRB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BRA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BGG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BGB => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BGA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BBR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BBG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BBB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BBA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BAR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 BAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 BAG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 BAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 BAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ARR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ARR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ARG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ARG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ARB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ARB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ARA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ARA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 AGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 AGR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 AGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 AGG => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 AGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 AGB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 AGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 AGA => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ABR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ABR => ref *(Float3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Float3 ABG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float3 ABG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ABB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ABB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 ABA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 ABA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 AAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 AAR => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 AAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 AAG => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 AAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 AAB => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Float3 AAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float3 AAA => ref *(Float3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RRAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RRAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGBB => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 RGBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 RGBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGAG => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 RGAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 RGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RGAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBGB => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 RBGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 RBGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBAR => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 RBAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 RBAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RBAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RBAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RARR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RARR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RARG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RARG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RARB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RARA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RARA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RAGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RAGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RAGG => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 RAGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 RAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RAGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RAGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RABR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RABR => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 RABG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 RABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RABB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RABA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RAAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RAAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RAAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 RAAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(RAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 RAAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRBB => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 GRBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 GRBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRAG => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 GRAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 GRAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GRAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GRAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GGAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBRB => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 GBRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 GBRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBBA => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 GBAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 GBAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GBAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GBAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GARR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GARR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GARG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GARG => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 GARB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 GARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GARA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GARA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAGA => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 GABR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 GABR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GABG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GABB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GABA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 GAAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(GAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 GAAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRGB => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 BRGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 BRGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRAR => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 BRAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 BRAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BRAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BRAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGRB => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 BGRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 BGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGBA => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 BGAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 BGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BGAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BBAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BBAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BARR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BARR => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 BARG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 BARG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BARB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BARA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BARA => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 BAGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 BAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BAGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BAGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BAGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BAGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BAGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BABR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BABR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BABG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BABB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BABA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BAAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BAAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BAAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 BAAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(BAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 BAAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARGG => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ARGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ARGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARBR => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ARBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ARBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ARAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ARAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ARAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGRR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGRG => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 AGRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 AGRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGRA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGGA => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 AGBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 AGBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AGAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AGAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABRR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABRR => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ABRG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ABRG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABRB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABRB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABRA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABRA => ref *(Float4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Float4 ABGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Float4 ABGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABBR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABBR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABBG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABBG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABBB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABBB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABBA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABBA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 ABAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(ABAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 ABAA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AARR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AARR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AARG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AARG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AARB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AARB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AARA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AARA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAGR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAGR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAGG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAGG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAGB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAGB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAGA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAGA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AABR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AABR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AABG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AABG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AABB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AABB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AABA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AABA => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAAR => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAAR => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAAG => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAAG => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAAB => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAAB => ref *(Float4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Float4 AAAA => throw new InvalidExecutionContextException($"{typeof(Float4)}.{nameof(AAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Float4 AAAA => ref *(Float4*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Float4 operator -(Float4 xyzw) => throw new InvalidExecutionContextException($"{typeof(Float4)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator -(Float4 xyzw) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float4 operator +(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{typeof(Float4)}.+"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator +(Float4 left, Float4 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Float4 operator /(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{typeof(Float4)}./"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator /(Float4 left, Float4 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Float4 operator *(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{typeof(Float4)}.*"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator *(Float4 left, Float4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float4 operator -(Float4 left, Float4 right) => throw new InvalidExecutionContextException($"{typeof(Float4)}.-"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator -(Float4 left, Float4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs index a5e7b2ca..ffc464ce 100644 --- a/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] - public partial struct Float1x1 + public unsafe partial struct Float1x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x1), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -23,14 +33,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref float this[int row] => throw new InvalidExecutionContextException($"{typeof(Float1x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -38,7 +50,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -47,12 +60,13 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x1)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Creates a new value with the same value for all its components. @@ -71,41 +85,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float1x1 operator -(Float1x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Float1x1)}.-"); + /// This 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 Float1x1 operator -(Float1x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float1x1 operator +(Float1x1 left, Float1x1 right) => throw new InvalidExecutionContextException($"{typeof(Float1x1)}.+"); + /// This 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 Float1x1 operator +(Float1x1 left, Float1x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float1x1 operator /(Float1x1 left, Float1x1 right) => throw new InvalidExecutionContextException($"{typeof(Float1x1)}./"); + /// This 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 Float1x1 operator /(Float1x1 left, Float1x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float1x1 operator *(Float1x1 left, Float1x1 right) => throw new InvalidExecutionContextException($"{typeof(Float1x1)}.*"); + /// This 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 Float1x1 operator *(Float1x1 left, Float1x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float1x1 operator -(Float1x1 left, Float1x1 right) => throw new InvalidExecutionContextException($"{typeof(Float1x1)}.-"); + /// This 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 Float1x1 operator -(Float1x1 left, Float1x1 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Float1x2 + public unsafe partial struct Float1x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x2), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -127,14 +151,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float1x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -142,7 +168,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -151,17 +178,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Creates a new value with the same value for all its components. @@ -181,47 +209,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float1x2 operator -(Float1x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.-"); + /// This 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 Float1x2 operator -(Float1x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float1x2 operator +(Float1x2 left, Float1x2 right) => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.+"); + /// This 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 Float1x2 operator +(Float1x2 left, Float1x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float1x2 operator /(Float1x2 left, Float1x2 right) => throw new InvalidExecutionContextException($"{typeof(Float1x2)}./"); + /// This 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 Float1x2 operator /(Float1x2 left, Float1x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float1x2 operator *(Float1x2 left, Float1x2 right) => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.*"); + /// This 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 Float1x2 operator *(Float1x2 left, Float1x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float1x2 operator -(Float1x2 left, Float1x2 right) => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.-"); + /// This 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 Float1x2 operator -(Float1x2 left, Float1x2 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float1x2(Float2 vector) => throw new InvalidExecutionContextException($"{typeof(Float1x2)}.{typeof(Float1x2)}({typeof(Float2)})"); + public static implicit operator Float1x2(Float2 vector) => *(Float1x2*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Float1x3 + public unsafe partial struct Float1x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x3), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -248,14 +286,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float1x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -263,7 +303,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -272,22 +313,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Creates a new value with the same value for all its components. @@ -308,47 +350,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float1x3 operator -(Float1x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.-"); + /// This 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 Float1x3 operator -(Float1x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float1x3 operator +(Float1x3 left, Float1x3 right) => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.+"); + /// This 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 Float1x3 operator +(Float1x3 left, Float1x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float1x3 operator /(Float1x3 left, Float1x3 right) => throw new InvalidExecutionContextException($"{typeof(Float1x3)}./"); + /// This 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 Float1x3 operator /(Float1x3 left, Float1x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float1x3 operator *(Float1x3 left, Float1x3 right) => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.*"); + /// This 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 Float1x3 operator *(Float1x3 left, Float1x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float1x3 operator -(Float1x3 left, Float1x3 right) => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.-"); + /// This 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 Float1x3 operator -(Float1x3 left, Float1x3 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float1x3(Float3 vector) => throw new InvalidExecutionContextException($"{typeof(Float1x3)}.{typeof(Float1x3)}({typeof(Float3)})"); + public static implicit operator Float1x3(Float3 vector) => *(Float1x3*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Float1x4 + public unsafe partial struct Float1x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x4), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -380,14 +432,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float1x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -395,7 +449,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -404,27 +459,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.M14"); + public ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Creates a new value with the same value for all its components. @@ -446,47 +502,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float1x4 operator -(Float1x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.-"); + /// This 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 Float1x4 operator -(Float1x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float1x4 operator +(Float1x4 left, Float1x4 right) => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.+"); + /// This 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 Float1x4 operator +(Float1x4 left, Float1x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float1x4 operator /(Float1x4 left, Float1x4 right) => throw new InvalidExecutionContextException($"{typeof(Float1x4)}./"); + /// This 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 Float1x4 operator /(Float1x4 left, Float1x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float1x4 operator *(Float1x4 left, Float1x4 right) => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.*"); + /// This 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 Float1x4 operator *(Float1x4 left, Float1x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float1x4 operator -(Float1x4 left, Float1x4 right) => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.-"); + /// This 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 Float1x4 operator -(Float1x4 left, Float1x4 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float1x4(Float4 vector) => throw new InvalidExecutionContextException($"{typeof(Float1x4)}.{typeof(Float1x4)}({typeof(Float4)})"); + public static implicit operator Float1x4(Float4 vector) => *(Float1x4*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Float2x1 + public unsafe partial struct Float2x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x1), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -508,14 +574,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref float this[int row] => throw new InvalidExecutionContextException($"{typeof(Float2x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -523,7 +591,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -532,17 +601,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Creates a new value with the same value for all its components. @@ -562,47 +632,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float2x1 operator -(Float2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.-"); + /// This 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 Float2x1 operator -(Float2x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float2x1 operator +(Float2x1 left, Float2x1 right) => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.+"); + /// This 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 Float2x1 operator +(Float2x1 left, Float2x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float2x1 operator /(Float2x1 left, Float2x1 right) => throw new InvalidExecutionContextException($"{typeof(Float2x1)}./"); + /// This 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 Float2x1 operator /(Float2x1 left, Float2x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float2x1 operator *(Float2x1 left, Float2x1 right) => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.*"); + /// This 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 Float2x1 operator *(Float2x1 left, Float2x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float2x1 operator -(Float2x1 left, Float2x1 right) => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.-"); + /// This 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 Float2x1 operator -(Float2x1 left, Float2x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float2(Float2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Float2x1)}.{typeof(Float2)}({typeof(Float2x1)})"); + public static implicit operator Float2(Float2x1 matrix) => *(Float2*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Float2x2 + public unsafe partial struct Float2x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x2), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -647,14 +727,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float2x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -662,7 +744,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -671,27 +754,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Creates a new value with the same value for all its components. @@ -713,41 +797,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float2x2 operator -(Float2x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.-"); + /// This 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 Float2x2 operator -(Float2x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float2x2 operator +(Float2x2 left, Float2x2 right) => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.+"); + /// This 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 Float2x2 operator +(Float2x2 left, Float2x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float2x2 operator /(Float2x2 left, Float2x2 right) => throw new InvalidExecutionContextException($"{typeof(Float2x2)}./"); + /// This 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 Float2x2 operator /(Float2x2 left, Float2x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float2x2 operator *(Float2x2 left, Float2x2 right) => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.*"); + /// This 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 Float2x2 operator *(Float2x2 left, Float2x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float2x2 operator -(Float2x2 left, Float2x2 right) => throw new InvalidExecutionContextException($"{typeof(Float2x2)}.-"); + /// This 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 Float2x2 operator -(Float2x2 left, Float2x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct Float2x3 + public unsafe partial struct Float2x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x3), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -804,14 +898,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float2x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -819,7 +915,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -828,37 +925,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.M23"); + public ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Creates a new value with the same value for all its components. @@ -882,41 +980,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float2x3 operator -(Float2x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.-"); + /// This 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 Float2x3 operator -(Float2x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float2x3 operator +(Float2x3 left, Float2x3 right) => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.+"); + /// This 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 Float2x3 operator +(Float2x3 left, Float2x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float2x3 operator /(Float2x3 left, Float2x3 right) => throw new InvalidExecutionContextException($"{typeof(Float2x3)}./"); + /// This 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 Float2x3 operator /(Float2x3 left, Float2x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float2x3 operator *(Float2x3 left, Float2x3 right) => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.*"); + /// This 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 Float2x3 operator *(Float2x3 left, Float2x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float2x3 operator -(Float2x3 left, Float2x3 right) => throw new InvalidExecutionContextException($"{typeof(Float2x3)}.-"); + /// This 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 Float2x3 operator -(Float2x3 left, Float2x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct Float2x4 + public unsafe partial struct Float2x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x4), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -985,14 +1093,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float2x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1000,7 +1110,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1009,47 +1120,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M14"); + public ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M23"); + public ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref float M24 => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.M24"); + public ref float M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Creates a new value with the same value for all its components. @@ -1075,41 +1187,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float2x4 operator -(Float2x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.-"); + /// This 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 Float2x4 operator -(Float2x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float2x4 operator +(Float2x4 left, Float2x4 right) => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.+"); + /// This 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 Float2x4 operator +(Float2x4 left, Float2x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float2x4 operator /(Float2x4 left, Float2x4 right) => throw new InvalidExecutionContextException($"{typeof(Float2x4)}./"); + /// This 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 Float2x4 operator /(Float2x4 left, Float2x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float2x4 operator *(Float2x4 left, Float2x4 right) => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.*"); + /// This 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 Float2x4 operator *(Float2x4 left, Float2x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float2x4 operator -(Float2x4 left, Float2x4 right) => throw new InvalidExecutionContextException($"{typeof(Float2x4)}.-"); + /// This 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 Float2x4 operator -(Float2x4 left, Float2x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Float3x1 + public unsafe partial struct Float3x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x1), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -1136,14 +1258,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref float this[int row] => throw new InvalidExecutionContextException($"{typeof(Float3x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1151,7 +1275,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1160,22 +1285,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Creates a new value with the same value for all its components. @@ -1196,47 +1322,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float3x1 operator -(Float3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.-"); + /// This 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 Float3x1 operator -(Float3x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float3x1 operator +(Float3x1 left, Float3x1 right) => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.+"); + /// This 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 Float3x1 operator +(Float3x1 left, Float3x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float3x1 operator /(Float3x1 left, Float3x1 right) => throw new InvalidExecutionContextException($"{typeof(Float3x1)}./"); + /// This 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 Float3x1 operator /(Float3x1 left, Float3x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float3x1 operator *(Float3x1 left, Float3x1 right) => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.*"); + /// This 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 Float3x1 operator *(Float3x1 left, Float3x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float3x1 operator -(Float3x1 left, Float3x1 right) => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.-"); + /// This 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 Float3x1 operator -(Float3x1 left, Float3x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float3(Float3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Float3x1)}.{typeof(Float3)}({typeof(Float3x1)})"); + public static implicit operator Float3(Float3x1 matrix) => *(Float3*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct Float3x2 + public unsafe partial struct Float3x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x2), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -1294,14 +1430,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float3x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1309,7 +1447,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1318,37 +1457,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.M32"); + public ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Creates a new value with the same value for all its components. @@ -1372,41 +1512,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float3x2 operator -(Float3x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.-"); + /// This 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 Float3x2 operator -(Float3x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float3x2 operator +(Float3x2 left, Float3x2 right) => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.+"); + /// This 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 Float3x2 operator +(Float3x2 left, Float3x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float3x2 operator /(Float3x2 left, Float3x2 right) => throw new InvalidExecutionContextException($"{typeof(Float3x2)}./"); + /// This 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 Float3x2 operator /(Float3x2 left, Float3x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float3x2 operator *(Float3x2 left, Float3x2 right) => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.*"); + /// This 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 Float3x2 operator *(Float3x2 left, Float3x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float3x2 operator -(Float3x2 left, Float3x2 right) => throw new InvalidExecutionContextException($"{typeof(Float3x2)}.-"); + /// This 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 Float3x2 operator -(Float3x2 left, Float3x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)] - public partial struct Float3x3 + public unsafe partial struct Float3x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x3), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -1482,14 +1632,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float3x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1497,7 +1649,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1506,52 +1659,53 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M23"); + public ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M32"); + public ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.M33"); + public ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Creates a new value with the same value for all its components. @@ -1578,41 +1732,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float3x3 operator -(Float3x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.-"); + /// This 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 Float3x3 operator -(Float3x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float3x3 operator +(Float3x3 left, Float3x3 right) => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.+"); + /// This 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 Float3x3 operator +(Float3x3 left, Float3x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float3x3 operator /(Float3x3 left, Float3x3 right) => throw new InvalidExecutionContextException($"{typeof(Float3x3)}./"); + /// This 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 Float3x3 operator /(Float3x3 left, Float3x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float3x3 operator *(Float3x3 left, Float3x3 right) => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.*"); + /// This 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 Float3x3 operator *(Float3x3 left, Float3x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float3x3 operator -(Float3x3 left, Float3x3 right) => throw new InvalidExecutionContextException($"{typeof(Float3x3)}.-"); + /// This 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 Float3x3 operator -(Float3x3 left, Float3x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct Float3x4 + public unsafe partial struct Float3x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x4), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -1706,14 +1870,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float3x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1721,7 +1887,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1730,67 +1897,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M14"); + public ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M23"); + public ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref float M24 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M24"); + public ref float M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M32"); + public ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M33"); + public ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref float M34 => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.M34"); + public ref float M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Creates a new value with the same value for all its components. @@ -1820,41 +1988,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float3x4 operator -(Float3x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.-"); + /// This 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 Float3x4 operator -(Float3x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float3x4 operator +(Float3x4 left, Float3x4 right) => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.+"); + /// This 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 Float3x4 operator +(Float3x4 left, Float3x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float3x4 operator /(Float3x4 left, Float3x4 right) => throw new InvalidExecutionContextException($"{typeof(Float3x4)}./"); + /// This 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 Float3x4 operator /(Float3x4 left, Float3x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float3x4 operator *(Float3x4 left, Float3x4 right) => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.*"); + /// This 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 Float3x4 operator *(Float3x4 left, Float3x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float3x4 operator -(Float3x4 left, Float3x4 right) => throw new InvalidExecutionContextException($"{typeof(Float3x4)}.-"); + /// This 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 Float3x4 operator -(Float3x4 left, Float3x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Float4x1 + public unsafe partial struct Float4x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x1), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -1886,14 +2064,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref float this[int row] => throw new InvalidExecutionContextException($"{typeof(Float4x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1901,7 +2081,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1910,27 +2091,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.M41"); + public ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Creates a new value with the same value for all its components. @@ -1952,47 +2134,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float4x1 operator -(Float4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.-"); + /// This 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 Float4x1 operator -(Float4x1 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float4x1 operator +(Float4x1 left, Float4x1 right) => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.+"); + /// This 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 Float4x1 operator +(Float4x1 left, Float4x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float4x1 operator /(Float4x1 left, Float4x1 right) => throw new InvalidExecutionContextException($"{typeof(Float4x1)}./"); + /// This 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 Float4x1 operator /(Float4x1 left, Float4x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float4x1 operator *(Float4x1 left, Float4x1 right) => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.*"); + /// This 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 Float4x1 operator *(Float4x1 left, Float4x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float4x1 operator -(Float4x1 left, Float4x1 right) => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.-"); + /// This 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 Float4x1 operator -(Float4x1 left, Float4x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float4(Float4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Float4x1)}.{typeof(Float4)}({typeof(Float4x1)})"); + public static implicit operator Float4(Float4x1 matrix) => *(Float4*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct Float4x2 + public unsafe partial struct Float4x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x2), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -2063,14 +2255,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float4x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2078,7 +2272,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2087,47 +2282,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M32"); + public ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M41"); + public ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref float M42 => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.M42"); + public ref float M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Creates a new value with the same value for all its components. @@ -2153,41 +2349,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float4x2 operator -(Float4x2 matrix) => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.-"); + /// This 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 Float4x2 operator -(Float4x2 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float4x2 operator +(Float4x2 left, Float4x2 right) => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.+"); + /// This 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 Float4x2 operator +(Float4x2 left, Float4x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float4x2 operator /(Float4x2 left, Float4x2 right) => throw new InvalidExecutionContextException($"{typeof(Float4x2)}./"); + /// This 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 Float4x2 operator /(Float4x2 left, Float4x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float4x2 operator *(Float4x2 left, Float4x2 right) => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.*"); + /// This 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 Float4x2 operator *(Float4x2 left, Float4x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float4x2 operator -(Float4x2 left, Float4x2 right) => throw new InvalidExecutionContextException($"{typeof(Float4x2)}.-"); + /// This 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 Float4x2 operator -(Float4x2 left, Float4x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct Float4x3 + public unsafe partial struct Float4x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x3), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -2282,14 +2488,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float4x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2297,7 +2505,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2306,67 +2515,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M23"); + public ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M32"); + public ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M33"); + public ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M41"); + public ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref float M42 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M42"); + public ref float M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref float M43 => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.M43"); + public ref float M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Creates a new value with the same value for all its components. @@ -2396,41 +2606,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float4x3 operator -(Float4x3 matrix) => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.-"); + /// This 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 Float4x3 operator -(Float4x3 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float4x3 operator +(Float4x3 left, Float4x3 right) => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.+"); + /// This 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 Float4x3 operator +(Float4x3 left, Float4x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float4x3 operator /(Float4x3 left, Float4x3 right) => throw new InvalidExecutionContextException($"{typeof(Float4x3)}./"); + /// This 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 Float4x3 operator /(Float4x3 left, Float4x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float4x3 operator *(Float4x3 left, Float4x3 right) => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.*"); + /// This 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 Float4x3 operator *(Float4x3 left, Float4x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float4x3 operator -(Float4x3 left, Float4x3 right) => throw new InvalidExecutionContextException($"{typeof(Float4x3)}.-"); + /// This 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 Float4x3 operator -(Float4x3 left, Float4x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)] - public partial struct Float4x4 + public unsafe partial struct Float4x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x4), sizeof(Float4)); + [FieldOffset(0)] private float m11; @@ -2549,14 +2769,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Float4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Float4x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Float4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2564,7 +2786,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Float4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2573,87 +2796,88 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Float4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref float M11 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M11"); + public ref float M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref float M12 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M12"); + public ref float M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref float M13 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M13"); + public ref float M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref float M14 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M14"); + public ref float M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref float M21 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M21"); + public ref float M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref float M22 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M22"); + public ref float M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref float M23 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M23"); + public ref float M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref float M24 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M24"); + public ref float M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref float M31 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M31"); + public ref float M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref float M32 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M32"); + public ref float M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref float M33 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M33"); + public ref float M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref float M34 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M34"); + public ref float M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref float M41 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M41"); + public ref float M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref float M42 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M42"); + public ref float M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref float M43 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M43"); + public ref float M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public ref float M44 => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.M44"); + public ref float M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m44, 1)); /// /// Creates a new value with the same value for all its components. @@ -2687,34 +2911,39 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Float4x4 operator -(Float4x4 matrix) => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.-"); + /// This 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 Float4x4 operator -(Float4x4 matrix) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Float4x4 operator +(Float4x4 left, Float4x4 right) => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.+"); + /// This 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 Float4x4 operator +(Float4x4 left, Float4x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Float4x4 operator /(Float4x4 left, Float4x4 right) => throw new InvalidExecutionContextException($"{typeof(Float4x4)}./"); + /// This 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 Float4x4 operator /(Float4x4 left, Float4x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Float4x4 operator *(Float4x4 left, Float4x4 right) => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.*"); + /// This 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 Float4x4 operator *(Float4x4 left, Float4x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Float4x4 operator -(Float4x4 left, Float4x4 right) => throw new InvalidExecutionContextException($"{typeof(Float4x4)}.-"); + /// This 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 Float4x4 operator -(Float4x4 left, Float4x4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Int/Int2.cs b/src/ComputeSharp/Core/Primitives/Int/Int2.cs index 8cc711ff..ef13a36f 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int2.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int2.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -50,18 +49,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(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 explicit operator UInt2(Int2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(Float2)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Float2(Int2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(Double2)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double2(Int2 xy) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs index c7ca3a70..5deb4e01 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Int2 + public unsafe partial struct Int2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2), sizeof(Int2)); + [FieldOffset(0)] private int x; @@ -17,100 +27,114 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref int this[int i] => throw new InvalidExecutionContextException($"{typeof(Int2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref int this[int i] => ref *(int*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref int X => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(X)}"); + public ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref int Y => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(Y)}"); + public ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 XX => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 XX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 XY => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 XY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 YX => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 YY => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 YY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref int R => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(R)}"); + public ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref int G => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(G)}"); + public ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 RR => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 RR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 RG => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 RG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 GR => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 GG => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 GG => ref *(Int2*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Int2 operator -(Int2 xy) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int2 operator +(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Int2 operator /(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Int2 operator *(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int2 operator -(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Int/Int3.cs b/src/ComputeSharp/Core/Primitives/Int/Int3.cs index 1a7a30b6..8690c048 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int3.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int3.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -81,18 +80,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt3(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.({nameof(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 explicit operator UInt3(Int3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float3(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.({nameof(Float3)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Float3(Int3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double3(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.({nameof(Double3)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double3(Int3 xyz) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs index dc26ca54..82db52f5 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Int3 + public unsafe partial struct Int3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3), sizeof(Int3)); + [FieldOffset(0)] private int x; @@ -20,430 +30,508 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref int this[int i] => throw new InvalidExecutionContextException($"{typeof(Int3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref int this[int i] => ref *(int*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref int X => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(X)}"); + public ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref int Y => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(Y)}"); + public ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref int Z => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(Z)}"); + public ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 XX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 XX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 XY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 XY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 XZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 XZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 YX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 YY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 YY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 YZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 YZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 ZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 ZX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 ZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 ZY => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 ZZ => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XXX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XXY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XYX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XYY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XYY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XZX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YXX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YXY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YXY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YYX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YYY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YYZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZXX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZXZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZZZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref int R => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(R)}"); + public ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref int G => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(G)}"); + public ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref int B => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(B)}"); + public ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 RR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 RR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 RG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 RG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 RB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 RB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 GR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 GG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 GG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 GB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 GB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 BR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 BR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 BG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 BG => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 BB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 BB => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RRR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RRG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RRB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RRB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RGR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RGG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RGG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RGB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RBR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RBR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RBG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RBB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RBB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GRR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GRG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GRG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GRB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GRB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GGR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GGG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GGB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GGB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GBR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GBG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GBB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GBB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BRR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BRR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BRG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BRB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BRB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BGR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BGG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BGB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BBR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BBG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BBB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BBB => ref *(Int3*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Int3 operator -(Int3 xyz) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int3 operator +(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Int3 operator /(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Int3 operator *(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int3 operator -(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Int/Int4.cs b/src/ComputeSharp/Core/Primitives/Int/Int4.cs index f7dd8298..2b87778e 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int4.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int4.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -131,18 +130,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator UInt4(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.({nameof(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 explicit operator UInt4(Int4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float4(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.({nameof(Float4)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Float4(Int4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double4(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.({nameof(Double4)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double4(Int4 xyzw) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs index 7093a5aa..98b9d1d1 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Int4 + public unsafe partial struct Int4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4), sizeof(Int4)); + [FieldOffset(0)] private int x; @@ -23,3440 +33,4118 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref int this[int i] => throw new InvalidExecutionContextException($"{typeof(Int4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref int this[int i] => ref *(int*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref int X => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(X)}"); + public ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref int Y => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(Y)}"); + public ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref int Z => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(Z)}"); + public ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the W component. /// - public ref int W => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(W)}"); + public ref int W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 XX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 XX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 XY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 XY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 XZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 XZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 XW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 XW => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 YX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 YX => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 YY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 YY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 YZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 YZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 YW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 YW => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 ZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 ZX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 ZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 ZY => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 ZZ => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 ZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 ZW => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 WX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 WX => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 WY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 WY => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 WZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 WZ => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 WW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 WW => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XXW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XYY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XYZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XYW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XZX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XZZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XZW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XWX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XWY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 XWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 XWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 XWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 XWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YXX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YXY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YXZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YXW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YYW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YZZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YZW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YWX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YWY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 YWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 YWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 YWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 YWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZXX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZXY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZXZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZXW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZYY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZYZ => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZYW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZZX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZZW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZWX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ZWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ZWY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ZWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ZWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WXX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 WXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 WXY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 WXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 WXZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WXW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 WYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 WYX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WYY => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 WYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 WYZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WYW => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 WZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 WZX => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 WZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 WZY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WZZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WZW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WWX => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WWY => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WWZ => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 WWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 WWW => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XXWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYZZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 XYZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 XYZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYWY => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 XYWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 XYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XYWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZYZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 XZYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 XZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZWX => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 XZWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 XZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XZWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWYY => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 XWYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 XWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWZX => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 XWZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 XWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 XWWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(XWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 XWWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXZZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 YXZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 YXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXWY => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 YXWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 YXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YXWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YYWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZXZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 YZXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 YZXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZZW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 YZWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 YZWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YZWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWXY => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 YWXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 YWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWYW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 YWZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 YWZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 YWWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(YWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 YWWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXYZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ZXYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ZXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXWX => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ZXWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ZXWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZXWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYXZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ZYXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ZYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYZW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ZYWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ZYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZYWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZZWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWXX => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ZWXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ZWXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWXW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ZWYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ZWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ZWWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ZWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ZWWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXYY => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 WXYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 WXYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXZX => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 WXZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 WXZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WXWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WXWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYXY => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 WYXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 WYXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYYW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 WYZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 WYZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WYWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WYWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZXX => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 WZXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 WZXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZXW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 WZYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 WZYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WZWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WZWW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWXX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWXX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWXY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWXY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWXZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWXZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWXW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWXW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWYX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWYX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWYY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWYY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWYZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWYZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWYW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWYW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWZX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWZX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWZY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWZY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWZZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWZZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWZW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWZW => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWWX => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWWX => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWWY => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWWY => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWWZ => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWWZ => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 WWWW => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(WWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 WWWW => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref int R => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(R)}"); + public ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref int G => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(G)}"); + public ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref int B => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(B)}"); + public ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the A component. /// - public ref int A => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(A)}"); + public ref int A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 RR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 RR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 RG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 RG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 RB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 RB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 RA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 RA => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 GR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 GR => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 GG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 GG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 GB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 GB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 GA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 GA => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 BR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 BR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 BG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 BG => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 BB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 BB => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 BA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 BA => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 AR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 AR => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 AG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 AG => ref *(Int2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref Int2 AB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int2 AB => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly Int2 AA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int2 AA => ref *(Int2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RRB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RRA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RGG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RGB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RGA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RBR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RBB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RBA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RAR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RAG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 RAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 RAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 RAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 RAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GRR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GRG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GRB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GRA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GGA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GBB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GBA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GAR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GAG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 GAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 GAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 GAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 GAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BRR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BRG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BRB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BRA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BGG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BGB => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BGA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BBR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BBG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BBB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BBA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BAR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 BAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 BAG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 BAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 BAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ARR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ARR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ARG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ARG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ARB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ARB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ARA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ARA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 AGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 AGR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 AGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 AGG => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 AGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 AGB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 AGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 AGA => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ABR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ABR => ref *(Int3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref Int3 ABG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int3 ABG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ABB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ABB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 ABA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 ABA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 AAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 AAR => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 AAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 AAG => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 AAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 AAB => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly Int3 AAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int3 AAA => ref *(Int3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RRAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RRAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGBB => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 RGBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 RGBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGAG => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 RGAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 RGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RGAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBGB => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 RBGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 RBGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBAR => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 RBAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 RBAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RBAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RBAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RARR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RARR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RARG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RARG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RARB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RARA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RARA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RAGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RAGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RAGG => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 RAGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 RAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RAGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RAGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RABR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RABR => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 RABG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 RABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RABB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RABA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RAAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RAAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RAAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 RAAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(RAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 RAAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRBB => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 GRBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 GRBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRAG => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 GRAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 GRAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GRAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GRAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GGAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBRB => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 GBRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 GBRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBBA => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 GBAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 GBAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GBAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GBAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GARR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GARR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GARG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GARG => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 GARB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 GARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GARA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GARA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAGA => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 GABR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 GABR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GABG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GABB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GABA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 GAAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(GAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 GAAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRGB => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 BRGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 BRGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRAR => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 BRAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 BRAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BRAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BRAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGRB => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 BGRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 BGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGBA => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 BGAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 BGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BGAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BBAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BBAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BARR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BARR => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 BARG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 BARG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BARB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BARA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BARA => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 BAGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 BAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BAGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BAGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BAGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BAGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BAGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BABR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BABR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BABG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BABB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BABA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BAAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BAAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BAAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 BAAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(BAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 BAAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARGG => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ARGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ARGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARBR => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ARBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ARBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ARAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ARAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ARAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGRR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGRG => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 AGRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 AGRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGRA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGGA => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 AGBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 AGBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AGAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AGAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABRR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABRR => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ABRG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ABRG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABRB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABRB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABRA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABRA => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref Int4 ABGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref Int4 ABGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABBR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABBR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABBG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABBG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABBB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABBB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABBA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABBA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 ABAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(ABAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 ABAA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AARR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AARR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AARG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AARG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AARB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AARB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AARA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AARA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAGR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAGR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAGG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAGG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAGB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAGB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAGA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAGA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AABR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AABR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AABG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AABG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AABB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AABB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AABA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AABA => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAAR => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAAR => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAAG => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAAG => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAAB => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAAB => ref *(Int4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly Int4 AAAA => throw new InvalidExecutionContextException($"{typeof(Int4)}.{nameof(AAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly Int4 AAAA => ref *(Int4*)UndefinedData; /// /// Negates a value. /// /// The value to negate. - public static Int4 operator -(Int4 xyzw) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int4 operator +(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static Int4 operator /(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static Int4 operator *(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int4 operator -(Int4 left, Int4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs index 3662b880..466288e3 100644 --- a/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] - public partial struct Int1x1 + public unsafe partial struct Int1x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x1), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -23,14 +33,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref int this[int row] => throw new InvalidExecutionContextException($"{typeof(Int1x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -38,7 +50,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -47,12 +60,13 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x1)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Creates a new value with the same value for all its components. @@ -71,41 +85,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int1x1 operator -(Int1x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int1x1 operator +(Int1x1 left, Int1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int1x1 operator /(Int1x1 left, Int1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int1x1 operator *(Int1x1 left, Int1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int1x1 operator -(Int1x1 left, Int1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x1 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Int1x2 + public unsafe partial struct Int1x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x2), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -127,14 +151,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int1x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -142,7 +168,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -151,17 +178,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x2)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int1x2)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Creates a new value with the same value for all its components. @@ -181,47 +209,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int1x2 operator -(Int1x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int1x2 operator +(Int1x2 left, Int1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int1x2 operator /(Int1x2 left, Int1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int1x2 operator *(Int1x2 left, Int1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int1x2 operator -(Int1x2 left, Int1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x2 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Int1x2(Int2 vector) => throw new InvalidExecutionContextException($"{typeof(Int1x2)}.{typeof(Int1x2)}({typeof(Int2)})"); + public static implicit operator Int1x2(Int2 vector) => *(Int1x2*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Int1x3 + public unsafe partial struct Int1x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x3), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -248,14 +286,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int1x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -263,7 +303,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -272,22 +313,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x3)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int1x3)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int1x3)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Creates a new value with the same value for all its components. @@ -308,47 +350,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int1x3 operator -(Int1x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int1x3 operator +(Int1x3 left, Int1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int1x3 operator /(Int1x3 left, Int1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int1x3 operator *(Int1x3 left, Int1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int1x3 operator -(Int1x3 left, Int1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x3 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Int1x3(Int3 vector) => throw new InvalidExecutionContextException($"{typeof(Int1x3)}.{typeof(Int1x3)}({typeof(Int3)})"); + public static implicit operator Int1x3(Int3 vector) => *(Int1x3*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Int1x4 + public unsafe partial struct Int1x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x4), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -380,14 +432,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int1x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -395,7 +449,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -404,27 +459,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.M14"); + public ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Creates a new value with the same value for all its components. @@ -446,47 +502,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int1x4 operator -(Int1x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int1x4 operator +(Int1x4 left, Int1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int1x4 operator /(Int1x4 left, Int1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int1x4 operator *(Int1x4 left, Int1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int1x4 operator -(Int1x4 left, Int1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int1x4 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Int1x4(Int4 vector) => throw new InvalidExecutionContextException($"{typeof(Int1x4)}.{typeof(Int1x4)}({typeof(Int4)})"); + public static implicit operator Int1x4(Int4 vector) => *(Int1x4*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct Int2x1 + public unsafe partial struct Int2x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x1), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -508,14 +574,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref int this[int row] => throw new InvalidExecutionContextException($"{typeof(Int2x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -523,7 +591,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -532,17 +601,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x1)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x1)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Creates a new value with the same value for all its components. @@ -562,47 +632,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int2x1 operator -(Int2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int2x1 operator +(Int2x1 left, Int2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int2x1 operator /(Int2x1 left, Int2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int2x1 operator *(Int2x1 left, Int2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int2x1 operator -(Int2x1 left, Int2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Int2(Int2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Int2x1)}.{typeof(Int2)}({typeof(Int2x1)})"); + public static implicit operator Int2(Int2x1 matrix) => *(Int2*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Int2x2 + public unsafe partial struct Int2x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x2), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -647,14 +727,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int2x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -662,7 +744,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -671,27 +754,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int2x2)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Creates a new value with the same value for all its components. @@ -713,41 +797,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int2x2 operator -(Int2x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int2x2 operator +(Int2x2 left, Int2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int2x2 operator /(Int2x2 left, Int2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int2x2 operator *(Int2x2 left, Int2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int2x2 operator -(Int2x2 left, Int2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct Int2x3 + public unsafe partial struct Int2x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x3), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -804,14 +898,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int2x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -819,7 +915,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -828,37 +925,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int2x3)}.M23"); + public ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Creates a new value with the same value for all its components. @@ -882,41 +980,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int2x3 operator -(Int2x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int2x3 operator +(Int2x3 left, Int2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int2x3 operator /(Int2x3 left, Int2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int2x3 operator *(Int2x3 left, Int2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int2x3 operator -(Int2x3 left, Int2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct Int2x4 + public unsafe partial struct Int2x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x4), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -985,14 +1093,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int2x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1000,7 +1110,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1009,47 +1120,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M14"); + public ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M23"); + public ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref int M24 => throw new InvalidExecutionContextException($"{typeof(Int2x4)}.M24"); + public ref int M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Creates a new value with the same value for all its components. @@ -1075,41 +1187,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int2x4 operator -(Int2x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int2x4 operator +(Int2x4 left, Int2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int2x4 operator /(Int2x4 left, Int2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int2x4 operator *(Int2x4 left, Int2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int2x4 operator -(Int2x4 left, Int2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int2x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct Int3x1 + public unsafe partial struct Int3x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x1), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -1136,14 +1258,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref int this[int row] => throw new InvalidExecutionContextException($"{typeof(Int3x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1151,7 +1275,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1160,22 +1285,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x1)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x1)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x1)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Creates a new value with the same value for all its components. @@ -1196,47 +1322,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int3x1 operator -(Int3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int3x1 operator +(Int3x1 left, Int3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int3x1 operator /(Int3x1 left, Int3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int3x1 operator *(Int3x1 left, Int3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int3x1 operator -(Int3x1 left, Int3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Int3(Int3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Int3x1)}.{typeof(Int3)}({typeof(Int3x1)})"); + public static implicit operator Int3(Int3x1 matrix) => *(Int3*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct Int3x2 + public unsafe partial struct Int3x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x2), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -1294,14 +1430,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int3x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1309,7 +1447,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1318,37 +1457,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int3x2)}.M32"); + public ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Creates a new value with the same value for all its components. @@ -1372,41 +1512,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int3x2 operator -(Int3x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int3x2 operator +(Int3x2 left, Int3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int3x2 operator /(Int3x2 left, Int3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int3x2 operator *(Int3x2 left, Int3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int3x2 operator -(Int3x2 left, Int3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)] - public partial struct Int3x3 + public unsafe partial struct Int3x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x3), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -1482,14 +1632,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int3x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1497,7 +1649,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1506,52 +1659,53 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M23"); + public ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M32"); + public ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int3x3)}.M33"); + public ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Creates a new value with the same value for all its components. @@ -1578,41 +1732,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int3x3 operator -(Int3x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int3x3 operator +(Int3x3 left, Int3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int3x3 operator /(Int3x3 left, Int3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int3x3 operator *(Int3x3 left, Int3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int3x3 operator -(Int3x3 left, Int3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct Int3x4 + public unsafe partial struct Int3x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x4), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -1706,14 +1870,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int3x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1721,7 +1887,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1730,67 +1897,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M14"); + public ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M23"); + public ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref int M24 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M24"); + public ref int M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M32"); + public ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M33"); + public ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref int M34 => throw new InvalidExecutionContextException($"{typeof(Int3x4)}.M34"); + public ref int M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Creates a new value with the same value for all its components. @@ -1820,41 +1988,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int3x4 operator -(Int3x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int3x4 operator +(Int3x4 left, Int3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int3x4 operator /(Int3x4 left, Int3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int3x4 operator *(Int3x4 left, Int3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int3x4 operator -(Int3x4 left, Int3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int3x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct Int4x1 + public unsafe partial struct Int4x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x1), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -1886,14 +2064,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref int this[int row] => throw new InvalidExecutionContextException($"{typeof(Int4x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1901,7 +2081,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1910,27 +2091,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.M41"); + public ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Creates a new value with the same value for all its components. @@ -1952,47 +2134,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int4x1 operator -(Int4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int4x1 operator +(Int4x1 left, Int4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int4x1 operator /(Int4x1 left, Int4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int4x1 operator *(Int4x1 left, Int4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int4x1 operator -(Int4x1 left, Int4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Int4(Int4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(Int4x1)}.{typeof(Int4)}({typeof(Int4x1)})"); + public static implicit operator Int4(Int4x1 matrix) => *(Int4*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct Int4x2 + public unsafe partial struct Int4x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x2), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -2063,14 +2255,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int2 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int4x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2078,7 +2272,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2087,47 +2282,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M32"); + public ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M41"); + public ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref int M42 => throw new InvalidExecutionContextException($"{typeof(Int4x2)}.M42"); + public ref int M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Creates a new value with the same value for all its components. @@ -2153,41 +2349,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int4x2 operator -(Int4x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int4x2 operator +(Int4x2 left, Int4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int4x2 operator /(Int4x2 left, Int4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int4x2 operator *(Int4x2 left, Int4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int4x2 operator -(Int4x2 left, Int4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct Int4x3 + public unsafe partial struct Int4x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x3), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -2282,14 +2488,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int3 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int4x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2297,7 +2505,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2306,67 +2515,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M23"); + public ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M32"); + public ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M33"); + public ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M41"); + public ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref int M42 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M42"); + public ref int M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref int M43 => throw new InvalidExecutionContextException($"{typeof(Int4x3)}.M43"); + public ref int M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Creates a new value with the same value for all its components. @@ -2396,41 +2606,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int4x3 operator -(Int4x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int4x3 operator +(Int4x3 left, Int4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int4x3 operator /(Int4x3 left, Int4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int4x3 operator *(Int4x3 left, Int4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int4x3 operator -(Int4x3 left, Int4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)] - public partial struct Int4x4 + public unsafe partial struct Int4x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x4), sizeof(Int4)); + [FieldOffset(0)] private int m11; @@ -2549,14 +2769,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref Int4 this[int row] => throw new InvalidExecutionContextException($"{typeof(Int4x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(Int4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2564,7 +2786,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(Int4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2573,87 +2796,88 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(Int4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref int M11 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M11"); + public ref int M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref int M12 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M12"); + public ref int M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref int M13 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M13"); + public ref int M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref int M14 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M14"); + public ref int M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref int M21 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M21"); + public ref int M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref int M22 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M22"); + public ref int M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref int M23 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M23"); + public ref int M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref int M24 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M24"); + public ref int M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref int M31 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M31"); + public ref int M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref int M32 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M32"); + public ref int M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref int M33 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M33"); + public ref int M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref int M34 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M34"); + public ref int M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref int M41 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M41"); + public ref int M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref int M42 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M42"); + public ref int M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref int M43 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M43"); + public ref int M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public ref int M44 => throw new InvalidExecutionContextException($"{typeof(Int4x4)}.M44"); + public ref int M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m44, 1)); /// /// Creates a new value with the same value for all its components. @@ -2687,34 +2911,39 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static Int4x4 operator -(Int4x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static Int4x4 operator +(Int4x4 left, Int4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static Int4x4 operator /(Int4x4 left, Int4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static Int4x4 operator *(Int4x4 left, Int4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static Int4x4 operator -(Int4x4 left, Int4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, Int4x4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude index e6fdfe14..46506b1b 100644 --- a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude @@ -11,7 +11,12 @@ void GenerateAllMatrixProperties(string typeName, int elementSize) { #> using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { @@ -38,9 +43,14 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen #> /// [StructLayout(LayoutKind.Explicit, Size = <#=(elementSize * rows * columns)#>, Pack = <#=elementSize#>)] - public partial struct <#=fullTypeName#> + public unsafe partial struct <#=fullTypeName#> { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(<#=fullTypeName#>), sizeof(<#=typeName#>4)); <# + WriteLine(""); PushIndent(" "); PushIndent(" "); @@ -121,14 +131,16 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref <#=rowTypeName#> this[int row] => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -136,7 +148,8 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -145,7 +158,8 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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++) @@ -155,7 +169,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// /// Gets a reference to the value representing the component at position [<#=i#>, <#=j#>]. /// - public ref <#=elementTypeName#> M<#=i#><#=j#> => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}.M<#=i#><#=j#>"); + public ref <#=elementTypeName#> M<#=i#><#=j#> => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m<#=i#><#=j#>, 1)); <# } @@ -198,7 +212,8 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// Negates a value. /// /// The value to negate. - public static <#=fullTypeName#> operator -(<#=fullTypeName#> matrix) => throw new InvalidExecutionContextException($"{typeof(<#=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; <# } @@ -212,28 +227,32 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// /// The first value to sum. /// The second value to sum. - public static <#=fullTypeName#> operator +(<#=fullTypeName#> left, <#=fullTypeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=fullTypeName#> right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static <#=fullTypeName#> operator /(<#=fullTypeName#> left, <#=fullTypeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=fullTypeName#> right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static <#=fullTypeName#> operator *(<#=fullTypeName#> left, <#=fullTypeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=fullTypeName#> right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static <#=fullTypeName#> operator -(<#=fullTypeName#> left, <#=fullTypeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=fullTypeName#> right) => default; <# } @@ -246,7 +265,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator <#=fullTypeName#>(<#=typeName#><#=columns#> vector) => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}.{typeof(<#=fullTypeName#>)}({typeof(<#=typeName#><#=columns#>)})"); + public static implicit operator <#=fullTypeName#>(<#=typeName#><#=columns#> vector) => *(<#=fullTypeName#>*)&vector; <# } @@ -258,7 +277,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator <#=typeName#><#=rows#>(<#=fullTypeName#> matrix) => throw new InvalidExecutionContextException($"{typeof(<#=fullTypeName#>)}.{typeof(<#=typeName#><#=rows#>)}({typeof(<#=fullTypeName#>)})"); + public static implicit operator <#=typeName#><#=rows#>(<#=fullTypeName#> matrix) => *(<#=typeName#><#=rows#>*)&matrix; <# } #> diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt2.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt2.cs index 54c8d69a..6db3e55f 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt2.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt2.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -50,18 +49,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int2(UInt2 xy) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.({nameof(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 explicit operator Int2(UInt2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float2(UInt2 xy) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.({nameof(Float2)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Float2(UInt2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double2(UInt2 xy) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.({nameof(Double2)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double2(UInt2 xy) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs index 2f2d7fa3..0bcfbdb2 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct UInt2 + public unsafe partial struct UInt2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2), sizeof(UInt2)); + [FieldOffset(0)] private uint x; @@ -17,94 +27,107 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref uint this[int i] => throw new InvalidExecutionContextException($"{typeof(UInt2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref uint this[int i] => ref *(uint*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref uint X => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(X)}"); + public ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref uint Y => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(Y)}"); + public ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 XX => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 XX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 XY => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 XY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 YX => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 YY => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 YY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref uint R => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(R)}"); + public ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref uint G => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(G)}"); + public ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 RR => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 RR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 RG => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 RG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 GR => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 GG => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 GG => ref *(UInt2*)UndefinedData; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt2 operator +(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static UInt2 operator /(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static UInt2 operator *(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt2 operator -(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt3.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt3.cs index a0cbfa7b..2b04f6ab 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt3.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt3.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -81,18 +80,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int3(UInt3 xyz) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.({nameof(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 explicit operator Int3(UInt3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float3(UInt3 xyz) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.({nameof(Float3)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Float3(UInt3 xyz) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double3(UInt3 xyz) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.({nameof(Double3)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double3(UInt3 xyz) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs index abdc2d01..3ee94533 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct UInt3 + public unsafe partial struct UInt3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3), sizeof(UInt3)); + [FieldOffset(0)] private uint x; @@ -20,424 +30,501 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref uint this[int i] => throw new InvalidExecutionContextException($"{typeof(UInt3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref uint this[int i] => ref *(uint*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref uint X => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(X)}"); + public ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref uint Y => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(Y)}"); + public ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref uint Z => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(Z)}"); + public ref uint Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 XX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 XX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 XY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 XY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 XZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 XZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 YX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 YY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 YY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 YZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 YZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 ZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 ZX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 ZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 ZY => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 ZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 ZZ => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XXX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XXY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XXZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XYX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XYY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XYZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XZX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YXX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YXY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YXZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YYX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YYY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YYZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YYZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZXX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZXX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZXY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZXZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZXZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZYX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZYY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZYZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZZZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref uint R => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(R)}"); + public ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref uint G => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(G)}"); + public ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref uint B => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(B)}"); + public ref uint B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 RR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 RR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 RG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 RG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 RB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 RB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 GR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 GG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 GG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 GB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 GB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 BR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 BR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 BG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 BG => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 BB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 BB => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RRR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RRG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RRB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RRB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RGR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RGG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RGB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RBR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RBR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RBG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RBB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RBB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GRR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GRG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GRB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GRB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GGR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GGG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GGB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GGB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GBR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GBG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GBB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GBB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BRR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BRR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BRG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BRB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BRB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BGR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BGG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BGB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BBR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BBG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BBB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BBB => ref *(UInt3*)UndefinedData; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt3 operator +(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static UInt3 operator /(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static UInt3 operator *(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt3 operator -(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt4.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt4.cs index 453c9495..a4ac74d8 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt4.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt4.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using ComputeSharp.Exceptions; namespace ComputeSharp { @@ -131,18 +130,21 @@ namespace ComputeSharp /// Casts a value to a one. /// /// The input value to cast. - public static explicit operator Int4(UInt4 xyzw) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.({nameof(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 explicit operator Int4(UInt4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Float4(UInt4 xyzw) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.({nameof(Float4)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Float4(UInt4 xyzw) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator Double4(UInt4 xyzw) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.({nameof(Double4)})"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static implicit operator Double4(UInt4 xyzw) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs index 673aa7a5..58f1d90c 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct UInt4 + public unsafe partial struct UInt4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4), sizeof(UInt4)); + [FieldOffset(0)] private uint x; @@ -23,3434 +33,4111 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref uint this[int i] => throw new InvalidExecutionContextException($"{typeof(UInt4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref uint this[int i] => ref *(uint*)UndefinedData; /// /// Gets a reference to the value representing the X component. /// - public ref uint X => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(X)}"); + public ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the Y component. /// - public ref uint Y => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(Y)}"); + public ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the Z component. /// - public ref uint Z => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(Z)}"); + public ref uint Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the W component. /// - public ref uint W => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(W)}"); + public ref uint W => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 XX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 XX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 XY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 XY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 XZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 XZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 XW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 XW => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 YX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 YX => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 YY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 YY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 YZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 YZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 YW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 YW => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 ZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 ZX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 ZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 ZY => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 ZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 ZZ => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 ZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 ZW => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 WX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 WX => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 WY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 WY => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 WZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 WZ => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 WW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 WW => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XXW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XYZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XYW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XZX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XZZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XZW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XWX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XWY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 XWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 XWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 XWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 XWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YXZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YXW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YYW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YZZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YZW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YWX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YWY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 YWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 YWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 YWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 YWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZXX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZXY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZXZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZXW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZYY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZYZ => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZYW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZZX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZZW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZWX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ZWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ZWY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ZWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ZWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WXX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 WXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 WXY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 WXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 WXZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WXW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 WYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 WYX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WYY => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 WYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 WYZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WYW => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 WZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 WZX => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 WZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 WZY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WZZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WZW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WWX => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WWY => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WWZ => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 WWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 WWW => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XXWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 XYZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 XYZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYWY => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 XYWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 XYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XYWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 XZYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 XZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZWX => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 XZWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 XZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XZWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWYY => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 XWYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 XWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWZX => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 XWZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 XWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 XWWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(XWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 XWWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 YXZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 YXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXWY => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 YXWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 YXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YXWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YYWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 YZXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 YZXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZZW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 YZWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 YZWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YZWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWXY => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 YWXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 YWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWYW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 YWZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 YWZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 YWWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(YWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 YWWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ZXYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ZXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXWX => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ZXWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ZXWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZXWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ZYXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ZYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYZW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ZYWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ZYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZYWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZZWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWXX => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ZWXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ZWXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWXW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ZWYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ZWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ZWWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ZWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ZWWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXYY => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 WXYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 WXYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXZX => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 WXZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 WXZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WXWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WXWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WXWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYXY => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 WYXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 WYXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYYW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 WYZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 WYZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WYWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WYWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WYWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZXX => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 WZXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 WZXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZXW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 WZYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 WZYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WZWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WZWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WZWW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWXX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWXX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWXX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWXY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWXY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWXY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWXZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWXZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWXZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWXW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWXW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWXW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWYX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWYX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWYX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWYY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWYY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWYY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWYZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWYZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWYZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWYW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWYW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWYW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWZX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWZX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWZX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWZY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWZY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWZY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWZZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWZZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWZZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWZW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWZW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWZW => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWWX => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWWX)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWWX => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWWY => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWWY)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWWY => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWWZ => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWWZ)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWWZ => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 WWWW => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(WWWW)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 WWWW => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// - public ref uint R => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(R)}"); + public ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1)); /// /// Gets a reference to the value representing the G component. /// - public ref uint G => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(G)}"); + public ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1)); /// /// Gets a reference to the value representing the B component. /// - public ref uint B => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(B)}"); + public ref uint B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1)); /// /// Gets a reference to the value representing the A component. /// - public ref uint A => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(A)}"); + public ref uint A => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.w, 1)); /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 RR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 RR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 RG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 RG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 RB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 RB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 RA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 RA => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 GR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 GR => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 GG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 GG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 GB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 GB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 GA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 GA => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 BR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 BR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 BG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 BG => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 BB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 BB => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 BA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 BA => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 AR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 AR => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 AG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 AG => ref *(UInt2*)UndefinedData; /// /// Gets a reference to the value with the components , . /// - public ref UInt2 AB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt2 AB => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , . /// - public ref readonly UInt2 AA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt2 AA => ref *(UInt2*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RRB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RRA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RGB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RGA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RBR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RBB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RBA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RAR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RAG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 RAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 RAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 RAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 RAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GRB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GRA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GGA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GBB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GBA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GAR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GAG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 GAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 GAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 GAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 GAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BRR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BRG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BRB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BRA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BGG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BGB => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BGA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BBR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BBG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BBB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BBA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BAR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 BAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 BAG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 BAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 BAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ARR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ARR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ARG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ARG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ARB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ARB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ARA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ARA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 AGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 AGR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 AGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 AGG => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 AGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 AGB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 AGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 AGA => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ABR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ABR => ref *(UInt3*)UndefinedData; /// /// Gets a reference to the value with the components , , . /// - public ref UInt3 ABG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt3 ABG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ABB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ABB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 ABA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 ABA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 AAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 AAR => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 AAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 AAG => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 AAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 AAB => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , . /// - public ref readonly UInt3 AAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt3 AAA => ref *(UInt3*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RRAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RRAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGBB => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 RGBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 RGBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGAG => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 RGAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 RGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RGAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBGB => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 RBGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 RBGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBAR => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 RBAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 RBAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RBAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RBAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RARR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RARR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RARG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RARG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RARB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RARA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RARA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RAGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RAGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RAGG => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 RAGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 RAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RAGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RAGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RABR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RABR => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 RABG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 RABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RABB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RABA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RAAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RAAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RAAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 RAAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(RAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 RAAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRBB => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 GRBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 GRBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRAG => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 GRAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 GRAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GRAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GRAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GGAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBRB => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 GBRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 GBRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBBA => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 GBAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 GBAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GBAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GBAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GARR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GARR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GARG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GARG => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 GARB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 GARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GARA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GARA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAGA => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 GABR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 GABR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GABG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GABB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GABA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 GAAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(GAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 GAAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRGB => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 BRGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 BRGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRAR => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 BRAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 BRAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BRAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BRAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BRAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGRB => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 BGRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 BGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGBA => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 BGAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 BGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BGAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BBAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BBAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BBAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BARR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BARR => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 BARG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 BARG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BARB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BARA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BARA => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 BAGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 BAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BAGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BAGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BAGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BAGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BAGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BABR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BABR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BABG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BABB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BABA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BAAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BAAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BAAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 BAAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(BAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 BAAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARGG => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ARGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ARGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARBR => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ARBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ARBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ARAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ARAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ARAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGRR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGRG => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 AGRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 AGRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGRA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGGA => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 AGBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 AGBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AGAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AGAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AGAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABRR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABRR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABRR => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ABRG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABRG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ABRG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABRB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABRB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABRB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABRA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABRA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABRA => ref *(UInt4*)UndefinedData; /// /// Gets a reference to the value with the components , , , . /// - public ref UInt4 ABGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref UInt4 ABGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABBR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABBR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABBR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABBG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABBG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABBG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABBB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABBB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABBB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABBA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABBA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABBA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 ABAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(ABAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 ABAA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AARR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AARR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AARR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AARG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AARG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AARG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AARB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AARB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AARB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AARA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AARA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AARA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAGR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAGR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAGR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAGG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAGG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAGG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAGB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAGB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAGB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAGA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAGA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAGA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AABR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AABR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AABR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AABG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AABG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AABG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AABB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AABB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AABB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AABA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AABA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AABA => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAAR => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAAR)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAAR => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAAG => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAAG)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAAG => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAAB => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAAB)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAAB => ref *(UInt4*)UndefinedData; /// /// Gets a readonly reference to the value with the components , , , . /// - public ref readonly UInt4 AAAA => throw new InvalidExecutionContextException($"{typeof(UInt4)}.{nameof(AAAA)}"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref readonly UInt4 AAAA => ref *(UInt4*)UndefinedData; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt4 operator +(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static UInt4 operator /(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static UInt4 operator *(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt4 operator -(UInt4 left, UInt4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs index 921d28cd..d8bcd330 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs @@ -1,12 +1,22 @@ using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] - public partial struct UInt1x1 + public unsafe partial struct UInt1x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x1), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -23,14 +33,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref uint this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt1x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -38,7 +50,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -47,12 +60,13 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt1x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x1)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Creates a new value with the same value for all its components. @@ -71,41 +85,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt1x1 operator -(UInt1x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt1x1 operator +(UInt1x1 left, UInt1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt1x1 operator /(UInt1x1 left, UInt1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt1x1 operator *(UInt1x1 left, UInt1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt1x1 operator -(UInt1x1 left, UInt1x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x1 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct UInt1x2 + public unsafe partial struct UInt1x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x2), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -127,14 +151,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt2 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -142,7 +168,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -151,17 +178,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Creates a new value with the same value for all its components. @@ -181,47 +209,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt1x2 operator -(UInt1x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt1x2 operator +(UInt1x2 left, UInt1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt1x2 operator /(UInt1x2 left, UInt1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt1x2 operator *(UInt1x2 left, UInt1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt1x2 operator -(UInt1x2 left, UInt1x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x2 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator UInt1x2(UInt2 vector) => throw new InvalidExecutionContextException($"{typeof(UInt1x2)}.{typeof(UInt1x2)}({typeof(UInt2)})"); + public static implicit operator UInt1x2(UInt2 vector) => *(UInt1x2*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct UInt1x3 + public unsafe partial struct UInt1x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x3), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -248,14 +286,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt3 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -263,7 +303,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -272,22 +313,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Creates a new value with the same value for all its components. @@ -308,47 +350,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt1x3 operator -(UInt1x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt1x3 operator +(UInt1x3 left, UInt1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt1x3 operator /(UInt1x3 left, UInt1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt1x3 operator *(UInt1x3 left, UInt1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt1x3 operator -(UInt1x3 left, UInt1x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x3 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator UInt1x3(UInt3 vector) => throw new InvalidExecutionContextException($"{typeof(UInt1x3)}.{typeof(UInt1x3)}({typeof(UInt3)})"); + public static implicit operator UInt1x3(UInt3 vector) => *(UInt1x3*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct UInt1x4 + public unsafe partial struct UInt1x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x4), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -380,14 +432,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt4 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -395,7 +449,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -404,27 +459,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.M14"); + public ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Creates a new value with the same value for all its components. @@ -446,47 +502,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt1x4 operator -(UInt1x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt1x4 operator +(UInt1x4 left, UInt1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt1x4 operator /(UInt1x4 left, UInt1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt1x4 operator *(UInt1x4 left, UInt1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt1x4 operator -(UInt1x4 left, UInt1x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt1x4 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator UInt1x4(UInt4 vector) => throw new InvalidExecutionContextException($"{typeof(UInt1x4)}.{typeof(UInt1x4)}({typeof(UInt4)})"); + public static implicit operator UInt1x4(UInt4 vector) => *(UInt1x4*)&vector; } /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] - public partial struct UInt2x1 + public unsafe partial struct UInt2x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x1), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -508,14 +574,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref uint this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -523,7 +591,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -532,17 +601,18 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Creates a new value with the same value for all its components. @@ -562,47 +632,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt2x1 operator -(UInt2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt2x1 operator +(UInt2x1 left, UInt2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt2x1 operator /(UInt2x1 left, UInt2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt2x1 operator *(UInt2x1 left, UInt2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt2x1 operator -(UInt2x1 left, UInt2x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator UInt2(UInt2x1 matrix) => throw new InvalidExecutionContextException($"{typeof(UInt2x1)}.{typeof(UInt2)}({typeof(UInt2x1)})"); + public static implicit operator UInt2(UInt2x1 matrix) => *(UInt2*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct UInt2x2 + public unsafe partial struct UInt2x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x2), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -647,14 +727,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt2 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -662,7 +744,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -671,27 +754,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt2x2)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Creates a new value with the same value for all its components. @@ -713,41 +797,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt2x2 operator -(UInt2x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt2x2 operator +(UInt2x2 left, UInt2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt2x2 operator /(UInt2x2 left, UInt2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt2x2 operator *(UInt2x2 left, UInt2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt2x2 operator -(UInt2x2 left, UInt2x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct UInt2x3 + public unsafe partial struct UInt2x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x3), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -804,14 +898,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt3 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -819,7 +915,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -828,37 +925,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt2x3)}.M23"); + public ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Creates a new value with the same value for all its components. @@ -882,41 +980,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt2x3 operator -(UInt2x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt2x3 operator +(UInt2x3 left, UInt2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt2x3 operator /(UInt2x3 left, UInt2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt2x3 operator *(UInt2x3 left, UInt2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt2x3 operator -(UInt2x3 left, UInt2x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct UInt2x4 + public unsafe partial struct UInt2x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x4), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -985,14 +1093,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt4 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1000,7 +1110,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1009,47 +1120,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M14"); + public ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M23"); + public ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref uint M24 => throw new InvalidExecutionContextException($"{typeof(UInt2x4)}.M24"); + public ref uint M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Creates a new value with the same value for all its components. @@ -1075,41 +1187,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt2x4 operator -(UInt2x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt2x4 operator +(UInt2x4 left, UInt2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt2x4 operator /(UInt2x4 left, UInt2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt2x4 operator *(UInt2x4 left, UInt2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt2x4 operator -(UInt2x4 left, UInt2x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt2x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] - public partial struct UInt3x1 + public unsafe partial struct UInt3x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x1), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -1136,14 +1258,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref uint this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1151,7 +1275,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1160,22 +1285,23 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Creates a new value with the same value for all its components. @@ -1196,47 +1322,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt3x1 operator -(UInt3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt3x1 operator +(UInt3x1 left, UInt3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt3x1 operator /(UInt3x1 left, UInt3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt3x1 operator *(UInt3x1 left, UInt3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt3x1 operator -(UInt3x1 left, UInt3x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator UInt3(UInt3x1 matrix) => throw new InvalidExecutionContextException($"{typeof(UInt3x1)}.{typeof(UInt3)}({typeof(UInt3x1)})"); + public static implicit operator UInt3(UInt3x1 matrix) => *(UInt3*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)] - public partial struct UInt3x2 + public unsafe partial struct UInt3x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x2), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -1294,14 +1430,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt2 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1309,7 +1447,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1318,37 +1457,38 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt3x2)}.M32"); + public ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Creates a new value with the same value for all its components. @@ -1372,41 +1512,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt3x2 operator -(UInt3x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt3x2 operator +(UInt3x2 left, UInt3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt3x2 operator /(UInt3x2 left, UInt3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt3x2 operator *(UInt3x2 left, UInt3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt3x2 operator -(UInt3x2 left, UInt3x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)] - public partial struct UInt3x3 + public unsafe partial struct UInt3x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x3), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -1482,14 +1632,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt3 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1497,7 +1649,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1506,52 +1659,53 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M23"); + public ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M32"); + public ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt3x3)}.M33"); + public ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Creates a new value with the same value for all its components. @@ -1578,41 +1732,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt3x3 operator -(UInt3x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt3x3 operator +(UInt3x3 left, UInt3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt3x3 operator /(UInt3x3 left, UInt3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt3x3 operator *(UInt3x3 left, UInt3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt3x3 operator -(UInt3x3 left, UInt3x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct UInt3x4 + public unsafe partial struct UInt3x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x4), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -1706,14 +1870,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt4 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1721,7 +1887,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1730,67 +1897,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M14"); + public ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M23"); + public ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref uint M24 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M24"); + public ref uint M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M32"); + public ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M33"); + public ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref uint M34 => throw new InvalidExecutionContextException($"{typeof(UInt3x4)}.M34"); + public ref uint M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Creates a new value with the same value for all its components. @@ -1820,41 +1988,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt3x4 operator -(UInt3x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt3x4 operator +(UInt3x4 left, UInt3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt3x4 operator /(UInt3x4 left, UInt3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt3x4 operator *(UInt3x4 left, UInt3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt3x4 operator -(UInt3x4 left, UInt3x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt3x4 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] - public partial struct UInt4x1 + public unsafe partial struct UInt4x1 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x1), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -1886,14 +2064,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref uint this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1901,7 +2081,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -1910,27 +2091,28 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.M41"); + public ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Creates a new value with the same value for all its components. @@ -1952,47 +2134,57 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt4x1 operator -(UInt4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt4x1 operator +(UInt4x1 left, UInt4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x1 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt4x1 operator /(UInt4x1 left, UInt4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x1 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt4x1 operator *(UInt4x1 left, UInt4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x1 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt4x1 operator -(UInt4x1 left, UInt4x1 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x1 right) => default; /// /// Casts a value to a one. /// /// The input value to cast. - public static implicit operator UInt4(UInt4x1 matrix) => throw new InvalidExecutionContextException($"{typeof(UInt4x1)}.{typeof(UInt4)}({typeof(UInt4x1)})"); + public static implicit operator UInt4(UInt4x1 matrix) => *(UInt4*)&matrix; } /// [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] - public partial struct UInt4x2 + public unsafe partial struct UInt4x2 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x2), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -2063,14 +2255,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt2 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2078,7 +2272,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2087,47 +2282,48 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M32"); + public ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M41"); + public ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref uint M42 => throw new InvalidExecutionContextException($"{typeof(UInt4x2)}.M42"); + public ref uint M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Creates a new value with the same value for all its components. @@ -2153,41 +2349,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt4x2 operator -(UInt4x2 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt4x2 operator +(UInt4x2 left, UInt4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x2 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt4x2 operator /(UInt4x2 left, UInt4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x2 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt4x2 operator *(UInt4x2 left, UInt4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt4x2 operator -(UInt4x2 left, UInt4x2 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x2 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] - public partial struct UInt4x3 + public unsafe partial struct UInt4x3 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x3), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -2282,14 +2488,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt3 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2297,7 +2505,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2306,67 +2515,68 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M23"); + public ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M32"); + public ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M33"); + public ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M41"); + public ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref uint M42 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M42"); + public ref uint M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref uint M43 => throw new InvalidExecutionContextException($"{typeof(UInt4x3)}.M43"); + public ref uint M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Creates a new value with the same value for all its components. @@ -2396,41 +2606,51 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt4x3 operator -(UInt4x3 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt4x3 operator +(UInt4x3 left, UInt4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x3 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt4x3 operator /(UInt4x3 left, UInt4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x3 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt4x3 operator *(UInt4x3 left, UInt4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x3 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt4x3 operator -(UInt4x3 left, UInt4x3 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x3 right) => default; } /// [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)] - public partial struct UInt4x4 + public unsafe partial struct UInt4x4 { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x4), sizeof(UInt4)); + [FieldOffset(0)] private uint m11; @@ -2549,14 +2769,16 @@ namespace ComputeSharp /// Gets a reference to a specific row in the current instance. /// /// The row to access. - public ref UInt4 this[int row] => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. - public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2564,7 +2786,8 @@ namespace ComputeSharp /// The identifier of the first item to index. /// The identifier of the second item to index. /// The identifier of the third item to index. - public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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. @@ -2573,87 +2796,88 @@ namespace ComputeSharp /// The identifier of the second item to index. /// The identifier of the third item to index. /// The identifier of the fourth item to index. - public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}[{typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}, {typeof(MatrixIndex)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + 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 ref uint M11 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M11"); + public ref uint M11 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m11, 1)); /// /// Gets a reference to the value representing the component at position [1, 2]. /// - public ref uint M12 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M12"); + public ref uint M12 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m12, 1)); /// /// Gets a reference to the value representing the component at position [1, 3]. /// - public ref uint M13 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M13"); + public ref uint M13 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m13, 1)); /// /// Gets a reference to the value representing the component at position [1, 4]. /// - public ref uint M14 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M14"); + public ref uint M14 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m14, 1)); /// /// Gets a reference to the value representing the component at position [2, 1]. /// - public ref uint M21 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M21"); + public ref uint M21 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m21, 1)); /// /// Gets a reference to the value representing the component at position [2, 2]. /// - public ref uint M22 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M22"); + public ref uint M22 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m22, 1)); /// /// Gets a reference to the value representing the component at position [2, 3]. /// - public ref uint M23 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M23"); + public ref uint M23 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m23, 1)); /// /// Gets a reference to the value representing the component at position [2, 4]. /// - public ref uint M24 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M24"); + public ref uint M24 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m24, 1)); /// /// Gets a reference to the value representing the component at position [3, 1]. /// - public ref uint M31 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M31"); + public ref uint M31 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m31, 1)); /// /// Gets a reference to the value representing the component at position [3, 2]. /// - public ref uint M32 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M32"); + public ref uint M32 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m32, 1)); /// /// Gets a reference to the value representing the component at position [3, 3]. /// - public ref uint M33 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M33"); + public ref uint M33 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m33, 1)); /// /// Gets a reference to the value representing the component at position [3, 4]. /// - public ref uint M34 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M34"); + public ref uint M34 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m34, 1)); /// /// Gets a reference to the value representing the component at position [4, 1]. /// - public ref uint M41 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M41"); + public ref uint M41 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m41, 1)); /// /// Gets a reference to the value representing the component at position [4, 2]. /// - public ref uint M42 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M42"); + public ref uint M42 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m42, 1)); /// /// Gets a reference to the value representing the component at position [4, 3]. /// - public ref uint M43 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M43"); + public ref uint M43 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m43, 1)); /// /// Gets a reference to the value representing the component at position [4, 4]. /// - public ref uint M44 => throw new InvalidExecutionContextException($"{typeof(UInt4x4)}.M44"); + public ref uint M44 => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m44, 1)); /// /// Creates a new value with the same value for all its components. @@ -2687,34 +2911,39 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static UInt4x4 operator -(UInt4x4 matrix) => throw new InvalidExecutionContextException($"{typeof(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; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. - public static UInt4x4 operator +(UInt4x4 left, UInt4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x4 right) => default; /// /// Divides two values (elementwise division). /// /// The first value to divide. /// The second value to divide. - public static UInt4x4 operator /(UInt4x4 left, UInt4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x4 right) => default; /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. - public static UInt4x4 operator *(UInt4x4 left, UInt4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x4 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static UInt4x4 operator -(UInt4x4 left, UInt4x4 right) => throw new InvalidExecutionContextException($"{typeof(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 left, UInt4x4 right) => default; } } diff --git a/src/ComputeSharp/Core/Primitives/VectorType.ttinclude b/src/ComputeSharp/Core/Primitives/VectorType.ttinclude index 23e29de2..bbeec676 100644 --- a/src/ComputeSharp/Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp/Core/Primitives/VectorType.ttinclude @@ -67,15 +67,25 @@ void GenerateVectorProperties(string typeName, int elementSize) int i = int.Parse(Regex.Match(typeName, @"\d+$").Value); #> using System.Runtime.InteropServices; -using ComputeSharp.Exceptions; +#if NET5_0 +using System.Runtime.CompilerServices; +#else +using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; +using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; +#endif namespace ComputeSharp { /// [StructLayout(LayoutKind.Explicit, Size = <#=(elementSize * i)#>, Pack = <#=elementSize#>)] - public partial struct <#=typeName#> + public unsafe partial struct <#=typeName#> { + /// + /// A private buffer to which the undefined properties will point to. + /// + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(<#=typeName#>), sizeof(<#=typeName#>)); <# + WriteLine(""); PushIndent(" "); PushIndent(" "); @@ -94,7 +104,8 @@ namespace ComputeSharp /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. - public ref <#=hlslElementTypeName#> this[int i] => throw new InvalidExecutionContextException($"{typeof(<#=typeName#>)}[{typeof(int)}]"); + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public ref <#=hlslElementTypeName#> this[int i] => ref *(<#=hlslElementTypeName#>*)UndefinedData; <# PushIndent(" "); PushIndent(" "); @@ -119,6 +130,13 @@ namespace ComputeSharp if (propertyName.Length == 1) { WriteLine($"/// Gets a reference to the value representing the {propertyName} component."); + WriteLine("/// "); + + char fieldName = "xyzw"["xyzwrgba".IndexOf(propertyName.ToLower()) % 4]; + + // Property + Write($"public {refType} {propertyType} {propertyName} "); + WriteLine($"=> ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.{fieldName}, 1));"); } else { @@ -126,13 +144,14 @@ namespace ComputeSharp if (isReadonly) Write("readonly "); Write($"reference to the value with the components "); Write(string.Join(", ", propertyName.Select(c => $""))); - WriteLine("."); - } - WriteLine("/// "); + WriteLine("."); + WriteLine("/// "); + 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 {refType} {propertyType} {propertyName} "); - WriteLine($"=> throw new InvalidExecutionContextException($\"{{typeof({typeName})}}.{{nameof({propertyName})}}\");"); + // Property + Write($"public {refType} {propertyType} {propertyName} "); + WriteLine($"=> ref *({propertyType}*)UndefinedData;"); + } } PopIndent(); @@ -149,7 +168,8 @@ namespace ComputeSharp /// Negates a value. /// /// The value to negate. - public static <#=typeName#> operator -(<#=typeName#> <#=argumentName#>) => throw new InvalidExecutionContextException($"{typeof(<#=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; <# } @@ -163,28 +183,32 @@ namespace ComputeSharp /// /// The first value to sum. /// The second value to sum. - public static <#=typeName#> operator +(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=typeName#> right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. - public static <#=typeName#> operator /(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=typeName#> right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. - public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=typeName#> right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. - public static <#=typeName#> operator -(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=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#> left, <#=typeName#> right) => default; <# } #> diff --git a/src/ComputeSharp/Shaders/Renderer/HlslShaderRenderer.cs b/src/ComputeSharp/Shaders/Renderer/HlslShaderRenderer.cs index 3a48a8aa..cc2c7c2b 100644 --- a/src/ComputeSharp/Shaders/Renderer/HlslShaderRenderer.cs +++ b/src/ComputeSharp/Shaders/Renderer/HlslShaderRenderer.cs @@ -51,19 +51,23 @@ namespace ComputeSharp.Shaders.Renderer builder.AppendLine(define.Value); } - // Static constants - if (info.ConstantsInfo.Count > 0) + // Static fields + if (info.StaticFields.Count > 0) { builder.AppendLine(); - foreach (var constant in info.ConstantsInfo) + foreach (var constant in info.StaticFields) { - builder.Append("static const "); - builder.Append(constant.Value.Type); + builder.Append(constant.Value.TypeDeclaration); builder.Append(' '); builder.Append(constant.Key); - builder.Append(" = "); - builder.Append(constant.Value.Assignment); + + if (constant.Value.Assignment is string assignment) + { + builder.Append(" = "); + builder.Append(assignment); + } + builder.AppendLine(";"); } } diff --git a/src/ComputeSharp/Shaders/Translation/IShaderLoader.cs b/src/ComputeSharp/Shaders/Translation/IShaderLoader.cs index 2d9662ae..491e803e 100644 --- a/src/ComputeSharp/Shaders/Translation/IShaderLoader.cs +++ b/src/ComputeSharp/Shaders/Translation/IShaderLoader.cs @@ -34,9 +34,9 @@ namespace ComputeSharp.Shaders.Translation IReadOnlyDictionary DefinesInfo { get; } /// - /// Gets the collection of discovered constants. + /// Gets the collection of discovered static fields. /// - IReadOnlyDictionary ConstantsInfo { get; } + IReadOnlyDictionary StaticFields { get; } /// /// Gets the collection of declared types for the shader. diff --git a/src/ComputeSharp/Shaders/Translation/ShaderLoader{T}.cs b/src/ComputeSharp/Shaders/Translation/ShaderLoader{T}.cs index 213f6f32..390a4b52 100644 --- a/src/ComputeSharp/Shaders/Translation/ShaderLoader{T}.cs +++ b/src/ComputeSharp/Shaders/Translation/ShaderLoader{T}.cs @@ -114,7 +114,7 @@ namespace ComputeSharp.Shaders.Translation public IReadOnlyCollection DeclaredTypes => this.declaredTypes; /// - public IReadOnlyDictionary ConstantsInfo { get; private set; } + public IReadOnlyDictionary StaticFields { get; private set; } /// public IReadOnlyDictionary SharedBuffers { get; private set; } @@ -146,7 +146,7 @@ namespace ComputeSharp.Shaders.Translation private void LoadMethodMetadata() { EntryPoint = Attribute.ExecuteMethod; - ConstantsInfo = Attribute.Constants; + StaticFields = Attribute.StaticFields; SharedBuffers = Attribute.SharedBuffers; this.declaredTypes.AddRange(Attribute.Types); diff --git a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs index 5924b562..cb968f57 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs +++ b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs @@ -142,7 +142,7 @@ namespace ComputeSharp.Tests.SourceGenerators [DataRow(nameof(GroupIds), "CMPS0007")] [DataRow(nameof(GroupSize), "CMPS0008")] [DataRow(nameof(GridIds), "CMPS0009")] - [DataRow(nameof(DispatchSize), "CMPS0047")] + [DataRow(nameof(DispatchSize), "CMPS0044")] public void InvalidDispatchInfoUsage_LocalFunction(string typeName, string diagnosticsId) { string source = $@" @@ -177,7 +177,7 @@ namespace ComputeSharp.Tests.SourceGenerators [DataRow(nameof(GroupIds), "CMPS0007")] [DataRow(nameof(GroupSize), "CMPS0008")] [DataRow(nameof(GridIds), "CMPS0009")] - [DataRow(nameof(DispatchSize), "CMPS0047")] + [DataRow(nameof(DispatchSize), "CMPS0044")] public void InvalidDispatchInfoUsage_StaticMethod(string typeName, string diagnosticsId) { string source = $@" @@ -204,41 +204,6 @@ namespace ComputeSharp.Tests.SourceGenerators VerifyGeneratedDiagnostics(source, diagnosticsId); } - [TestMethod] - [DataRow(nameof(ThreadIds), "CMPS0006")] - [DataRow(nameof(GroupIds), "CMPS0007")] - [DataRow(nameof(GroupSize), "CMPS0008")] - [DataRow(nameof(GridIds), "CMPS0009")] - [DataRow(nameof(DispatchSize), "CMPS0047")] - public void InvalidDispatchInfoUsage_ConstantProperty(string typeName, string diagnosticsId) - { - string source = $@" - using ComputeSharp; - - namespace ComputeSharp - {{ - public class ReadWriteBuffer {{ }} - public static class {typeName} {{ public static int X => 0; }} - }} - - namespace MyFancyApp.Sample - {{ - public struct MyShader : IComputeShader - {{ - public ReadWriteBuffer buffer; - - private static int Foo => {typeName}.X; - - public void Execute() - {{ - buffer[0] = Foo; - }} - }} - }}"; - - VerifyGeneratedDiagnostics(source, diagnosticsId); - } - [TestMethod] public void InvalidThreadIdsNormalizedUsage() { @@ -257,11 +222,11 @@ namespace ComputeSharp.Tests.SourceGenerators {{ public ReadWriteBuffer buffer; - private static int Foo => ThreadIds.Normalized.X; + public static int Fail() => ThreadIds.Normalized.X; public void Execute() {{ - buffer[0] = Foo; + buffer[0] = Fail(); }} }} }}"; @@ -1206,7 +1171,7 @@ namespace ComputeSharp.Tests.SourceGenerators } [TestMethod] - public void InvalidShaderConstantPropertyType() + public void InvalidShaderStaticFieldType() { string source = @" using ComputeSharp; @@ -1222,7 +1187,7 @@ namespace ComputeSharp.Tests.SourceGenerators { public ReadWriteBuffer buffer; - private static string Pi => ""Hello""; + private static string Pi = ""Hello""; public void Execute() { @@ -1234,7 +1199,7 @@ namespace ComputeSharp.Tests.SourceGenerators } [TestMethod] - public void InvalidShaderConstantPropertyDeclaration_AutoProp() + public void PropertyDeclaration_AutoProp() { string source = @" using ComputeSharp; @@ -1258,11 +1223,11 @@ namespace ComputeSharp.Tests.SourceGenerators } }"; - VerifyGeneratedDiagnostics(source, "CMPS0044"); + VerifyGeneratedDiagnostics(source, "CMPS0045"); } [TestMethod] - public void InvalidShaderConstantPropertyDeclaration_GetterBlock() + public void PropertyDeclaration_GetterBlock() { string source = @" using ComputeSharp; @@ -1289,11 +1254,11 @@ namespace ComputeSharp.Tests.SourceGenerators } }"; - VerifyGeneratedDiagnostics(source, "CMPS0044"); + VerifyGeneratedDiagnostics(source, "CMPS0045"); } [TestMethod] - public void NonReadonlyShaderPropertyDeclaration() + public void StaticPropertyDeclaration() { string source = @" using ComputeSharp; @@ -1321,7 +1286,7 @@ namespace ComputeSharp.Tests.SourceGenerators } [TestMethod] - public void InstanceShaderPropertyDeclaration() + public void InstancePropertyDeclaration() { string source = @" using ComputeSharp; @@ -1345,7 +1310,7 @@ namespace ComputeSharp.Tests.SourceGenerators } }"; - VerifyGeneratedDiagnostics(source, "CMPS0046"); + VerifyGeneratedDiagnostics(source, "CMPS0045"); } /// diff --git a/tests/ComputeSharp.Tests/ShaderMembersTests.cs b/tests/ComputeSharp.Tests/ShaderMembersTests.cs index df8b0d7f..cff85204 100644 --- a/tests/ComputeSharp.Tests/ShaderMembersTests.cs +++ b/tests/ComputeSharp.Tests/ShaderMembersTests.cs @@ -33,10 +33,10 @@ namespace ComputeSharp.Tests { public readonly ReadWriteBuffer buffer; - static float Pi => 3.14f; - static float SinPi => Hlsl.Sin(Pi); - static Int2x2 Mat => new(1, 2, 3, 4); - static float Combo => Hlsl.Abs(Hlsl.Clamp(Hlsl.Min(Hlsl.Max(3.14f, 2), 10), 0, 42)); + static readonly float Pi = 3.14f; + static readonly float SinPi = Hlsl.Sin(Pi); + static readonly Int2x2 Mat = new(1, 2, 3, 4); + static readonly float Combo = Hlsl.Abs(Hlsl.Clamp(Hlsl.Min(Hlsl.Max(3.14f, 2), 10), 0, 42)); public void Execute() { @@ -50,5 +50,39 @@ namespace ComputeSharp.Tests buffer[7] = Combo; } } + + [CombinatorialTestMethod] + [AllDevices] + public void GlobalVariable(Device device) + { + using ReadWriteBuffer buffer = device.Get().AllocateReadWriteBuffer(32); + + device.Get().For(32, new GlobalVariableShader(buffer)); + + int[] results = buffer.ToArray(); + + for (int i = 0; i < results.Length; i++) + { + Assert.AreEqual(results[i], i); + } + } + + [AutoConstructor] + internal readonly partial struct GlobalVariableShader : IComputeShader + { + public readonly ReadWriteBuffer buffer; + + static int total; + + public void Execute() + { + for (int i = 0; i < ThreadIds.X; i++) + { + total++; + } + + buffer[ThreadIds.X] = total; + } + } } }