Added byref single component properties
このコミットが含まれているのは:
1 親
c876a76a4c
コミット
7bac8a5a42
46ファイル変更
+724
-808
検索条件に一致するファイルはありません
@@ -1,5 +1,4 @@
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
|
||||
namespace ComputeSharp
|
||||
@@ -8,7 +7,6 @@ namespace ComputeSharp
|
||||
/// A <see langword="struct"/> that maps the <see langword="uint4"/> HLSL type.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
|
||||
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 4)]
|
||||
public partial struct UInt4
|
||||
{
|
||||
/// <summary>
|
||||
@@ -50,66 +48,10 @@ namespace ComputeSharp
|
||||
/// <param name="w">The value to assign to the fourth vector component.</param>
|
||||
public UInt4(uint x, uint y, uint z, uint w)
|
||||
{
|
||||
X = x;
|
||||
Y = y;
|
||||
Z = z;
|
||||
W = w;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the first vector component.
|
||||
/// </summary>
|
||||
public uint X { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the second vector component.
|
||||
/// </summary>
|
||||
public uint Y { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the third vector component.
|
||||
/// </summary>
|
||||
public uint Z { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the fourth vector component.
|
||||
/// </summary>
|
||||
public uint W { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the first color component.
|
||||
/// </summary>
|
||||
public uint R
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(R)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(R)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the second color component.
|
||||
/// </summary>
|
||||
public uint G
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(G)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(G)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the third color component.
|
||||
/// </summary>
|
||||
public uint B
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(B)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(B)}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the fourth color component.
|
||||
/// </summary>
|
||||
public uint A
|
||||
{
|
||||
get => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(A)}");
|
||||
set => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(A)}");
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
this.w = w;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする