Unify all undefined data for HLSL primitive types
このコミットが含まれているのは:
1 親
98397f9390
コミット
0af7f53ae7
26ファイル変更
+5173
-5702
検索条件に一致するファイルはありません
@@ -48,6 +48,7 @@
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int3.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int3.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int4.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int4.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" Link="ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Internals\UndefinedData.cs" Link="ComputeSharp.Core\Primitives\Internals\UndefinedData.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt2.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt2.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt3.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt3.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt4.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt4.cs" />
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
@@ -14,11 +11,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Bool2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int x;
|
||||
|
||||
@@ -31,7 +23,7 @@ public unsafe partial struct Bool2
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref bool this[int i] => ref *(bool*)UndefinedData;
|
||||
public ref bool this[int i] => ref *(bool*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="Bool2"/> value with all components set to <see langword="false"/>.
|
||||
@@ -70,196 +62,196 @@ public unsafe partial struct Bool2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool2 XX => ref *(Bool2*)UndefinedData;
|
||||
public readonly ref readonly Bool2 XX => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 XY => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 XY => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 YX => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 YX => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool2 YY => ref *(Bool2*)UndefinedData;
|
||||
public readonly ref readonly Bool2 YY => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 XXX => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 XXX => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 XXY => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 XXY => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 XYX => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 XYX => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 XYY => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 XYY => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 YXX => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 YXX => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 YXY => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 YXY => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 YYX => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 YYX => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 YYY => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 YYY => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XXXX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XXXX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XXXY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XXXY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XXYX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XXYX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XXYY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XXYY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XYXX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XYXX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XYXY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XYXY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XYYX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XYYX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 XYYY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 XYYY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YXXX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YXXX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YXXY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YXXY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YXYX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YXYX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YXYY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YXYY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YYXX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YYXX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YYXY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YYXY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YYYX => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YYYX => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 YYYY => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 YYYY => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>R</c> component.
|
||||
@@ -278,196 +270,196 @@ public unsafe partial struct Bool2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool2 RR => ref *(Bool2*)UndefinedData;
|
||||
public readonly ref readonly Bool2 RR => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 RG => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 RG => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 GR => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 GR => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool2 GG => ref *(Bool2*)UndefinedData;
|
||||
public readonly ref readonly Bool2 GG => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 RRR => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 RRR => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 RRG => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 RRG => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 RGR => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 RGR => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 RGG => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 RGG => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 GRR => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 GRR => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 GRG => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 GRG => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 GGR => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 GGR => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool3 GGG => ref *(Bool3*)UndefinedData;
|
||||
public readonly ref readonly Bool3 GGG => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RRRR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RRRR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RRRG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RRRG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RRGR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RRGR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RRGG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RRGG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RGRR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RGRR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RGRG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RGRG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RGGR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RGGR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 RGGG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 RGGG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GRRR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GRRR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GRRG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GRRG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GRGR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GRGR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GRGG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GRGG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GGRR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GGRR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GGRG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GGRG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GGGR => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GGGR => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Bool4 GGGG => ref *(Bool4*)UndefinedData;
|
||||
public readonly ref readonly Bool4 GGGG => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
#if !SOURCE_GENERATOR
|
||||
|
||||
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -1,9 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -13,11 +10,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)]
|
||||
public unsafe partial struct Bool1x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x1), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -39,7 +31,7 @@ public unsafe partial struct Bool1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData;
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x1"/> instance.
|
||||
@@ -51,7 +43,7 @@ public unsafe partial struct Bool1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x1"/> instance.
|
||||
@@ -64,7 +56,7 @@ public unsafe partial struct Bool1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x1"/> instance.
|
||||
@@ -78,7 +70,7 @@ public unsafe partial struct Bool1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -156,11 +148,6 @@ public unsafe partial struct Bool1x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Bool1x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x2), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -187,7 +174,7 @@ public unsafe partial struct Bool1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x2"/> instance.
|
||||
@@ -199,7 +186,7 @@ public unsafe partial struct Bool1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x2"/> instance.
|
||||
@@ -212,7 +199,7 @@ public unsafe partial struct Bool1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x2"/> instance.
|
||||
@@ -226,7 +213,7 @@ public unsafe partial struct Bool1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -317,11 +304,6 @@ public unsafe partial struct Bool1x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct Bool1x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x3), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -353,7 +335,7 @@ public unsafe partial struct Bool1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x3"/> instance.
|
||||
@@ -365,7 +347,7 @@ public unsafe partial struct Bool1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x3"/> instance.
|
||||
@@ -378,7 +360,7 @@ public unsafe partial struct Bool1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x3"/> instance.
|
||||
@@ -392,7 +374,7 @@ public unsafe partial struct Bool1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -490,11 +472,6 @@ public unsafe partial struct Bool1x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Bool1x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool1x4), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -531,7 +508,7 @@ public unsafe partial struct Bool1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x4"/> instance.
|
||||
@@ -543,7 +520,7 @@ public unsafe partial struct Bool1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x4"/> instance.
|
||||
@@ -556,7 +533,7 @@ public unsafe partial struct Bool1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool1x4"/> instance.
|
||||
@@ -570,7 +547,7 @@ public unsafe partial struct Bool1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -675,11 +652,6 @@ public unsafe partial struct Bool1x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Bool2x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x1), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -706,7 +678,7 @@ public unsafe partial struct Bool2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData;
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x1"/> instance.
|
||||
@@ -718,7 +690,7 @@ public unsafe partial struct Bool2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x1"/> instance.
|
||||
@@ -731,7 +703,7 @@ public unsafe partial struct Bool2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x1"/> instance.
|
||||
@@ -745,7 +717,7 @@ public unsafe partial struct Bool2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -836,11 +808,6 @@ public unsafe partial struct Bool2x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Bool2x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x2), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -890,7 +857,7 @@ public unsafe partial struct Bool2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x2"/> instance.
|
||||
@@ -902,7 +869,7 @@ public unsafe partial struct Bool2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x2"/> instance.
|
||||
@@ -915,7 +882,7 @@ public unsafe partial struct Bool2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x2"/> instance.
|
||||
@@ -929,7 +896,7 @@ public unsafe partial struct Bool2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -1028,11 +995,6 @@ public unsafe partial struct Bool2x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct Bool2x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x3), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -1094,7 +1056,7 @@ public unsafe partial struct Bool2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x3"/> instance.
|
||||
@@ -1106,7 +1068,7 @@ public unsafe partial struct Bool2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x3"/> instance.
|
||||
@@ -1119,7 +1081,7 @@ public unsafe partial struct Bool2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x3"/> instance.
|
||||
@@ -1133,7 +1095,7 @@ public unsafe partial struct Bool2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -1246,11 +1208,6 @@ public unsafe partial struct Bool2x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct Bool2x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2x4), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -1324,7 +1281,7 @@ public unsafe partial struct Bool2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x4"/> instance.
|
||||
@@ -1336,7 +1293,7 @@ public unsafe partial struct Bool2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x4"/> instance.
|
||||
@@ -1349,7 +1306,7 @@ public unsafe partial struct Bool2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool2x4"/> instance.
|
||||
@@ -1363,7 +1320,7 @@ public unsafe partial struct Bool2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -1490,11 +1447,6 @@ public unsafe partial struct Bool2x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct Bool3x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x1), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -1526,7 +1478,7 @@ public unsafe partial struct Bool3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData;
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x1"/> instance.
|
||||
@@ -1538,7 +1490,7 @@ public unsafe partial struct Bool3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x1"/> instance.
|
||||
@@ -1551,7 +1503,7 @@ public unsafe partial struct Bool3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x1"/> instance.
|
||||
@@ -1565,7 +1517,7 @@ public unsafe partial struct Bool3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -1663,11 +1615,6 @@ public unsafe partial struct Bool3x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct Bool3x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x2), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -1730,7 +1677,7 @@ public unsafe partial struct Bool3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x2"/> instance.
|
||||
@@ -1742,7 +1689,7 @@ public unsafe partial struct Bool3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x2"/> instance.
|
||||
@@ -1755,7 +1702,7 @@ public unsafe partial struct Bool3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x2"/> instance.
|
||||
@@ -1769,7 +1716,7 @@ public unsafe partial struct Bool3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -1882,11 +1829,6 @@ public unsafe partial struct Bool3x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)]
|
||||
public unsafe partial struct Bool3x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x3), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -1967,7 +1909,7 @@ public unsafe partial struct Bool3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x3"/> instance.
|
||||
@@ -1979,7 +1921,7 @@ public unsafe partial struct Bool3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x3"/> instance.
|
||||
@@ -1992,7 +1934,7 @@ public unsafe partial struct Bool3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x3"/> instance.
|
||||
@@ -2006,7 +1948,7 @@ public unsafe partial struct Bool3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -2140,11 +2082,6 @@ public unsafe partial struct Bool3x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct Bool3x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3x4), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -2243,7 +2180,7 @@ public unsafe partial struct Bool3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x4"/> instance.
|
||||
@@ -2255,7 +2192,7 @@ public unsafe partial struct Bool3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x4"/> instance.
|
||||
@@ -2268,7 +2205,7 @@ public unsafe partial struct Bool3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool3x4"/> instance.
|
||||
@@ -2282,7 +2219,7 @@ public unsafe partial struct Bool3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -2437,11 +2374,6 @@ public unsafe partial struct Bool3x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Bool4x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x1), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -2478,7 +2410,7 @@ public unsafe partial struct Bool4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData;
|
||||
public ref bool this[int row] => ref *(bool*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x1"/> instance.
|
||||
@@ -2490,7 +2422,7 @@ public unsafe partial struct Bool4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x1"/> instance.
|
||||
@@ -2503,7 +2435,7 @@ public unsafe partial struct Bool4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x1"/> instance.
|
||||
@@ -2517,7 +2449,7 @@ public unsafe partial struct Bool4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -2622,11 +2554,6 @@ public unsafe partial struct Bool4x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct Bool4x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x2), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -2702,7 +2629,7 @@ public unsafe partial struct Bool4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[int row] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x2"/> instance.
|
||||
@@ -2714,7 +2641,7 @@ public unsafe partial struct Bool4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x2"/> instance.
|
||||
@@ -2727,7 +2654,7 @@ public unsafe partial struct Bool4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x2"/> instance.
|
||||
@@ -2741,7 +2668,7 @@ public unsafe partial struct Bool4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -2868,11 +2795,6 @@ public unsafe partial struct Bool4x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct Bool4x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x3), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -2972,7 +2894,7 @@ public unsafe partial struct Bool4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[int row] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x3"/> instance.
|
||||
@@ -2984,7 +2906,7 @@ public unsafe partial struct Bool4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x3"/> instance.
|
||||
@@ -2997,7 +2919,7 @@ public unsafe partial struct Bool4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x3"/> instance.
|
||||
@@ -3011,7 +2933,7 @@ public unsafe partial struct Bool4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
@@ -3166,11 +3088,6 @@ public unsafe partial struct Bool4x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)]
|
||||
public unsafe partial struct Bool4x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool4x4), sizeof(Bool4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -3294,7 +3211,7 @@ public unsafe partial struct Bool4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[int row] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x4"/> instance.
|
||||
@@ -3306,7 +3223,7 @@ public unsafe partial struct Bool4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData;
|
||||
public ref Bool2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Bool2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x4"/> instance.
|
||||
@@ -3319,7 +3236,7 @@ public unsafe partial struct Bool4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData;
|
||||
public ref Bool3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Bool3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Bool4x4"/> instance.
|
||||
@@ -3333,7 +3250,7 @@ public unsafe partial struct Bool4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData;
|
||||
public ref Bool4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Bool4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the component at position [1, 1].
|
||||
|
||||
@@ -3,9 +3,6 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
@@ -16,11 +13,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)]
|
||||
public unsafe partial struct Double2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double x;
|
||||
|
||||
@@ -33,7 +25,7 @@ public unsafe partial struct Double2
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref double this[int i] => ref *(double*)UndefinedData;
|
||||
public ref double this[int i] => ref *(double*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="Double2"/> value with all components set to 0.
|
||||
@@ -72,196 +64,196 @@ public unsafe partial struct Double2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double2 XX => ref *(Double2*)UndefinedData;
|
||||
public readonly ref readonly Double2 XX => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 XY => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 XY => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 YX => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 YX => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double2 YY => ref *(Double2*)UndefinedData;
|
||||
public readonly ref readonly Double2 YY => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 XXX => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 XXX => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 XXY => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 XXY => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 XYX => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 XYX => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 XYY => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 XYY => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 YXX => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 YXX => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 YXY => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 YXY => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 YYX => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 YYX => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 YYY => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 YYY => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XXXX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XXXX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XXXY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XXXY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XXYX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XXYX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XXYY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XXYY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XYXX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XYXX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XYXY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XYXY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XYYX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XYYX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 XYYY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 XYYY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YXXX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YXXX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YXXY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YXXY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YXYX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YXYX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YXYY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YXYY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YYXX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YYXX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YYXY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YYXY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YYYX => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YYYX => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 YYYY => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 YYYY => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>R</c> component.
|
||||
@@ -280,196 +272,196 @@ public unsafe partial struct Double2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double2 RR => ref *(Double2*)UndefinedData;
|
||||
public readonly ref readonly Double2 RR => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 RG => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 RG => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 GR => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 GR => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double2 GG => ref *(Double2*)UndefinedData;
|
||||
public readonly ref readonly Double2 GG => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 RRR => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 RRR => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 RRG => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 RRG => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 RGR => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 RGR => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 RGG => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 RGG => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 GRR => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 GRR => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 GRG => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 GRG => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 GGR => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 GGR => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double3 GGG => ref *(Double3*)UndefinedData;
|
||||
public readonly ref readonly Double3 GGG => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RRRR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RRRR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RRRG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RRRG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RRGR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RRGR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RRGG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RRGG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RGRR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RGRR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RGRG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RGRG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RGGR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RGGR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 RGGG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 RGGG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GRRR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GRRR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GRRG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GRRG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GRGR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GRGR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GRGG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GRGG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GGRR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GGRR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GGRG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GGRG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GGGR => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GGGR => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Double4 GGGG => ref *(Double4*)UndefinedData;
|
||||
public readonly ref readonly Double4 GGGG => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
#if !SOURCE_GENERATOR
|
||||
|
||||
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -1,9 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -13,11 +10,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 8)]
|
||||
public unsafe partial struct Double1x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x1), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -39,7 +31,7 @@ public unsafe partial struct Double1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref double this[int row] => ref *(double*)UndefinedData;
|
||||
public ref double this[int row] => ref *(double*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x1"/> instance.
|
||||
@@ -51,7 +43,7 @@ public unsafe partial struct Double1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x1"/> instance.
|
||||
@@ -64,7 +56,7 @@ public unsafe partial struct Double1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x1"/> instance.
|
||||
@@ -78,7 +70,7 @@ public unsafe partial struct Double1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -210,11 +202,6 @@ public unsafe partial struct Double1x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)]
|
||||
public unsafe partial struct Double1x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x2), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -241,7 +228,7 @@ public unsafe partial struct Double1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x2"/> instance.
|
||||
@@ -253,7 +240,7 @@ public unsafe partial struct Double1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x2"/> instance.
|
||||
@@ -266,7 +253,7 @@ public unsafe partial struct Double1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x2"/> instance.
|
||||
@@ -280,7 +267,7 @@ public unsafe partial struct Double1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -425,11 +412,6 @@ public unsafe partial struct Double1x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)]
|
||||
public unsafe partial struct Double1x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x3), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -461,7 +443,7 @@ public unsafe partial struct Double1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x3"/> instance.
|
||||
@@ -473,7 +455,7 @@ public unsafe partial struct Double1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x3"/> instance.
|
||||
@@ -486,7 +468,7 @@ public unsafe partial struct Double1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x3"/> instance.
|
||||
@@ -500,7 +482,7 @@ public unsafe partial struct Double1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -652,11 +634,6 @@ public unsafe partial struct Double1x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)]
|
||||
public unsafe partial struct Double1x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double1x4), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -693,7 +670,7 @@ public unsafe partial struct Double1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x4"/> instance.
|
||||
@@ -705,7 +682,7 @@ public unsafe partial struct Double1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x4"/> instance.
|
||||
@@ -718,7 +695,7 @@ public unsafe partial struct Double1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double1x4"/> instance.
|
||||
@@ -732,7 +709,7 @@ public unsafe partial struct Double1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -891,11 +868,6 @@ public unsafe partial struct Double1x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)]
|
||||
public unsafe partial struct Double2x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x1), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -922,7 +894,7 @@ public unsafe partial struct Double2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref double this[int row] => ref *(double*)UndefinedData;
|
||||
public ref double this[int row] => ref *(double*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x1"/> instance.
|
||||
@@ -934,7 +906,7 @@ public unsafe partial struct Double2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x1"/> instance.
|
||||
@@ -947,7 +919,7 @@ public unsafe partial struct Double2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x1"/> instance.
|
||||
@@ -961,7 +933,7 @@ public unsafe partial struct Double2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -1106,11 +1078,6 @@ public unsafe partial struct Double2x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)]
|
||||
public unsafe partial struct Double2x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x2), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -1160,7 +1127,7 @@ public unsafe partial struct Double2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x2"/> instance.
|
||||
@@ -1172,7 +1139,7 @@ public unsafe partial struct Double2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x2"/> instance.
|
||||
@@ -1185,7 +1152,7 @@ public unsafe partial struct Double2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x2"/> instance.
|
||||
@@ -1199,7 +1166,7 @@ public unsafe partial struct Double2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -1352,11 +1319,6 @@ public unsafe partial struct Double2x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)]
|
||||
public unsafe partial struct Double2x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x3), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -1418,7 +1380,7 @@ public unsafe partial struct Double2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x3"/> instance.
|
||||
@@ -1430,7 +1392,7 @@ public unsafe partial struct Double2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x3"/> instance.
|
||||
@@ -1443,7 +1405,7 @@ public unsafe partial struct Double2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x3"/> instance.
|
||||
@@ -1457,7 +1419,7 @@ public unsafe partial struct Double2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -1624,11 +1586,6 @@ public unsafe partial struct Double2x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 8)]
|
||||
public unsafe partial struct Double2x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2x4), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -1702,7 +1659,7 @@ public unsafe partial struct Double2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x4"/> instance.
|
||||
@@ -1714,7 +1671,7 @@ public unsafe partial struct Double2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x4"/> instance.
|
||||
@@ -1727,7 +1684,7 @@ public unsafe partial struct Double2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double2x4"/> instance.
|
||||
@@ -1741,7 +1698,7 @@ public unsafe partial struct Double2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -1922,11 +1879,6 @@ public unsafe partial struct Double2x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)]
|
||||
public unsafe partial struct Double3x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x1), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -1958,7 +1910,7 @@ public unsafe partial struct Double3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref double this[int row] => ref *(double*)UndefinedData;
|
||||
public ref double this[int row] => ref *(double*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x1"/> instance.
|
||||
@@ -1970,7 +1922,7 @@ public unsafe partial struct Double3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x1"/> instance.
|
||||
@@ -1983,7 +1935,7 @@ public unsafe partial struct Double3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x1"/> instance.
|
||||
@@ -1997,7 +1949,7 @@ public unsafe partial struct Double3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -2149,11 +2101,6 @@ public unsafe partial struct Double3x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)]
|
||||
public unsafe partial struct Double3x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x2), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -2216,7 +2163,7 @@ public unsafe partial struct Double3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x2"/> instance.
|
||||
@@ -2228,7 +2175,7 @@ public unsafe partial struct Double3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x2"/> instance.
|
||||
@@ -2241,7 +2188,7 @@ public unsafe partial struct Double3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x2"/> instance.
|
||||
@@ -2255,7 +2202,7 @@ public unsafe partial struct Double3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -2422,11 +2369,6 @@ public unsafe partial struct Double3x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 72, Pack = 8)]
|
||||
public unsafe partial struct Double3x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x3), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -2507,7 +2449,7 @@ public unsafe partial struct Double3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x3"/> instance.
|
||||
@@ -2519,7 +2461,7 @@ public unsafe partial struct Double3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x3"/> instance.
|
||||
@@ -2532,7 +2474,7 @@ public unsafe partial struct Double3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x3"/> instance.
|
||||
@@ -2546,7 +2488,7 @@ public unsafe partial struct Double3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -2734,11 +2676,6 @@ public unsafe partial struct Double3x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 96, Pack = 8)]
|
||||
public unsafe partial struct Double3x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3x4), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -2837,7 +2774,7 @@ public unsafe partial struct Double3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x4"/> instance.
|
||||
@@ -2849,7 +2786,7 @@ public unsafe partial struct Double3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x4"/> instance.
|
||||
@@ -2862,7 +2799,7 @@ public unsafe partial struct Double3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double3x4"/> instance.
|
||||
@@ -2876,7 +2813,7 @@ public unsafe partial struct Double3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -3085,11 +3022,6 @@ public unsafe partial struct Double3x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)]
|
||||
public unsafe partial struct Double4x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x1), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -3126,7 +3058,7 @@ public unsafe partial struct Double4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref double this[int row] => ref *(double*)UndefinedData;
|
||||
public ref double this[int row] => ref *(double*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x1"/> instance.
|
||||
@@ -3138,7 +3070,7 @@ public unsafe partial struct Double4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x1"/> instance.
|
||||
@@ -3151,7 +3083,7 @@ public unsafe partial struct Double4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x1"/> instance.
|
||||
@@ -3165,7 +3097,7 @@ public unsafe partial struct Double4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -3324,11 +3256,6 @@ public unsafe partial struct Double4x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 8)]
|
||||
public unsafe partial struct Double4x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x2), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -3404,7 +3331,7 @@ public unsafe partial struct Double4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[int row] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x2"/> instance.
|
||||
@@ -3416,7 +3343,7 @@ public unsafe partial struct Double4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x2"/> instance.
|
||||
@@ -3429,7 +3356,7 @@ public unsafe partial struct Double4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x2"/> instance.
|
||||
@@ -3443,7 +3370,7 @@ public unsafe partial struct Double4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -3624,11 +3551,6 @@ public unsafe partial struct Double4x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 96, Pack = 8)]
|
||||
public unsafe partial struct Double4x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x3), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -3728,7 +3650,7 @@ public unsafe partial struct Double4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[int row] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x3"/> instance.
|
||||
@@ -3740,7 +3662,7 @@ public unsafe partial struct Double4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x3"/> instance.
|
||||
@@ -3753,7 +3675,7 @@ public unsafe partial struct Double4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x3"/> instance.
|
||||
@@ -3767,7 +3689,7 @@ public unsafe partial struct Double4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
@@ -3976,11 +3898,6 @@ public unsafe partial struct Double4x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 128, Pack = 8)]
|
||||
public unsafe partial struct Double4x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double4x4), sizeof(Double4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double m11;
|
||||
|
||||
@@ -4104,7 +4021,7 @@ public unsafe partial struct Double4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[int row] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x4"/> instance.
|
||||
@@ -4116,7 +4033,7 @@ public unsafe partial struct Double4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData;
|
||||
public ref Double2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Double2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x4"/> instance.
|
||||
@@ -4129,7 +4046,7 @@ public unsafe partial struct Double4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData;
|
||||
public ref Double3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Double3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Double4x4"/> instance.
|
||||
@@ -4143,7 +4060,7 @@ public unsafe partial struct Double4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData;
|
||||
public ref Double4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Double4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the component at position [1, 1].
|
||||
|
||||
@@ -4,9 +4,6 @@ using System.Globalization;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
@@ -17,11 +14,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Float2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float x;
|
||||
|
||||
@@ -34,7 +26,7 @@ public unsafe partial struct Float2
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref float this[int i] => ref *(float*)UndefinedData;
|
||||
public ref float this[int i] => ref *(float*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="Float2"/> value with all components set to 0.
|
||||
@@ -73,196 +65,196 @@ public unsafe partial struct Float2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float2 XX => ref *(Float2*)UndefinedData;
|
||||
public readonly ref readonly Float2 XX => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 XY => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 XY => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 YX => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 YX => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float2 YY => ref *(Float2*)UndefinedData;
|
||||
public readonly ref readonly Float2 YY => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 XXX => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 XXX => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 XXY => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 XXY => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 XYX => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 XYX => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 XYY => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 XYY => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 YXX => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 YXX => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 YXY => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 YXY => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 YYX => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 YYX => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 YYY => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 YYY => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XXXX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XXXX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XXXY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XXXY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XXYX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XXYX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XXYY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XXYY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XYXX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XYXX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XYXY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XYXY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XYYX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XYYX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 XYYY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 XYYY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YXXX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YXXX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YXXY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YXXY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YXYX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YXYX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YXYY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YXYY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YYXX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YYXX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YYXY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YYXY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YYYX => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YYYX => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 YYYY => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 YYYY => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>R</c> component.
|
||||
@@ -281,196 +273,196 @@ public unsafe partial struct Float2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float2 RR => ref *(Float2*)UndefinedData;
|
||||
public readonly ref readonly Float2 RR => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 RG => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 RG => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 GR => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 GR => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float2 GG => ref *(Float2*)UndefinedData;
|
||||
public readonly ref readonly Float2 GG => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 RRR => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 RRR => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 RRG => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 RRG => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 RGR => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 RGR => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 RGG => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 RGG => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 GRR => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 GRR => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 GRG => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 GRG => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 GGR => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 GGR => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float3 GGG => ref *(Float3*)UndefinedData;
|
||||
public readonly ref readonly Float3 GGG => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RRRR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RRRR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RRRG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RRRG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RRGR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RRGR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RRGG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RRGG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RGRR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RGRR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RGRG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RGRG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RGGR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RGGR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 RGGG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 RGGG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GRRR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GRRR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GRRG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GRRG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GRGR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GRGR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GRGG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GRGG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GGRR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GGRR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GGRG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GGRG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GGGR => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GGGR => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Float4 GGGG => ref *(Float4*)UndefinedData;
|
||||
public readonly ref readonly Float4 GGGG => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
#if !SOURCE_GENERATOR
|
||||
|
||||
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -2,9 +2,6 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -14,11 +11,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)]
|
||||
public unsafe partial struct Float1x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x1), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -40,7 +32,7 @@ public unsafe partial struct Float1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref float this[int row] => ref *(float*)UndefinedData;
|
||||
public ref float this[int row] => ref *(float*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
@@ -52,7 +44,7 @@ public unsafe partial struct Float1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
@@ -65,7 +57,7 @@ public unsafe partial struct Float1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x1"/> instance.
|
||||
@@ -79,7 +71,7 @@ public unsafe partial struct Float1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -229,11 +221,6 @@ public unsafe partial struct Float1x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Float1x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x2), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -260,7 +247,7 @@ public unsafe partial struct Float1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
@@ -272,7 +259,7 @@ public unsafe partial struct Float1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
@@ -285,7 +272,7 @@ public unsafe partial struct Float1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x2"/> instance.
|
||||
@@ -299,7 +286,7 @@ public unsafe partial struct Float1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -546,11 +533,6 @@ public unsafe partial struct Float1x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct Float1x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x3), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -582,7 +564,7 @@ public unsafe partial struct Float1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
@@ -594,7 +576,7 @@ public unsafe partial struct Float1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
@@ -607,7 +589,7 @@ public unsafe partial struct Float1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x3"/> instance.
|
||||
@@ -621,7 +603,7 @@ public unsafe partial struct Float1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -875,11 +857,6 @@ public unsafe partial struct Float1x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Float1x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float1x4), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -916,7 +893,7 @@ public unsafe partial struct Float1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
@@ -928,7 +905,7 @@ public unsafe partial struct Float1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
@@ -941,7 +918,7 @@ public unsafe partial struct Float1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float1x4"/> instance.
|
||||
@@ -955,7 +932,7 @@ public unsafe partial struct Float1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -1216,11 +1193,6 @@ public unsafe partial struct Float1x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Float2x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x1), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -1247,7 +1219,7 @@ public unsafe partial struct Float2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref float this[int row] => ref *(float*)UndefinedData;
|
||||
public ref float this[int row] => ref *(float*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
@@ -1259,7 +1231,7 @@ public unsafe partial struct Float2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
@@ -1272,7 +1244,7 @@ public unsafe partial struct Float2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x1"/> instance.
|
||||
@@ -1286,7 +1258,7 @@ public unsafe partial struct Float2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -1519,11 +1491,6 @@ public unsafe partial struct Float2x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Float2x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x2), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -1573,7 +1540,7 @@ public unsafe partial struct Float2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
@@ -1585,7 +1552,7 @@ public unsafe partial struct Float2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
@@ -1598,7 +1565,7 @@ public unsafe partial struct Float2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x2"/> instance.
|
||||
@@ -1612,7 +1579,7 @@ public unsafe partial struct Float2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -1783,11 +1750,6 @@ public unsafe partial struct Float2x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct Float2x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x3), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -1849,7 +1811,7 @@ public unsafe partial struct Float2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
@@ -1861,7 +1823,7 @@ public unsafe partial struct Float2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
@@ -1874,7 +1836,7 @@ public unsafe partial struct Float2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x3"/> instance.
|
||||
@@ -1888,7 +1850,7 @@ public unsafe partial struct Float2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -2157,11 +2119,6 @@ public unsafe partial struct Float2x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct Float2x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2x4), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -2235,7 +2192,7 @@ public unsafe partial struct Float2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
@@ -2247,7 +2204,7 @@ public unsafe partial struct Float2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
@@ -2260,7 +2217,7 @@ public unsafe partial struct Float2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float2x4"/> instance.
|
||||
@@ -2274,7 +2231,7 @@ public unsafe partial struct Float2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -2557,11 +2514,6 @@ public unsafe partial struct Float2x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct Float3x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x1), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -2593,7 +2545,7 @@ public unsafe partial struct Float3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref float this[int row] => ref *(float*)UndefinedData;
|
||||
public ref float this[int row] => ref *(float*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
@@ -2605,7 +2557,7 @@ public unsafe partial struct Float3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
@@ -2618,7 +2570,7 @@ public unsafe partial struct Float3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x1"/> instance.
|
||||
@@ -2632,7 +2584,7 @@ public unsafe partial struct Float3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -2872,11 +2824,6 @@ public unsafe partial struct Float3x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct Float3x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x2), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -2939,7 +2886,7 @@ public unsafe partial struct Float3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
@@ -2951,7 +2898,7 @@ public unsafe partial struct Float3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
@@ -2964,7 +2911,7 @@ public unsafe partial struct Float3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x2"/> instance.
|
||||
@@ -2978,7 +2925,7 @@ public unsafe partial struct Float3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -3247,11 +3194,6 @@ public unsafe partial struct Float3x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)]
|
||||
public unsafe partial struct Float3x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x3), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -3332,7 +3274,7 @@ public unsafe partial struct Float3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
@@ -3344,7 +3286,7 @@ public unsafe partial struct Float3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
@@ -3357,7 +3299,7 @@ public unsafe partial struct Float3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x3"/> instance.
|
||||
@@ -3371,7 +3313,7 @@ public unsafe partial struct Float3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -3577,11 +3519,6 @@ public unsafe partial struct Float3x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct Float3x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3x4), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -3680,7 +3617,7 @@ public unsafe partial struct Float3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
@@ -3692,7 +3629,7 @@ public unsafe partial struct Float3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
@@ -3705,7 +3642,7 @@ public unsafe partial struct Float3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float3x4"/> instance.
|
||||
@@ -3719,7 +3656,7 @@ public unsafe partial struct Float3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -4030,11 +3967,6 @@ public unsafe partial struct Float3x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Float4x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x1), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -4071,7 +4003,7 @@ public unsafe partial struct Float4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref float this[int row] => ref *(float*)UndefinedData;
|
||||
public ref float this[int row] => ref *(float*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
@@ -4083,7 +4015,7 @@ public unsafe partial struct Float4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
@@ -4096,7 +4028,7 @@ public unsafe partial struct Float4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x1"/> instance.
|
||||
@@ -4110,7 +4042,7 @@ public unsafe partial struct Float4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -4357,11 +4289,6 @@ public unsafe partial struct Float4x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct Float4x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x2), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -4437,7 +4364,7 @@ public unsafe partial struct Float4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[int row] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
@@ -4449,7 +4376,7 @@ public unsafe partial struct Float4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
@@ -4462,7 +4389,7 @@ public unsafe partial struct Float4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x2"/> instance.
|
||||
@@ -4476,7 +4403,7 @@ public unsafe partial struct Float4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -4759,11 +4686,6 @@ public unsafe partial struct Float4x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct Float4x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x3), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -4863,7 +4785,7 @@ public unsafe partial struct Float4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[int row] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
@@ -4875,7 +4797,7 @@ public unsafe partial struct Float4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
@@ -4888,7 +4810,7 @@ public unsafe partial struct Float4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x3"/> instance.
|
||||
@@ -4902,7 +4824,7 @@ public unsafe partial struct Float4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
@@ -5213,11 +5135,6 @@ public unsafe partial struct Float4x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)]
|
||||
public unsafe partial struct Float4x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float4x4), sizeof(Float4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float m11;
|
||||
|
||||
@@ -5341,7 +5258,7 @@ public unsafe partial struct Float4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[int row] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
@@ -5353,7 +5270,7 @@ public unsafe partial struct Float4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData;
|
||||
public ref Float2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Float2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
@@ -5366,7 +5283,7 @@ public unsafe partial struct Float4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData;
|
||||
public ref Float3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Float3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Float4x4"/> instance.
|
||||
@@ -5380,7 +5297,7 @@ public unsafe partial struct Float4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData;
|
||||
public ref Float4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Float4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the component at position [1, 1].
|
||||
|
||||
@@ -4,9 +4,6 @@ using System.Globalization;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
@@ -17,11 +14,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Int2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int x;
|
||||
|
||||
@@ -34,7 +26,7 @@ public unsafe partial struct Int2
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref int this[int i] => ref *(int*)UndefinedData;
|
||||
public ref int this[int i] => ref *(int*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="Int2"/> value with all components set to 0.
|
||||
@@ -73,196 +65,196 @@ public unsafe partial struct Int2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int2 XX => ref *(Int2*)UndefinedData;
|
||||
public readonly ref readonly Int2 XX => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 XY => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 XY => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 YX => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 YX => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int2 YY => ref *(Int2*)UndefinedData;
|
||||
public readonly ref readonly Int2 YY => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 XXX => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 XXX => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 XXY => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 XXY => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 XYX => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 XYX => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 XYY => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 XYY => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 YXX => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 YXX => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 YXY => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 YXY => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 YYX => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 YYX => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 YYY => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 YYY => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XXXX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XXXX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XXXY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XXXY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XXYX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XXYX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XXYY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XXYY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XYXX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XYXX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XYXY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XYXY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XYYX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XYYX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 XYYY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 XYYY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YXXX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YXXX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YXXY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YXXY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YXYX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YXYX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YXYY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YXYY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YYXX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YYXX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YYXY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YYXY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YYYX => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YYYX => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 YYYY => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 YYYY => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>R</c> component.
|
||||
@@ -281,196 +273,196 @@ public unsafe partial struct Int2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int2 RR => ref *(Int2*)UndefinedData;
|
||||
public readonly ref readonly Int2 RR => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 RG => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 RG => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 GR => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 GR => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int2 GG => ref *(Int2*)UndefinedData;
|
||||
public readonly ref readonly Int2 GG => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 RRR => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 RRR => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 RRG => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 RRG => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 RGR => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 RGR => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 RGG => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 RGG => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 GRR => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 GRR => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 GRG => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 GRG => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 GGR => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 GGR => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int3 GGG => ref *(Int3*)UndefinedData;
|
||||
public readonly ref readonly Int3 GGG => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RRRR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RRRR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RRRG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RRRG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RRGR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RRGR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RRGG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RRGG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RGRR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RGRR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RGRG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RGRG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RGGR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RGGR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 RGGG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 RGGG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GRRR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GRRR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GRRG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GRRG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GRGR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GRGR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GRGG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GRGG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GGRR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GGRR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GGRG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GGRG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GGGR => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GGGR => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly Int4 GGGG => ref *(Int4*)UndefinedData;
|
||||
public readonly ref readonly Int4 GGGG => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
#if !SOURCE_GENERATOR
|
||||
|
||||
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -2,9 +2,6 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Core.Intrinsics.Attributes;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -14,11 +11,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)]
|
||||
public unsafe partial struct Int1x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x1), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -40,7 +32,7 @@ public unsafe partial struct Int1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref int this[int row] => ref *(int*)UndefinedData;
|
||||
public ref int this[int row] => ref *(int*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x1"/> instance.
|
||||
@@ -52,7 +44,7 @@ public unsafe partial struct Int1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x1"/> instance.
|
||||
@@ -65,7 +57,7 @@ public unsafe partial struct Int1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x1"/> instance.
|
||||
@@ -79,7 +71,7 @@ public unsafe partial struct Int1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -327,11 +319,6 @@ public unsafe partial struct Int1x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Int1x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x2), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -358,7 +345,7 @@ public unsafe partial struct Int1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x2"/> instance.
|
||||
@@ -370,7 +357,7 @@ public unsafe partial struct Int1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x2"/> instance.
|
||||
@@ -383,7 +370,7 @@ public unsafe partial struct Int1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x2"/> instance.
|
||||
@@ -397,7 +384,7 @@ public unsafe partial struct Int1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -742,11 +729,6 @@ public unsafe partial struct Int1x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct Int1x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x3), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -778,7 +760,7 @@ public unsafe partial struct Int1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x3"/> instance.
|
||||
@@ -790,7 +772,7 @@ public unsafe partial struct Int1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x3"/> instance.
|
||||
@@ -803,7 +785,7 @@ public unsafe partial struct Int1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x3"/> instance.
|
||||
@@ -817,7 +799,7 @@ public unsafe partial struct Int1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -1169,11 +1151,6 @@ public unsafe partial struct Int1x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Int1x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int1x4), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -1210,7 +1187,7 @@ public unsafe partial struct Int1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x4"/> instance.
|
||||
@@ -1222,7 +1199,7 @@ public unsafe partial struct Int1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x4"/> instance.
|
||||
@@ -1235,7 +1212,7 @@ public unsafe partial struct Int1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int1x4"/> instance.
|
||||
@@ -1249,7 +1226,7 @@ public unsafe partial struct Int1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -1608,11 +1585,6 @@ public unsafe partial struct Int1x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct Int2x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x1), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -1639,7 +1611,7 @@ public unsafe partial struct Int2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref int this[int row] => ref *(int*)UndefinedData;
|
||||
public ref int this[int row] => ref *(int*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x1"/> instance.
|
||||
@@ -1651,7 +1623,7 @@ public unsafe partial struct Int2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x1"/> instance.
|
||||
@@ -1664,7 +1636,7 @@ public unsafe partial struct Int2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x1"/> instance.
|
||||
@@ -1678,7 +1650,7 @@ public unsafe partial struct Int2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -2009,11 +1981,6 @@ public unsafe partial struct Int2x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Int2x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x2), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -2063,7 +2030,7 @@ public unsafe partial struct Int2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x2"/> instance.
|
||||
@@ -2075,7 +2042,7 @@ public unsafe partial struct Int2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x2"/> instance.
|
||||
@@ -2088,7 +2055,7 @@ public unsafe partial struct Int2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x2"/> instance.
|
||||
@@ -2102,7 +2069,7 @@ public unsafe partial struct Int2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -2371,11 +2338,6 @@ public unsafe partial struct Int2x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct Int2x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x3), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -2437,7 +2399,7 @@ public unsafe partial struct Int2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x3"/> instance.
|
||||
@@ -2449,7 +2411,7 @@ public unsafe partial struct Int2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x3"/> instance.
|
||||
@@ -2462,7 +2424,7 @@ public unsafe partial struct Int2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x3"/> instance.
|
||||
@@ -2476,7 +2438,7 @@ public unsafe partial struct Int2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -2843,11 +2805,6 @@ public unsafe partial struct Int2x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct Int2x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2x4), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -2921,7 +2878,7 @@ public unsafe partial struct Int2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x4"/> instance.
|
||||
@@ -2933,7 +2890,7 @@ public unsafe partial struct Int2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x4"/> instance.
|
||||
@@ -2946,7 +2903,7 @@ public unsafe partial struct Int2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int2x4"/> instance.
|
||||
@@ -2960,7 +2917,7 @@ public unsafe partial struct Int2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -3341,11 +3298,6 @@ public unsafe partial struct Int2x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct Int3x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x1), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -3377,7 +3329,7 @@ public unsafe partial struct Int3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref int this[int row] => ref *(int*)UndefinedData;
|
||||
public ref int this[int row] => ref *(int*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x1"/> instance.
|
||||
@@ -3389,7 +3341,7 @@ public unsafe partial struct Int3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x1"/> instance.
|
||||
@@ -3402,7 +3354,7 @@ public unsafe partial struct Int3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x1"/> instance.
|
||||
@@ -3416,7 +3368,7 @@ public unsafe partial struct Int3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -3754,11 +3706,6 @@ public unsafe partial struct Int3x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct Int3x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x2), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -3821,7 +3768,7 @@ public unsafe partial struct Int3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x2"/> instance.
|
||||
@@ -3833,7 +3780,7 @@ public unsafe partial struct Int3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x2"/> instance.
|
||||
@@ -3846,7 +3793,7 @@ public unsafe partial struct Int3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x2"/> instance.
|
||||
@@ -3860,7 +3807,7 @@ public unsafe partial struct Int3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -4227,11 +4174,6 @@ public unsafe partial struct Int3x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)]
|
||||
public unsafe partial struct Int3x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x3), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -4312,7 +4254,7 @@ public unsafe partial struct Int3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x3"/> instance.
|
||||
@@ -4324,7 +4266,7 @@ public unsafe partial struct Int3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x3"/> instance.
|
||||
@@ -4337,7 +4279,7 @@ public unsafe partial struct Int3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x3"/> instance.
|
||||
@@ -4351,7 +4293,7 @@ public unsafe partial struct Int3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -4655,11 +4597,6 @@ public unsafe partial struct Int3x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct Int3x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3x4), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -4758,7 +4695,7 @@ public unsafe partial struct Int3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x4"/> instance.
|
||||
@@ -4770,7 +4707,7 @@ public unsafe partial struct Int3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x4"/> instance.
|
||||
@@ -4783,7 +4720,7 @@ public unsafe partial struct Int3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int3x4"/> instance.
|
||||
@@ -4797,7 +4734,7 @@ public unsafe partial struct Int3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -5206,11 +5143,6 @@ public unsafe partial struct Int3x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct Int4x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x1), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -5247,7 +5179,7 @@ public unsafe partial struct Int4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref int this[int row] => ref *(int*)UndefinedData;
|
||||
public ref int this[int row] => ref *(int*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x1"/> instance.
|
||||
@@ -5259,7 +5191,7 @@ public unsafe partial struct Int4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x1"/> instance.
|
||||
@@ -5272,7 +5204,7 @@ public unsafe partial struct Int4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x1"/> instance.
|
||||
@@ -5286,7 +5218,7 @@ public unsafe partial struct Int4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -5631,11 +5563,6 @@ public unsafe partial struct Int4x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct Int4x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x2), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -5711,7 +5638,7 @@ public unsafe partial struct Int4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[int row] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x2"/> instance.
|
||||
@@ -5723,7 +5650,7 @@ public unsafe partial struct Int4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x2"/> instance.
|
||||
@@ -5736,7 +5663,7 @@ public unsafe partial struct Int4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x2"/> instance.
|
||||
@@ -5750,7 +5677,7 @@ public unsafe partial struct Int4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -6131,11 +6058,6 @@ public unsafe partial struct Int4x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct Int4x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x3), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -6235,7 +6157,7 @@ public unsafe partial struct Int4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[int row] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x3"/> instance.
|
||||
@@ -6247,7 +6169,7 @@ public unsafe partial struct Int4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x3"/> instance.
|
||||
@@ -6260,7 +6182,7 @@ public unsafe partial struct Int4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x3"/> instance.
|
||||
@@ -6274,7 +6196,7 @@ public unsafe partial struct Int4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
@@ -6683,11 +6605,6 @@ public unsafe partial struct Int4x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)]
|
||||
public unsafe partial struct Int4x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int4x4), sizeof(Int4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int m11;
|
||||
|
||||
@@ -6811,7 +6728,7 @@ public unsafe partial struct Int4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[int row] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x4"/> instance.
|
||||
@@ -6823,7 +6740,7 @@ public unsafe partial struct Int4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData;
|
||||
public ref Int2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(Int2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x4"/> instance.
|
||||
@@ -6836,7 +6753,7 @@ public unsafe partial struct Int4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData;
|
||||
public ref Int3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(Int3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="Int4x4"/> instance.
|
||||
@@ -6850,7 +6767,7 @@ public unsafe partial struct Int4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData;
|
||||
public ref Int4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(Int4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the component at position [1, 1].
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#if NET6_0_OR_GREATER
|
||||
using System.Runtime.CompilerServices;
|
||||
#else
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
namespace ComputeSharp;
|
||||
|
||||
/// <summary>
|
||||
/// A helper class with shared undefined data for all HLSL primitive types.
|
||||
/// This reduces allocations and minimizes reflection metadata kept per type.
|
||||
/// </summary>
|
||||
internal static class UndefinedData
|
||||
{
|
||||
/// <summary>
|
||||
/// The shared memory with undefined data (has size of <see cref="Double4"/>, as it's the maximum needed at once).
|
||||
/// </summary>
|
||||
public static readonly unsafe void* Memory = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UndefinedData), sizeof(Double4));
|
||||
}
|
||||
@@ -18,9 +18,6 @@ using System.Runtime.InteropServices;
|
||||
WriteLine("using ComputeSharp.Core.Intrinsics.Attributes;");
|
||||
}
|
||||
#>
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -50,12 +47,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
|
||||
[StructLayout(LayoutKind.Explicit, Size = <#=(elementSize * rows * columns)#>, Pack = <#=elementSize#>)]
|
||||
public unsafe partial struct <#=fullTypeName#>
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(<#=fullTypeName#>), sizeof(<#=typeName#>4));
|
||||
<#
|
||||
WriteLine("");
|
||||
PushIndent(" ");
|
||||
|
||||
// Generate the private fields
|
||||
@@ -155,7 +147,7 @@ public unsafe partial struct <#=fullTypeName#>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref <#=rowTypeName#> this[int row] => ref *(<#=rowTypeName#>*)UndefinedData;
|
||||
public ref <#=rowTypeName#> this[int row] => ref *(<#=rowTypeName#>*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
@@ -167,7 +159,7 @@ public unsafe partial struct <#=fullTypeName#>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(<#=typeName#>2*)UndefinedData;
|
||||
public ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(<#=typeName#>2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
@@ -180,7 +172,7 @@ public unsafe partial struct <#=fullTypeName#>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(<#=typeName#>3*)UndefinedData;
|
||||
public ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(<#=typeName#>3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
|
||||
@@ -194,7 +186,7 @@ public unsafe partial struct <#=fullTypeName#>
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(<#=typeName#>4*)UndefinedData;
|
||||
public ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(<#=typeName#>4*)UndefinedData.Memory;
|
||||
<#
|
||||
for (int i = 1; i <= rows; i++)
|
||||
for (int j = 1; j <= columns; j++)
|
||||
|
||||
@@ -3,9 +3,6 @@ using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
@@ -16,11 +13,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct UInt2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint x;
|
||||
|
||||
@@ -33,7 +25,7 @@ public unsafe partial struct UInt2
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref uint this[int i] => ref *(uint*)UndefinedData;
|
||||
public ref uint this[int i] => ref *(uint*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="UInt2"/> value with all components set to 0.
|
||||
@@ -72,196 +64,196 @@ public unsafe partial struct UInt2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt2 XX => ref *(UInt2*)UndefinedData;
|
||||
public readonly ref readonly UInt2 XX => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 XY => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 XY => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 YX => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 YX => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt2 YY => ref *(UInt2*)UndefinedData;
|
||||
public readonly ref readonly UInt2 YY => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XXXX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XXXX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XXXY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XXXY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XXYX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XXYX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XXYY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XXYY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XYXX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XYXX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XYXY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XYXY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XYYX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XYYX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 XYYY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 XYYY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YXXX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YXXX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YXXY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YXXY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YXYX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YXYX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YXYY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YXYY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YYXX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YYXX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YYXY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YYXY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YYYX => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YYYX => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 YYYY => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 YYYY => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>R</c> component.
|
||||
@@ -280,196 +272,196 @@ public unsafe partial struct UInt2
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt2 RR => ref *(UInt2*)UndefinedData;
|
||||
public readonly ref readonly UInt2 RR => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 RG => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 RG => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 GR => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 GR => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt2 GG => ref *(UInt2*)UndefinedData;
|
||||
public readonly ref readonly UInt2 GG => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData;
|
||||
public readonly ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RRRR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RRRR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RRRG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RRRG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RRGR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RRGR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RRGG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RRGG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RGRR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RGRR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RGRG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RGRG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RGGR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RGGR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 RGGG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 RGGG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GRRR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GRRR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GRRG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GRRG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GRGR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GRGR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GRGG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GRGG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GGRR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GGRR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GGRG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GGRG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GGGR => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GGGR => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt4"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public readonly ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData;
|
||||
public readonly ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
#if !SOURCE_GENERATOR
|
||||
|
||||
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -1,9 +1,6 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#pragma warning disable CS0660, CS0661
|
||||
|
||||
@@ -13,11 +10,6 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)]
|
||||
public unsafe partial struct UInt1x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x1), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -39,7 +31,7 @@ public unsafe partial struct UInt1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData;
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x1"/> instance.
|
||||
@@ -51,7 +43,7 @@ public unsafe partial struct UInt1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x1"/> instance.
|
||||
@@ -64,7 +56,7 @@ public unsafe partial struct UInt1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x1"/> instance.
|
||||
@@ -78,7 +70,7 @@ public unsafe partial struct UInt1x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -301,11 +293,6 @@ public unsafe partial struct UInt1x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct UInt1x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x2), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -332,7 +319,7 @@ public unsafe partial struct UInt1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x2"/> instance.
|
||||
@@ -344,7 +331,7 @@ public unsafe partial struct UInt1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x2"/> instance.
|
||||
@@ -357,7 +344,7 @@ public unsafe partial struct UInt1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x2"/> instance.
|
||||
@@ -371,7 +358,7 @@ public unsafe partial struct UInt1x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -607,11 +594,6 @@ public unsafe partial struct UInt1x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct UInt1x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x3), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -643,7 +625,7 @@ public unsafe partial struct UInt1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x3"/> instance.
|
||||
@@ -655,7 +637,7 @@ public unsafe partial struct UInt1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x3"/> instance.
|
||||
@@ -668,7 +650,7 @@ public unsafe partial struct UInt1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x3"/> instance.
|
||||
@@ -682,7 +664,7 @@ public unsafe partial struct UInt1x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -925,11 +907,6 @@ public unsafe partial struct UInt1x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct UInt1x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt1x4), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -966,7 +943,7 @@ public unsafe partial struct UInt1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x4"/> instance.
|
||||
@@ -978,7 +955,7 @@ public unsafe partial struct UInt1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x4"/> instance.
|
||||
@@ -991,7 +968,7 @@ public unsafe partial struct UInt1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt1x4"/> instance.
|
||||
@@ -1005,7 +982,7 @@ public unsafe partial struct UInt1x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -1255,11 +1232,6 @@ public unsafe partial struct UInt1x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public unsafe partial struct UInt2x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x1), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -1286,7 +1258,7 @@ public unsafe partial struct UInt2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData;
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x1"/> instance.
|
||||
@@ -1298,7 +1270,7 @@ public unsafe partial struct UInt2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x1"/> instance.
|
||||
@@ -1311,7 +1283,7 @@ public unsafe partial struct UInt2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x1"/> instance.
|
||||
@@ -1325,7 +1297,7 @@ public unsafe partial struct UInt2x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -1561,11 +1533,6 @@ public unsafe partial struct UInt2x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct UInt2x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x2), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -1615,7 +1582,7 @@ public unsafe partial struct UInt2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x2"/> instance.
|
||||
@@ -1627,7 +1594,7 @@ public unsafe partial struct UInt2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x2"/> instance.
|
||||
@@ -1640,7 +1607,7 @@ public unsafe partial struct UInt2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x2"/> instance.
|
||||
@@ -1654,7 +1621,7 @@ public unsafe partial struct UInt2x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -1898,11 +1865,6 @@ public unsafe partial struct UInt2x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct UInt2x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x3), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -1964,7 +1926,7 @@ public unsafe partial struct UInt2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x3"/> instance.
|
||||
@@ -1976,7 +1938,7 @@ public unsafe partial struct UInt2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x3"/> instance.
|
||||
@@ -1989,7 +1951,7 @@ public unsafe partial struct UInt2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x3"/> instance.
|
||||
@@ -2003,7 +1965,7 @@ public unsafe partial struct UInt2x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -2261,11 +2223,6 @@ public unsafe partial struct UInt2x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct UInt2x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2x4), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -2339,7 +2296,7 @@ public unsafe partial struct UInt2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x4"/> instance.
|
||||
@@ -2351,7 +2308,7 @@ public unsafe partial struct UInt2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x4"/> instance.
|
||||
@@ -2364,7 +2321,7 @@ public unsafe partial struct UInt2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt2x4"/> instance.
|
||||
@@ -2378,7 +2335,7 @@ public unsafe partial struct UInt2x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -2650,11 +2607,6 @@ public unsafe partial struct UInt2x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public unsafe partial struct UInt3x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x1), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -2686,7 +2638,7 @@ public unsafe partial struct UInt3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData;
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x1"/> instance.
|
||||
@@ -2698,7 +2650,7 @@ public unsafe partial struct UInt3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x1"/> instance.
|
||||
@@ -2711,7 +2663,7 @@ public unsafe partial struct UInt3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x1"/> instance.
|
||||
@@ -2725,7 +2677,7 @@ public unsafe partial struct UInt3x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -2968,11 +2920,6 @@ public unsafe partial struct UInt3x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 4)]
|
||||
public unsafe partial struct UInt3x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x2), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -3035,7 +2982,7 @@ public unsafe partial struct UInt3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x2"/> instance.
|
||||
@@ -3047,7 +2994,7 @@ public unsafe partial struct UInt3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x2"/> instance.
|
||||
@@ -3060,7 +3007,7 @@ public unsafe partial struct UInt3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x2"/> instance.
|
||||
@@ -3074,7 +3021,7 @@ public unsafe partial struct UInt3x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -3332,11 +3279,6 @@ public unsafe partial struct UInt3x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)]
|
||||
public unsafe partial struct UInt3x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x3), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -3417,7 +3359,7 @@ public unsafe partial struct UInt3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x3"/> instance.
|
||||
@@ -3429,7 +3371,7 @@ public unsafe partial struct UInt3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x3"/> instance.
|
||||
@@ -3442,7 +3384,7 @@ public unsafe partial struct UInt3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x3"/> instance.
|
||||
@@ -3456,7 +3398,7 @@ public unsafe partial struct UInt3x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -3735,11 +3677,6 @@ public unsafe partial struct UInt3x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct UInt3x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3x4), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -3838,7 +3775,7 @@ public unsafe partial struct UInt3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x4"/> instance.
|
||||
@@ -3850,7 +3787,7 @@ public unsafe partial struct UInt3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x4"/> instance.
|
||||
@@ -3863,7 +3800,7 @@ public unsafe partial struct UInt3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt3x4"/> instance.
|
||||
@@ -3877,7 +3814,7 @@ public unsafe partial struct UInt3x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -4177,11 +4114,6 @@ public unsafe partial struct UInt3x4
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)]
|
||||
public unsafe partial struct UInt4x1
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x1), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -4218,7 +4150,7 @@ public unsafe partial struct UInt4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData;
|
||||
public ref uint this[int row] => ref *(uint*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x1"/> instance.
|
||||
@@ -4230,7 +4162,7 @@ public unsafe partial struct UInt4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x1"/> instance.
|
||||
@@ -4243,7 +4175,7 @@ public unsafe partial struct UInt4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x1"/> instance.
|
||||
@@ -4257,7 +4189,7 @@ public unsafe partial struct UInt4x1
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -4507,11 +4439,6 @@ public unsafe partial struct UInt4x1
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)]
|
||||
public unsafe partial struct UInt4x2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x2), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -4587,7 +4514,7 @@ public unsafe partial struct UInt4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[int row] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x2"/> instance.
|
||||
@@ -4599,7 +4526,7 @@ public unsafe partial struct UInt4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x2"/> instance.
|
||||
@@ -4612,7 +4539,7 @@ public unsafe partial struct UInt4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x2"/> instance.
|
||||
@@ -4626,7 +4553,7 @@ public unsafe partial struct UInt4x2
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -4898,11 +4825,6 @@ public unsafe partial struct UInt4x2
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)]
|
||||
public unsafe partial struct UInt4x3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x3), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -5002,7 +4924,7 @@ public unsafe partial struct UInt4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[int row] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x3"/> instance.
|
||||
@@ -5014,7 +4936,7 @@ public unsafe partial struct UInt4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x3"/> instance.
|
||||
@@ -5027,7 +4949,7 @@ public unsafe partial struct UInt4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x3"/> instance.
|
||||
@@ -5041,7 +4963,7 @@ public unsafe partial struct UInt4x3
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
@@ -5341,11 +5263,6 @@ public unsafe partial struct UInt4x3
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)]
|
||||
public unsafe partial struct UInt4x4
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt4x4), sizeof(UInt4));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint m11;
|
||||
|
||||
@@ -5469,7 +5386,7 @@ public unsafe partial struct UInt4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[int row] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x4"/> instance.
|
||||
@@ -5481,7 +5398,7 @@ public unsafe partial struct UInt4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData;
|
||||
public ref UInt2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(UInt2*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x4"/> instance.
|
||||
@@ -5494,7 +5411,7 @@ public unsafe partial struct UInt4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>
|
||||
[UnscopedRef]
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData;
|
||||
public ref UInt3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(UInt3*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="UInt4x4"/> instance.
|
||||
@@ -5508,7 +5425,7 @@ public unsafe partial struct UInt4x4
|
||||
/// <para>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</para>
|
||||
/// </remarks>s
|
||||
[UnscopedRef]
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData;
|
||||
public ref UInt4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(UInt4*)UndefinedData.Memory;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the component at position [1, 1].
|
||||
|
||||
@@ -75,9 +75,6 @@ void GenerateVectorProperties(string typeName, int elementSize)
|
||||
WriteLine("using ComputeSharp.Core.Intrinsics.Attributes;");
|
||||
}
|
||||
#>
|
||||
#if !NET6_0_OR_GREATER
|
||||
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
|
||||
#endif
|
||||
|
||||
#nullable enable
|
||||
#pragma warning disable CS0660, CS0661
|
||||
@@ -88,12 +85,7 @@ namespace ComputeSharp;
|
||||
[StructLayout(LayoutKind.Explicit, Size = <#=(elementSize * i)#>, Pack = <#=elementSize#>)]
|
||||
public unsafe partial struct <#=typeName#>
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(<#=typeName#>), sizeof(<#=elementTypeName#>4));
|
||||
<#
|
||||
WriteLine("");
|
||||
PushIndent(" ");
|
||||
|
||||
// Generate the private fields
|
||||
@@ -112,7 +104,7 @@ public unsafe partial struct <#=typeName#>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
[UnscopedRef]
|
||||
public ref <#=hlslElementTypeName#> this[int i] => ref *(<#=hlslElementTypeName#>*)UndefinedData;
|
||||
public ref <#=hlslElementTypeName#> this[int i] => ref *(<#=hlslElementTypeName#>*)UndefinedData.Memory;
|
||||
|
||||
<#
|
||||
// Generate the true/false and zero/one properties
|
||||
@@ -230,7 +222,7 @@ public unsafe partial struct <#=typeName#>
|
||||
// Property
|
||||
WriteLine("[UnscopedRef]");
|
||||
Write($"public {refType} {propertyType} {propertyName} ");
|
||||
WriteLine($"=> ref *({propertyType}*)UndefinedData;");
|
||||
WriteLine($"=> ref *({propertyType}*)UndefinedData.Memory;");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int3.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int3.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int4.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int4.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" Link="ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Internals\UndefinedData.cs" Link="ComputeSharp.Core\Primitives\Internals\UndefinedData.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt2.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt2.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt3.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt3.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt4.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt4.cs" />
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int3.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int3.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\Int4.g.cs" Link="ComputeSharp.Core\Primitives\Int\Int4.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" Link="ComputeSharp.Core\Primitives\Int\IntMxN.g.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\Internals\UndefinedData.cs" Link="ComputeSharp.Core\Primitives\Internals\UndefinedData.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt2.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt2.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt3.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt3.cs" />
|
||||
<Compile Include="..\ComputeSharp.Core\Primitives\UInt\UInt4.cs" Link="ComputeSharp.Core\Primitives\UInt\UInt4.cs" />
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする