Added missing dots

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-01 19:12:03 +01:00
1 親 e45b712000
コミット 33870886b6
51ファイル変更
+5686 -5686

検索条件に一致するファイルはありません

+20 -20
ファイルの表示
@@ -4,21 +4,21 @@ using System.Threading.Tasks;
namespace ComputeSharp.Benchmark
{
/// <summary>
/// A <see langword="class"/> that contains primitives to run certain operations of a neural network
/// A <see langword="class"/> that contains primitives to run certain operations of a neural network.
/// </summary>
internal static partial class Dnn
{
/// <summary>
/// Executes the forward pass on a fully connected layer on the CPU
/// Executes the forward pass on a fully connected layer on the CPU.
/// </summary>
/// <param name="c">The number of samples in the input tensor</param>
/// <param name="n">The number of rows in the input matrix</param>
/// <param name="m">The number of columns in the input matrix</param>
/// <param name="p">The number of columns in the output matrix</param>
/// <param name="x">The input tensor</param>
/// <param name="w">The weights tensor</param>
/// <param name="b">The bias tensor</param>
/// <param name="y">The result tensor</param>
/// <param name="c">The number of samples in the input tensor.</param>
/// <param name="n">The number of rows in the input matrix.</param>
/// <param name="m">The number of columns in the input matrix.</param>
/// <param name="p">The number of columns in the output matrix.</param>
/// <param name="x">The input tensor.</param>
/// <param name="w">The weights tensor.</param>
/// <param name="b">The bias tensor.</param>
/// <param name="y">The result tensor.</param>
public static void FullyConnectedForwardCpu(int c, int n, int m, int p, float[] x, float[] w, float[] b, float[] y)
{
void Kernel(int s)
@@ -51,16 +51,16 @@ namespace ComputeSharp.Benchmark
}
/// <summary>
/// Executes the forward pass on a fully connected layer on the GPU
/// Executes the forward pass on a fully connected layer on the GPU.
/// </summary>
/// <param name="c">The number of samples in the input tensor</param>
/// <param name="n">The number of rows in the input matrix</param>
/// <param name="m">The number of columns in the input matrix</param>
/// <param name="p">The number of columns in the output matrix</param>
/// <param name="x">The input tensor</param>
/// <param name="w">The weights tensor</param>
/// <param name="b">The bias tensor</param>
/// <param name="y">The result tensor</param>
/// <param name="c">The number of samples in the input tensor.</param>
/// <param name="n">The number of rows in the input matrix.</param>
/// <param name="m">The number of columns in the input matrix.</param>
/// <param name="p">The number of columns in the output matrix.</param>
/// <param name="x">The input tensor.</param>
/// <param name="w">The weights tensor.</param>
/// <param name="b">The bias tensor.</param>
/// <param name="y">The result tensor.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void FullyConnectedForwardGpu(
int c, int n, int m, int p,
@@ -70,7 +70,7 @@ namespace ComputeSharp.Benchmark
}
/// <summary>
/// Kernel for <see cref="FullyConnectedForwardGpu"/>
/// Kernel for <see cref="FullyConnectedForwardGpu"/>.
/// </summary>
[AutoConstructor]
private readonly partial struct FullyConnectedForwardKernel : IComputeShader
+20 -20
ファイルの表示
@@ -7,17 +7,17 @@ using BenchmarkDotNet.Attributes;
namespace ComputeSharp.Benchmark
{
/// <summary>
/// A <see langword="class"/> that benchmarks the APIs in the <see cref="Dnn"/> class, on both CPU and GPU
/// A <see langword="class"/> that benchmarks the APIs in the <see cref="Dnn"/> class, on both CPU and GPU.
/// </summary>
public class DnnBenchmark : IDisposable
{
/// <summary>
/// The number of samples
/// The number of samples.
/// </summary>
private const int C = 128;
/// <summary>
/// The nummber of rows in the <see cref="X"/> matrix
/// The nummber of rows in the <see cref="X"/> matrix.
/// </summary>
private const int N = 512;
@@ -27,57 +27,57 @@ namespace ComputeSharp.Benchmark
private const int M = 512;
/// <summary>
/// The number of columns in the <see cref="W"/> matrix
/// The number of columns in the <see cref="W"/> matrix.
/// </summary>
private const int P = 256;
/// <summary>
/// The input tensor
/// The input tensor.
/// </summary>
private float[] X;
/// <summary>
/// The weights tensor
/// The weights tensor.
/// </summary>
private float[] W;
/// <summary>
/// The bias tensor
/// The bias tensor.
/// </summary>
private float[] B;
/// <summary>
/// The result tensor
/// The result tensor.
/// </summary>
private float[] Y;
/// <summary>
/// The input tensor
/// The input tensor.
/// </summary>
private ReadOnlyBuffer<float> BufferX;
/// <summary>
/// The weights tensor
/// The weights tensor.
/// </summary>
private ReadOnlyBuffer<float> BufferW;
/// <summary>
/// The bias tensor
/// The bias tensor.
/// </summary>
private ReadOnlyBuffer<float> BufferB;
/// <summary>
/// The result tensor
/// The result tensor.
/// </summary>
private ReadWriteBuffer<float> BufferY;
/// <summary>
/// A <see cref="System.Random"/> instance to initialize the tensors
/// A <see cref="System.Random"/> instance to initialize the tensors.
/// </summary>
private readonly Random Random = new Random();
/// <summary>
/// Initial setup for a benchmarking session
/// Initial setup for a benchmarking session.
/// </summary>
[GlobalSetup]
public void Setup()
@@ -94,7 +94,7 @@ namespace ComputeSharp.Benchmark
}
/// <summary>
/// Clears the memory from the current session
/// Clears the memory from the current session.
/// </summary>
[GlobalCleanup]
public void Dispose()
@@ -111,9 +111,9 @@ namespace ComputeSharp.Benchmark
}
/// <summary>
/// Creates a new <see langword="float"/> array of the specified size
/// Creates a new <see langword="float"/> array of the specified size.
/// </summary>
/// <param name="size">The size of the new random array to create</param>
/// <param name="size">The size of the new random array to create.</param>
[Pure]
private float[] CreateRandomArray(int size)
{
@@ -128,19 +128,19 @@ namespace ComputeSharp.Benchmark
}
/// <summary>
/// Runs a fully connected forward operation on the CPU
/// Runs a fully connected forward operation on the CPU.
/// </summary>
[Benchmark(Baseline = true)]
public void Cpu() => Dnn.FullyConnectedForwardCpu(C, N, M, P, X, W, B, Y);
/// <summary>
/// Runs a fully connected forward operation on the GPU
/// Runs a fully connected forward operation on the GPU.
/// </summary>
[Benchmark]
public void GpuWithNoTemporaryBuffers() => Dnn.FullyConnectedForwardGpu(C, N, M, P, BufferX, BufferW, BufferB, BufferY);
/// <summary>
/// Runs a fully connected forward operation on the GPU, creating temporary GPU buffers to perform the operations
/// Runs a fully connected forward operation on the GPU, creating temporary GPU buffers to perform the operations.
/// </summary>
[Benchmark]
public void GpuWithTemporaryBuffers()
+3 -3
ファイルの表示
@@ -14,12 +14,12 @@ namespace SixLabors.ImageSharp
internal readonly struct Complex64
{
/// <summary>
/// The real part of the complex number
/// The real part of the complex number.
/// </summary>
public readonly float Real;
/// <summary>
/// The imaginary part of the complex number
/// The imaginary part of the complex number.
/// </summary>
public readonly float Imaginary;
@@ -39,7 +39,7 @@ namespace SixLabors.ImageSharp
/// </summary>
/// <param name="value">The <see cref="Complex64"/> value to multiply.</param>
/// <param name="scalar">The <see cref="float"/> scalar to use to multiply the <see cref="Complex64"/> value.</param>
/// <returns>The <see cref="Complex64"/> result</returns>
/// <returns>The <see cref="Complex64"/> result.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Complex64 operator *(Complex64 value, float scalar) => new Complex64(value.Real * scalar, value.Imaginary * scalar);
}
+2 -2
ファイルの表示
@@ -11,12 +11,12 @@ namespace SixLabors.ImageSharp
internal struct ComplexVector4
{
/// <summary>
/// The real part of the complex vector
/// The real part of the complex vector.
/// </summary>
public Vector4 Real;
/// <summary>
/// The imaginary part of the complex number
/// The imaginary part of the complex number.
/// </summary>
public Vector4 Imaginary;
}
+12 -12
ファイルの表示
@@ -5,36 +5,36 @@ using SixLabors.ImageSharp.Processing.Processors;
namespace ComputeSharp.BokehBlur.Processors
{
/// <summary>
/// Applies bokeh blur processing to the image
/// Applies bokeh blur processing to the image.
/// </summary>
public sealed class HlslBokehBlurProcessor : IImageProcessor
{
/// <summary>
/// The default radius used by the parameterless constructor
/// The default radius used by the parameterless constructor.
/// </summary>
public const int DefaultRadius = 32;
/// <summary>
/// The default component count used by the parameterless constructor
/// The default component count used by the parameterless constructor.
/// </summary>
public const int DefaultComponents = 2;
/// <summary>
/// The default gamma used by the parameterless constructor
/// The default gamma used by the parameterless constructor.
/// </summary>
public const float DefaultGamma = 3f;
/// <summary>
/// Initializes a new instance of the <see cref="HlslBokehBlurProcessor"/> class
/// Initializes a new instance of the <see cref="HlslBokehBlurProcessor"/> class.
/// </summary>
public HlslBokehBlurProcessor() : this(DefaultRadius, DefaultComponents, DefaultGamma) { }
/// <summary>
/// Initializes a new instance of the <see cref="HlslBokehBlurProcessor"/> class
/// Initializes a new instance of the <see cref="HlslBokehBlurProcessor"/> class.
/// </summary>
/// <param name="radius">The size of the area to sample</param>
/// <param name="components">The number of components to use to approximate the original 2D bokeh blur convolution kernel</param>
/// <param name="gamma">The gamma highlight factor to use to further process the image</param>
/// <param name="radius">The size of the area to sample.</param>
/// <param name="components">The number of components to use to approximate the original 2D bokeh blur convolution kernel.</param>
/// <param name="gamma">The gamma highlight factor to use to further process the image.</param>
public HlslBokehBlurProcessor(int radius, int components, float gamma)
{
Radius = radius;
@@ -43,17 +43,17 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Gets the radius
/// Gets the radius.
/// </summary>
public int Radius { get; }
/// <summary>
/// Gets the number of components
/// Gets the number of components.
/// </summary>
public int Components { get; }
/// <summary>
/// Gets the gamma highlight factor to use when applying the effect
/// Gets the gamma highlight factor to use when applying the effect.
/// </summary>
public float Gamma { get; }
+41 -41
ファイルの表示
@@ -14,30 +14,30 @@ using SixLabors.ImageSharp.Processing.Processors;
namespace ComputeSharp.BokehBlur.Processors
{
/// <summary>
/// Applies bokeh blur processing to the image
/// Applies bokeh blur processing to the image.
/// </summary>
/// <typeparam name="TPixel">The pixel format</typeparam>
/// <remarks>This processor is based on the code from Mike Pound, see <a href="https://github.com/mikepound/convolve">github.com/mikepound/convolve</a></remarks>
/// <typeparam name="TPixel">The pixel format.</typeparam>
/// <remarks>This processor is based on the code from Mike Pound, see <a href="https://github.com/mikepound/convolve">github.com/mikepound/convolve</a>.</remarks>
public sealed partial class HlslBokehBlurProcessor<TPixel> : ImageProcessor<TPixel>
where TPixel : unmanaged, IPixel<TPixel>
{
/// <summary>
/// The kernel radius
/// The kernel radius.
/// </summary>
private readonly int Radius;
/// <summary>
/// The gamma highlight factor to use when applying the effect
/// The gamma highlight factor to use when applying the effect.
/// </summary>
private readonly float Gamma;
/// <summary>
/// The maximum size of the kernel in either direction
/// The maximum size of the kernel in either direction.
/// </summary>
private readonly int KernelSize;
/// <summary>
/// The number of components to use when applying the bokeh blur
/// The number of components to use when applying the bokeh blur.
/// </summary>
private readonly int ComponentsCount;
@@ -47,27 +47,27 @@ namespace ComputeSharp.BokehBlur.Processors
private readonly Vector4[] KernelParameters;
/// <summary>
/// The kernel components for the current instance
/// The kernel components for the current instance.
/// </summary>
private readonly Complex64[][] Kernels;
/// <summary>
/// The scaling factor for kernel values
/// The scaling factor for kernel values.
/// </summary>
private readonly float KernelsScale;
/// <summary>
/// The mapping of initialized complex kernels and parameters, to speed up the initialization of new <see cref="HlslBokehBlurProcessor{TPixel}"/> instances
/// The mapping of initialized complex kernels and parameters, to speed up the initialization of new <see cref="HlslBokehBlurProcessor{TPixel}"/> instances.
/// </summary>
private static readonly ConcurrentDictionary<(int Radius, int ComponentsCount), (Vector4[] Parameters, float Scale, Complex64[][] Kernels)> Cache = new();
/// <summary>
/// Initializes a new instance of the <see cref="HlslBokehBlurProcessor{TPixel}"/> class
/// Initializes a new instance of the <see cref="HlslBokehBlurProcessor{TPixel}"/> class.
/// </summary>
/// <param name="definition">The <see cref="HlslBokehBlurProcessor"/> defining the processor parameters</param>
/// <param name="configuration">The configuration which allows altering default behaviour or extending the library</param>
/// <param name="source">The source <see cref="Image{TPixel}"/> instance to modify</param>
/// <param name="sourceRectangle">The source <see cref="Rectangle"/> that indicates the area to edit</param>
/// <param name="definition">The <see cref="HlslBokehBlurProcessor"/> defining the processor parameters.</param>
/// <param name="configuration">The configuration which allows altering default behaviour or extending the library.</param>
/// <param name="source">The source <see cref="Image{TPixel}"/> instance to modify.</param>
/// <param name="sourceRectangle">The source <see cref="Rectangle"/> that indicates the area to edit.</param>
public HlslBokehBlurProcessor(HlslBokehBlurProcessor definition, Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
: base(configuration, source, sourceRectangle)
{
@@ -97,12 +97,12 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Gets the kernel scales to adjust the component values in each kernel
/// Gets the kernel scales to adjust the component values in each kernel.
/// </summary>
private static IReadOnlyList<float> KernelScales { get; } = new[] { 1.4f, 1.2f, 1.2f, 1.2f, 1.2f, 1.2f };
/// <summary>
/// Gets the available bokeh blur kernel parameters
/// Gets the available bokeh blur kernel parameters.
/// </summary>
private static IReadOnlyList<Vector4[]> KernelComponents { get; } = new[]
{
@@ -156,7 +156,7 @@ namespace ComputeSharp.BokehBlur.Processors
};
/// <summary>
/// Gets the kernel parameters and scaling factor for the current count value in the current instance
/// Gets the kernel parameters and scaling factor for the current count value in the current instance.
/// </summary>
private (Vector4[] Parameters, float Scale) GetParameters()
{
@@ -166,7 +166,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Creates the collection of complex 1D kernels with the specified parameters
/// Creates the collection of complex 1D kernels with the specified parameters.
/// </summary>
private Complex64[][] CreateComplexKernels()
{
@@ -182,10 +182,10 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Creates a complex 1D kernel with the specified parameters
/// Creates a complex 1D kernel with the specified parameters.
/// </summary>
/// <param name="a">The exponential parameter for each complex component</param>
/// <param name="b">The angle component for each complex component</param>
/// <param name="a">The exponential parameter for each complex component.</param>
/// <param name="b">The angle component for each complex component.</param>
private Complex64[] CreateComplex1DKernel(float a, float b)
{
var kernel = new Complex64[KernelSize];
@@ -208,7 +208,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Normalizes the kernels with respect to A * real + B * imaginary
/// Normalizes the kernels with respect to A * real + B * imaginary.
/// </summary>
private void NormalizeKernels()
{
@@ -287,11 +287,11 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Performs a vertical 1D complex convolution with the specified parameters
/// Performs a vertical 1D complex convolution with the specified parameters.
/// </summary>
/// <param name="source">The source <see cref="ReadOnlyBuffer{T}"/> to read data from</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel</param>
/// <param name="source">The source <see cref="ReadOnlyBuffer{T}"/> to read data from.</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to.</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyVerticalConvolution(
ReadOnlyBuffer<Vector4> source,
@@ -314,7 +314,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Kernel for <see cref="ApplyVerticalConvolution"/>
/// Kernel for <see cref="ApplyVerticalConvolution"/>.
/// </summary>
[AutoConstructor]
private partial struct VerticalConvolutionProcessor : IComputeShader
@@ -355,13 +355,13 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Performs an horizontal 1D complex convolution with the specified parameters
/// Performs an horizontal 1D complex convolution with the specified parameters.
/// </summary>
/// <param name="source">The source <see cref="ReadWriteBuffer{T}"/> to read data from</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel</param>
/// <param name="z">The weight factor for the real component of the complex pixel values</param>
/// <param name="w">The weight factor for the imaginary component of the complex pixel values</param>
/// <param name="source">The source <see cref="ReadWriteBuffer{T}"/> to read data from.</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to.</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel.</param>
/// <param name="z">The weight factor for the real component of the complex pixel values.</param>
/// <param name="w">The weight factor for the imaginary component of the complex pixel values.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyHorizontalConvolutionAndAccumulatePartials(
ReadWriteBuffer<ComplexVector4> source,
@@ -388,7 +388,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Kernel for <see cref="ApplyHorizontalConvolutionAndAccumulatePartials"/>
/// Kernel for <see cref="ApplyHorizontalConvolutionAndAccumulatePartials"/>.
/// </summary>
[AutoConstructor]
private partial struct HorizontalConvolutionAndAccumulatePartialsProcessor : IComputeShader
@@ -431,7 +431,7 @@ namespace ComputeSharp.BokehBlur.Processors
/// <summary>
/// Applies the gamma correction/highlight to the input pixel buffer and returns an <see cref="IMemoryOwner{T}"/> instance with <see cref="Vector4"/> values.
/// </summary>
/// <param name="source">The source image</param>
/// <param name="source">The source image.</param>
[Pure]
private IMemoryOwner<Vector4> GetExposedVector4Buffer(Memory<TPixel> source)
{
@@ -450,7 +450,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// The processor for <see cref="GetExposedVector4Buffer"/>
/// The processor for <see cref="GetExposedVector4Buffer"/>.
/// </summary>
[AutoConstructor]
private readonly partial struct GetExposedVector4BufferProcessor : IRowOperation
@@ -482,10 +482,10 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Applies the inverse gamma exposure pass to compute the final pixel values for a target image
/// Applies the inverse gamma exposure pass to compute the final pixel values for a target image.
/// </summary>
/// <param name="source">The source <see cref="Vector4"/> buffer to read from</param>
/// <param name="target">The target image</param>
/// <param name="source">The source <see cref="Vector4"/> buffer to read from.</param>
/// <param name="target">The target image.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyInverseGammaExposure(Memory<Vector4> source, Memory<TPixel> target)
{
@@ -500,7 +500,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// The processor for <see cref="ApplyInverseGammaExposure"/>
/// The processor for <see cref="ApplyInverseGammaExposure"/>.
/// </summary>
[AutoConstructor]
private readonly partial struct ApplyInverseGammaExposureProcessor : IRowOperation
+8 -8
ファイルの表示
@@ -5,7 +5,7 @@ using SixLabors.ImageSharp.Processing.Processors;
namespace ComputeSharp.BokehBlur.Processors
{
/// <summary>
/// Defines Gaussian blur by a (Sigma, Radius) pair
/// Defines Gaussian blur by a (Sigma, Radius) pair.
/// </summary>
public sealed class HlslGaussianBlurProcessor : IImageProcessor
{
@@ -15,20 +15,20 @@ namespace ComputeSharp.BokehBlur.Processors
public const float DefaultSigma = 3f;
/// <summary>
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class.
/// </summary>
public HlslGaussianBlurProcessor() : this(DefaultSigma, 9) { }
/// <summary>
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class.
/// </summary>
/// <param name="radius">The radius value representing the size of the area to sample</param>
/// <param name="radius">The radius value representing the size of the area to sample.</param>
public HlslGaussianBlurProcessor(int radius) : this(radius / 3F, radius) { }
/// <summary>
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class.
/// </summary>
/// <param name="sigma"> The sigma value representing the weight of the blur </param>
/// <param name="sigma"> The sigma value representing the weight of the blur. </param>
/// <param name="radius">The radius value representing the size of the area to sample (this should be at least twice the sigma value)</param>
public HlslGaussianBlurProcessor(float sigma, int radius)
{
@@ -37,12 +37,12 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Gets the sigma value representing the weight of the blur
/// Gets the sigma value representing the weight of the blur.
/// </summary>
public float Sigma { get; }
/// <summary>
/// Gets the radius defining the size of the area to sample
/// Gets the radius defining the size of the area to sample.
/// </summary>
public int Radius { get; }
+19 -19
ファイルの表示
@@ -17,17 +17,17 @@ namespace ComputeSharp.BokehBlur.Processors
where TPixel : unmanaged, IPixel<TPixel>
{
/// <summary>
/// The 1D kernel to apply
/// The 1D kernel to apply.
/// </summary>
private readonly float[] Kernel;
/// <summary>
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class
/// Initializes a new instance of the <see cref="HlslGaussianBlurProcessor"/> class.
/// </summary>
/// <param name="definition">The <see cref="HlslGaussianBlurProcessor"/> defining the processor parameters</param>
/// <param name="configuration">The configuration which allows altering default behaviour or extending the library</param>
/// <param name="source">The source <see cref="Image{TPixel}"/> for the current processor instance</param>
/// <param name="sourceRectangle">The source area to process for the current processor instance</param>
/// <param name="definition">The <see cref="HlslGaussianBlurProcessor"/> defining the processor parameters.</param>
/// <param name="configuration">The configuration which allows altering default behaviour or extending the library.</param>
/// <param name="source">The source <see cref="Image{TPixel}"/> for the current processor instance.</param>
/// <param name="sourceRectangle">The source area to process for the current processor instance.</param>
public HlslGaussianBlurProcessor(HlslGaussianBlurProcessor definition, Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
: base(configuration, source, sourceRectangle)
{
@@ -36,7 +36,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Creates a 1 dimensional Gaussian kernel using the Gaussian G(x) function
/// Creates a 1 dimensional Gaussian kernel using the Gaussian G(x) function.
/// </summary>
private static float[] CreateGaussianBlurKernel(int size, float weight)
{
@@ -64,10 +64,10 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Implementation of 1D Gaussian G(x) function
/// Implementation of 1D Gaussian G(x) function.
/// </summary>
/// <param name="x">The x provided to G(x)</param>
/// <param name="sigma">The spread of the blur</param>
/// <param name="sigma">The spread of the blur.</param>
/// <returns>The Gaussian G(x)</returns>
private static float Gaussian(float x, float sigma)
{
@@ -110,11 +110,11 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Performs a vertical 1D complex convolution with the specified parameters
/// Performs a vertical 1D complex convolution with the specified parameters.
/// </summary>
/// <param name="source">The source <see cref="ReadWriteBuffer{T}"/> to read data from</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel</param>
/// <param name="source">The source <see cref="ReadWriteBuffer{T}"/> to read data from.</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to.</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyVerticalConvolution(
ReadWriteBuffer<Vector4> source,
@@ -137,7 +137,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Kernel for <see cref="ApplyVerticalConvolution"/>
/// Kernel for <see cref="ApplyVerticalConvolution"/>.
/// </summary>
private struct VerticalConvolutionProcessor : IComputeShader
{
@@ -172,11 +172,11 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Performs an horizontal 1D complex convolution with the specified parameters
/// Performs an horizontal 1D complex convolution with the specified parameters.
/// </summary>
/// <param name="source">The source <see cref="ReadWriteBuffer{T}"/> to read data from</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel</param>
/// <param name="source">The source <see cref="ReadWriteBuffer{T}"/> to read data from.</param>
/// <param name="target">The target <see cref="ReadWriteBuffer{T}"/> to write the results to.</param>
/// <param name="kernel">The <see cref="ReadOnlyBuffer{T}"/> with the values for the current complex kernel.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyHorizontalConvolution(
ReadWriteBuffer<Vector4> source,
@@ -199,7 +199,7 @@ namespace ComputeSharp.BokehBlur.Processors
}
/// <summary>
/// Kernel for <see cref="ApplyHorizontalConvolution"/>
/// Kernel for <see cref="ApplyHorizontalConvolution"/>.
/// </summary>
private struct HorizontalConvolutionProcessor : IComputeShader
{
+5 -5
ファイルの表示
@@ -39,7 +39,7 @@ namespace ComputeSharp.Sample
}
/// <summary>
/// Kernel for <see cref="Main"/>
/// Kernel for <see cref="Main"/>.
/// </summary>
[AutoConstructor]
private readonly partial struct MainKernel : IComputeShader
@@ -54,11 +54,11 @@ namespace ComputeSharp.Sample
}
/// <summary>
/// Prints a matrix in a properly formatted way
/// Prints a matrix in a properly formatted way.
/// </summary>
/// <param name="array">The input <see langword="float"/> array representing the matrix to print</param>
/// <param name="width">The width of the array to print</param>
/// <param name="height">The height of the array to print</param>
/// <param name="array">The input <see langword="float"/> array representing the matrix to print.</param>
/// <param name="width">The width of the array to print.</param>
/// <param name="height">The height of the array to print.</param>
private static void PrintMatrix(float[] array, int width, int height)
{
int length = width * height;
+2 -2
ファイルの表示
@@ -8,9 +8,9 @@ namespace ComputeSharp.Exceptions
public sealed class InvalidExecutionContextException : InvalidOperationException
{
/// <summary>
/// Creates a new <see cref="InvalidExecutionContextException"/> instance
/// Creates a new <see cref="InvalidExecutionContextException"/> instance.
/// </summary>
/// <param name="name">The name of the caller API</param>
/// <param name="name">The name of the caller API.</param>
internal InvalidExecutionContextException(string name)
: base($"The API {name} can only be used from within an HLSL shader.")
{
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
namespace ComputeSharp.Core.Intrinsics.Attributes
{
/// <summary>
/// An attribute to indicate that a given member has the same name when mapped to HLSL
/// An attribute to indicate that a given member has the same name when mapped to HLSL.
/// </summary>
internal sealed class PreserveMemberNameAttribute : Attribute
{
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+16 -16
ファイルの表示
@@ -4,22 +4,22 @@ using System.Runtime.InteropServices;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that can be used in place of the <see cref="bool"/> type in HLSL shaders
/// A <see langword="struct"/> that can be used in place of the <see cref="bool"/> type in HLSL shaders.
/// </summary>
[DebuggerDisplay("{Value}")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int))]
public readonly struct Bool
{
/// <summary>
/// The wrapped <see cref="bool"/> value for the current instance
/// The wrapped <see cref="bool"/> value for the current instance.
/// </summary>
[FieldOffset(0)]
private readonly bool Value;
/// <summary>
/// Creates a new <see cref="Bool"/> instance for a given <see cref="bool"/> value
/// Creates a new <see cref="Bool"/> instance for a given <see cref="bool"/> value.
/// </summary>
/// <param name="value"></param>
/// <param name="value">.</param>
private Bool(bool value) => Value = value;
/// <inheritdoc/>
@@ -32,35 +32,35 @@ namespace ComputeSharp
public override string ToString() => Value.ToString();
/// <summary>
/// Checks whether or not two <see cref="Bool"/> instances represent the same <see cref="bool"/> value
/// Checks whether or not two <see cref="Bool"/> instances represent the same <see cref="bool"/> value.
/// </summary>
/// <param name="left">The left <see cref="Bool"/> instance</param>
/// <param name="right">The right <see cref="Bool"/> instance</param>
/// <param name="left">The left <see cref="Bool"/> instance.</param>
/// <param name="right">The right <see cref="Bool"/> instance.</param>
public static bool operator ==(Bool left, Bool right) => left.Value == right.Value;
/// <summary>
/// Checks whether or not two <see cref="Bool"/> instances represent a different <see cref="bool"/> value
/// Checks whether or not two <see cref="Bool"/> instances represent a different <see cref="bool"/> value.
/// </summary>
/// <param name="left">The left <see cref="Bool"/> instance</param>
/// <param name="right">The right <see cref="Bool"/> instance</param>
/// <param name="left">The left <see cref="Bool"/> instance.</param>
/// <param name="right">The right <see cref="Bool"/> instance.</param>
public static bool operator !=(Bool left, Bool right) => left.Value != right.Value;
/// <summary>
/// Inverts the <see cref="bool"/> value represented by a given <see cref="Bool"/> instance
/// Inverts the <see cref="bool"/> value represented by a given <see cref="Bool"/> instance.
/// </summary>
/// <param name="x">The input <see cref="Bool"/> instance</param>
/// <param name="x">The input <see cref="Bool"/> instance.</param>
public static Bool operator !(Bool x) => new Bool(!x.Value);
/// <summary>
/// Converts a given <see cref="Bool"/> instance to its corresponding <see cref="bool"/> value
/// Converts a given <see cref="Bool"/> instance to its corresponding <see cref="bool"/> value.
/// </summary>
/// <param name="x">The input <see cref="Bool"/> instance</param>
/// <param name="x">The input <see cref="Bool"/> instance.</param>
public static implicit operator bool(Bool x) => x.Value;
/// <summary>
/// Converts a <see cref="bool"/> value to a corresponding <see cref="Bool"/> instance
/// Converts a <see cref="bool"/> value to a corresponding <see cref="Bool"/> instance.
/// </summary>
/// <param name="x">The input <see cref="bool"/> value</param>
/// <param name="x">The input <see cref="bool"/> value.</param>
public static implicit operator Bool(bool x) => new Bool(x);
}
}
+24 -24
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="bool2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="bool2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 2)]
public struct Bool2
{
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="false"/>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool2 False => false;
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="true"/>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool2 True => true;
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool2 TrueX => new Bool2(true, false);
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool2 TrueY => new Bool2(false, true);
/// <summary>
/// Creates a new <see cref="Bool2"/> instance with the specified parameters
/// Creates a new <see cref="Bool2"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
public Bool2(bool x, bool y)
{
_X = x;
@@ -46,7 +46,7 @@ namespace ComputeSharp
private bool _X;
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public bool X
{
@@ -58,7 +58,7 @@ namespace ComputeSharp
private bool _Y;
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public bool Y
{
@@ -67,7 +67,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public bool R
{
@@ -76,7 +76,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public bool G
{
@@ -85,9 +85,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Bool2"/> instance
/// Gets or sets a specific component in the current <see cref="Bool2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public bool this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Bool2)}[int]");
@@ -95,12 +95,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Bool2 XX => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XY
{
@@ -109,7 +109,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YX
{
@@ -118,17 +118,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Bool2 YY => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Bool2 RR => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RG
{
@@ -137,7 +137,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GR
{
@@ -146,14 +146,14 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Bool2 GG => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Bool2"/> value with the same value for all its components
/// Creates a new <see cref="Bool2"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Bool2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Bool2"/> instance.</param>
public static implicit operator Bool2(bool x) => new Bool2(x, x);
}
}
+92 -92
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="bool3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="bool3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 3)]
public struct Bool3
{
/// <summary>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool3 False => false;
/// <summary>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="true"/>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool3 True => true;
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool3 TrueX => new Bool3(true, false, false);
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool3 TrueY => new Bool3(false, true, false);
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool3 TrueZ => new Bool3(false, false, true);
/// <summary>
/// Creates a new <see cref="Bool3"/> instance with the specified parameters
/// Creates a new <see cref="Bool3"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="z">The value to assign to the third vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="z">The value to assign to the third vector component.</param>
public Bool3(bool x, bool y, bool z)
{
_X = x;
@@ -53,7 +53,7 @@ namespace ComputeSharp
private bool _X;
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public bool X
{
@@ -65,7 +65,7 @@ namespace ComputeSharp
private bool _Y;
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public bool Y
{
@@ -77,7 +77,7 @@ namespace ComputeSharp
private bool _Z;
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public bool Z
{
@@ -86,7 +86,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public bool R
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public bool G
{
@@ -104,7 +104,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public bool B
{
@@ -113,9 +113,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Bool3"/> instance
/// Gets or sets a specific component in the current <see cref="Bool3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public bool this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}[int]");
@@ -123,12 +123,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Bool2 XX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XY
{
@@ -137,7 +137,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XZ
{
@@ -146,7 +146,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YX
{
@@ -155,12 +155,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Bool2 YY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YZ
{
@@ -169,7 +169,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 ZX
{
@@ -178,7 +178,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZY
{
@@ -187,17 +187,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Bool2 ZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Bool2 RR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RG
{
@@ -206,7 +206,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RB
{
@@ -215,7 +215,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GR
{
@@ -224,12 +224,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Bool2 GG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GB
{
@@ -238,7 +238,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 BR
{
@@ -247,7 +247,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BG
{
@@ -256,37 +256,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Bool2 BB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Bool2 XXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 XYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XYZ
{
@@ -295,12 +295,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 XZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XZY
{
@@ -309,22 +309,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 YXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YXZ
{
@@ -333,22 +333,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Bool2 YYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YZX
{
@@ -357,22 +357,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 YZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 ZXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZXY
{
@@ -381,12 +381,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 ZYX
{
@@ -395,57 +395,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 ZZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Bool2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Bool2 RRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 RGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RGB
{
@@ -454,12 +454,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 RBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RBG
{
@@ -468,22 +468,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 GRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GRB
{
@@ -492,22 +492,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Bool2 GGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GBR
{
@@ -516,22 +516,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 GBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Bool2 BRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BRG
{
@@ -540,12 +540,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 BRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 BGR
{
@@ -554,34 +554,34 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 BGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 BBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Bool2 BBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Bool3"/> value with the same value for all its components
/// Creates a new <see cref="Bool3"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Bool3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Bool3"/> instance.</param>
public static implicit operator Bool3(bool x) => new Bool3(x, x, x);
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="double2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="double2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 2)]
public struct Double2
{
/// <summary>
/// Gets an <see cref="Double2"/> value with all components set to 0
/// Gets an <see cref="Double2"/> value with all components set to 0.
/// </summary>
public static Double2 Zero => 0;
/// <summary>
/// Gets an <see cref="Double2"/> value with all components set to 1
/// Gets an <see cref="Double2"/> value with all components set to 1.
/// </summary>
public static Double2 One => 1;
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Double2 UnitX => new Double2(1, 0);
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Double2 UnitY => new Double2(0, 1);
/// <summary>
/// Creates a new <see cref="Double2"/> instance with the specified parameters
/// Creates a new <see cref="Double2"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
public Double2(double x, double y)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public double X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public double Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public double R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public double G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Double2"/> instance
/// Gets or sets a specific component in the current <see cref="Double2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public double this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Double2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Double2 XX => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Double2 YY => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Double2 RR => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Double2 GG => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Double2"/> value with the same value for all its components
/// Creates a new <see cref="Double2"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Double2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Double2"/> instance.</param>
public static implicit operator Double2(double x) => new Double2(x, x);
/// <summary>
/// Sums two <see cref="Double2"/> values
/// Sums two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to sum</param>
/// <param name="right">The second <see cref="Double2"/> value to sum</param>
/// <param name="left">The first <see cref="Double2"/> value to sum.</param>
/// <param name="right">The second <see cref="Double2"/> value to sum.</param>
public static Double2 operator +(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.+");
/// <summary>
/// Divides two <see cref="Double2"/> values
/// Divides two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to divide</param>
/// <param name="right">The second <see cref="Double2"/> value to divide</param>
/// <param name="left">The first <see cref="Double2"/> value to divide.</param>
/// <param name="right">The second <see cref="Double2"/> value to divide.</param>
public static Double2 operator /(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}./");
/// <summary>
/// Multiplies two <see cref="Double2"/> values
/// Multiplies two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to multiply</param>
/// <param name="right">The second <see cref="Double2"/> value to multiply</param>
/// <param name="left">The first <see cref="Double2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Double2"/> value to multiply.</param>
public static Double2 operator *(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.*");
/// <summary>
/// Subtracts two <see cref="Double2"/> values
/// Subtracts two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to subtract</param>
/// <param name="right">The second <see cref="Double2"/> value to subtract</param>
/// <param name="left">The first <see cref="Double2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Double2"/> value to subtract.</param>
public static Double2 operator -(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="double3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="double3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 3)]
public struct Double3
{
/// <summary>
/// Gets an <see cref="Double3"/> value with all components set to 0
/// Gets an <see cref="Double3"/> value with all components set to 0.
/// </summary>
public static Double3 Zero => 0;
/// <summary>
/// Gets an <see cref="Double3"/> value with all components set to 1
/// Gets an <see cref="Double3"/> value with all components set to 1.
/// </summary>
public static Double3 One => 1;
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Double3 UnitX => new Double3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Double3 UnitY => new Double3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static Double3 UnitZ => new Double3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Double3"/> instance with the specified parameters
/// Creates a new <see cref="Double3"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="z">The value to assign to the third vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="z">The value to assign to the third vector component.</param>
public Double3(double x, double y, double z)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public double X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public double Y { get; set; }
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public double Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public double R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public double G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public double B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Double3"/> instance
/// Gets or sets a specific component in the current <see cref="Double3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public double this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Double2 XX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Double2 YY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Double2 ZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Double2 RR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Double2 GG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Double2 BB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Double2 XXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 XYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 XZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Double2 YXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 YXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 YYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Double2 YYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 YZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Double2 ZXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 ZZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Double2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Double2 RRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 RRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 RRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 RGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Double2 RGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 RBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Double2 RBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Double2 GRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 GRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 GGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Double2 GGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 GGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 GBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Double2 GBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Double2 BRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 BRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Double2 BGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 BGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 BBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 BBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Double2 BBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Double3"/> value with the same value for all its components
/// Creates a new <see cref="Double3"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Double3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Double3"/> instance.</param>
public static implicit operator Double3(double x) => new Double3(x, x, x);
/// <summary>
/// Sums two <see cref="Double3"/> values
/// Sums two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to sum</param>
/// <param name="right">The second <see cref="Double3"/> value to sum</param>
/// <param name="left">The first <see cref="Double3"/> value to sum.</param>
/// <param name="right">The second <see cref="Double3"/> value to sum.</param>
public static Double3 operator +(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.+");
/// <summary>
/// Divides two <see cref="Double3"/> values
/// Divides two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to divide</param>
/// <param name="right">The second <see cref="Double3"/> value to divide</param>
/// <param name="left">The first <see cref="Double3"/> value to divide.</param>
/// <param name="right">The second <see cref="Double3"/> value to divide.</param>
public static Double3 operator /(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}./");
/// <summary>
/// Multiplies two <see cref="Double3"/> values
/// Multiplies two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to multiply</param>
/// <param name="right">The second <see cref="Double3"/> value to multiply</param>
/// <param name="left">The first <see cref="Double3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Double3"/> value to multiply.</param>
public static Double3 operator *(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.*");
/// <summary>
/// Subtracts two <see cref="Double3"/> values
/// Subtracts two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to subtract</param>
/// <param name="right">The second <see cref="Double3"/> value to subtract</param>
/// <param name="left">The first <see cref="Double3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Double3"/> value to subtract.</param>
public static Double3 operator -(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.-");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="float2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="float2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 2)]
public struct Float2
{
/// <summary>
/// Gets an <see cref="Float2"/> value with all components set to 0
/// Gets an <see cref="Float2"/> value with all components set to 0.
/// </summary>
public static Float2 Zero => 0;
/// <summary>
/// Gets an <see cref="Float2"/> value with all components set to 1
/// Gets an <see cref="Float2"/> value with all components set to 1.
/// </summary>
public static Float2 One => 1;
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Float2 UnitX => new Float2(1, 0);
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Float2 UnitY => new Float2(0, 1);
/// <summary>
/// Creates a new <see cref="Float2"/> instance with the specified parameters
/// Creates a new <see cref="Float2"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
public Float2(float x, float y)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public float X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public float Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public float R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public float G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Float2"/> instance
/// Gets or sets a specific component in the current <see cref="Float2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public float this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Float2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Float2 XX => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Float2 YY => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Float2 RR => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Float2 GG => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Float2"/> value with the same value for all its components
/// Creates a new <see cref="Float2"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Float2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Float2"/> instance.</param>
public static implicit operator Float2(float x) => new Float2(x, x);
/// <summary>
/// Sums two <see cref="Float2"/> values
/// Sums two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to sum</param>
/// <param name="right">The second <see cref="Float2"/> value to sum</param>
/// <param name="left">The first <see cref="Float2"/> value to sum.</param>
/// <param name="right">The second <see cref="Float2"/> value to sum.</param>
public static Float2 operator +(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.+");
/// <summary>
/// Divides two <see cref="Float2"/> values
/// Divides two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to divide</param>
/// <param name="right">The second <see cref="Float2"/> value to divide</param>
/// <param name="left">The first <see cref="Float2"/> value to divide.</param>
/// <param name="right">The second <see cref="Float2"/> value to divide.</param>
public static Float2 operator /(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}./");
/// <summary>
/// Multiplies two <see cref="Float2"/> values
/// Multiplies two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to multiply</param>
/// <param name="right">The second <see cref="Float2"/> value to multiply</param>
/// <param name="left">The first <see cref="Float2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Float2"/> value to multiply.</param>
public static Float2 operator *(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.*");
/// <summary>
/// Subtracts two <see cref="Float2"/> values
/// Subtracts two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to subtract</param>
/// <param name="right">The second <see cref="Float2"/> value to subtract</param>
/// <param name="left">The first <see cref="Float2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Float2"/> value to subtract.</param>
public static Float2 operator -(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="float3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="float3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 3)]
public struct Float3
{
/// <summary>
/// Gets an <see cref="Float3"/> value with all components set to 0
/// Gets an <see cref="Float3"/> value with all components set to 0.
/// </summary>
public static Float3 Zero => 0;
/// <summary>
/// Gets an <see cref="Float3"/> value with all components set to 1
/// Gets an <see cref="Float3"/> value with all components set to 1.
/// </summary>
public static Float3 One => 1;
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Float3 UnitX => new Float3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Float3 UnitY => new Float3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static Float3 UnitZ => new Float3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Float3"/> instance with the specified parameters
/// Creates a new <see cref="Float3"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="z">The value to assign to the third vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="z">The value to assign to the third vector component.</param>
public Float3(float x, float y, float z)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public float X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public float Y { get; set; }
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public float Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public float R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public float G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public float B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Float3"/> instance
/// Gets or sets a specific component in the current <see cref="Float3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public float this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Float2 XX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Float2 YY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Float2 ZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Float2 RR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Float2 GG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Float2 BB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Float2 XXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 XYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 XZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Float2 YXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 YXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 YYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Float2 YYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 YZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Float2 ZXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 ZZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Float2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Float2 RRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 RRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 RRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 RGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Float2 RGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 RBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Float2 RBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Float2 GRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 GRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 GGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Float2 GGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 GGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 GBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Float2 GBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Float2 BRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 BRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Float2 BGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 BGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 BBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 BBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Float2 BBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Float3"/> value with the same value for all its components
/// Creates a new <see cref="Float3"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Float3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Float3"/> instance.</param>
public static implicit operator Float3(float x) => new Float3(x, x, x);
/// <summary>
/// Sums two <see cref="Float3"/> values
/// Sums two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to sum</param>
/// <param name="right">The second <see cref="Float3"/> value to sum</param>
/// <param name="left">The first <see cref="Float3"/> value to sum.</param>
/// <param name="right">The second <see cref="Float3"/> value to sum.</param>
public static Float3 operator +(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.+");
/// <summary>
/// Divides two <see cref="Float3"/> values
/// Divides two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to divide</param>
/// <param name="right">The second <see cref="Float3"/> value to divide</param>
/// <param name="left">The first <see cref="Float3"/> value to divide.</param>
/// <param name="right">The second <see cref="Float3"/> value to divide.</param>
public static Float3 operator /(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}./");
/// <summary>
/// Multiplies two <see cref="Float3"/> values
/// Multiplies two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to multiply</param>
/// <param name="right">The second <see cref="Float3"/> value to multiply</param>
/// <param name="left">The first <see cref="Float3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Float3"/> value to multiply.</param>
public static Float3 operator *(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.*");
/// <summary>
/// Subtracts two <see cref="Float3"/> values
/// Subtracts two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to subtract</param>
/// <param name="right">The second <see cref="Float3"/> value to subtract</param>
/// <param name="left">The first <see cref="Float3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Float3"/> value to subtract.</param>
public static Float3 operator -(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.-");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="int2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="int2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 2)]
public struct Int2
{
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 0
/// Gets an <see cref="Int2"/> value with all components set to 0.
/// </summary>
public static Int2 Zero => 0;
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 1
/// Gets an <see cref="Int2"/> value with all components set to 1.
/// </summary>
public static Int2 One => 1;
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Int2 UnitX => new Int2(1, 0);
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Int2 UnitY => new Int2(0, 1);
/// <summary>
/// Creates a new <see cref="Int2"/> instance with the specified parameters
/// Creates a new <see cref="Int2"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
public Int2(int x, int y)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public int X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public int Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public int R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public int G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Int2"/> instance
/// Gets or sets a specific component in the current <see cref="Int2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public int this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Int2 XX => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Int2 YY => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Int2 RR => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Int2 GG => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Int2"/> value with the same value for all its components
/// Creates a new <see cref="Int2"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Int2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Int2"/> instance.</param>
public static implicit operator Int2(int x) => new Int2(x, x);
/// <summary>
/// Sums two <see cref="Int2"/> values
/// Sums two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to sum</param>
/// <param name="right">The second <see cref="Int2"/> value to sum</param>
/// <param name="left">The first <see cref="Int2"/> value to sum.</param>
/// <param name="right">The second <see cref="Int2"/> value to sum.</param>
public static Int2 operator +(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.+");
/// <summary>
/// Divides two <see cref="Int2"/> values
/// Divides two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to divide</param>
/// <param name="right">The second <see cref="Int2"/> value to divide</param>
/// <param name="left">The first <see cref="Int2"/> value to divide.</param>
/// <param name="right">The second <see cref="Int2"/> value to divide.</param>
public static Int2 operator /(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}./");
/// <summary>
/// Multiplies two <see cref="Int2"/> values
/// Multiplies two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to multiply</param>
/// <param name="right">The second <see cref="Int2"/> value to multiply</param>
/// <param name="left">The first <see cref="Int2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Int2"/> value to multiply.</param>
public static Int2 operator *(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.*");
/// <summary>
/// Subtracts two <see cref="Int2"/> values
/// Subtracts two <see cref="Int2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int2"/> value to subtract</param>
/// <param name="right">The second <see cref="Int2"/> value to subtract</param>
/// <param name="left">The first <see cref="Int2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Int2"/> value to subtract.</param>
public static Int2 operator -(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{nameof(Int2)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="int3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="int3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 3)]
public struct Int3
{
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 0
/// Gets an <see cref="Int3"/> value with all components set to 0.
/// </summary>
public static Int3 Zero => 0;
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 1
/// Gets an <see cref="Int3"/> value with all components set to 1.
/// </summary>
public static Int3 One => 1;
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Int3 UnitX => new Int3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Int3 UnitY => new Int3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static Int3 UnitZ => new Int3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Int3"/> instance with the specified parameters
/// Creates a new <see cref="Int3"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="z">The value to assign to the third vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="z">The value to assign to the third vector component.</param>
public Int3(int x, int y, int z)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public int X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public int Y { get; set; }
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public int Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public int R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public int G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public int B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Int3"/> instance
/// Gets or sets a specific component in the current <see cref="Int3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public int this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Int2 XX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Int2 YY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Int2 ZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Int2 RR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Int2 GG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Int2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Int2 BB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Int2 XXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 XXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 XYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 XZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int2 XZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Int2 YXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 YXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Int2 YYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 YYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 YZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int2 YZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int2 ZXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 ZZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Int2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Int2 RRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 RRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 RRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 RGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Int2 RGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 RBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int2 RBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Int2 GRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 GRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Int2 GGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 GGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 GBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int2 GBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int2 BRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 BRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Int2 BGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 BGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 BBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 BBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Int2 BBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Int3"/> value with the same value for all its components
/// Creates a new <see cref="Int3"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Int3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Int3"/> instance.</param>
public static implicit operator Int3(int x) => new Int3(x, x, x);
/// <summary>
/// Sums two <see cref="Int3"/> values
/// Sums two <see cref="Int3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int3"/> value to sum</param>
/// <param name="right">The second <see cref="Int3"/> value to sum</param>
/// <param name="left">The first <see cref="Int3"/> value to sum.</param>
/// <param name="right">The second <see cref="Int3"/> value to sum.</param>
public static Int3 operator +(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.+");
/// <summary>
/// Divides two <see cref="Int3"/> values
/// Divides two <see cref="Int3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int3"/> value to divide</param>
/// <param name="right">The second <see cref="Int3"/> value to divide</param>
/// <param name="left">The first <see cref="Int3"/> value to divide.</param>
/// <param name="right">The second <see cref="Int3"/> value to divide.</param>
public static Int3 operator /(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}./");
/// <summary>
/// Multiplies two <see cref="Int3"/> values
/// Multiplies two <see cref="Int3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int3"/> value to multiply</param>
/// <param name="right">The second <see cref="Int3"/> value to multiply</param>
/// <param name="left">The first <see cref="Int3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Int3"/> value to multiply.</param>
public static Int3 operator *(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.*");
/// <summary>
/// Subtracts two <see cref="Int3"/> values
/// Subtracts two <see cref="Int3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Int3"/> value to subtract</param>
/// <param name="right">The second <see cref="Int3"/> value to subtract</param>
/// <param name="left">The first <see cref="Int3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Int3"/> value to subtract.</param>
public static Int3 operator -(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{nameof(Int3)}.-");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+4 -4
ファイルの表示
@@ -3,22 +3,22 @@
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that indicates the ids of a given GPU thread running a compute shader
/// A <see langword="struct"/> that indicates the ids of a given GPU thread running a compute shader.
/// </summary>
public readonly struct ThreadIds
{
/// <summary>
/// Gets the X id of the current thread
/// Gets the X id of the current thread.
/// </summary>
public int X => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(X)}");
/// <summary>
/// Gets the Y id of the current thread
/// Gets the Y id of the current thread.
/// </summary>
public int Y => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(Y)}");
/// <summary>
/// Gets the Z id of the current thread
/// Gets the Z id of the current thread.
/// </summary>
public int Z => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(Z)}");
}
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="uint2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="uint2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 2)]
public struct UInt2
{
/// <summary>
/// Gets an <see cref="UInt2"/> value with all components set to 0
/// Gets an <see cref="UInt2"/> value with all components set to 0.
/// </summary>
public static UInt2 Zero => 0;
/// <summary>
/// Gets an <see cref="UInt2"/> value with all components set to 1
/// Gets an <see cref="UInt2"/> value with all components set to 1.
/// </summary>
public static UInt2 One => 1;
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitX => new UInt2(1, 0);
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitY => new UInt2(0, 1);
/// <summary>
/// Creates a new <see cref="UInt2"/> instance with the specified parameters
/// Creates a new <see cref="UInt2"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
public UInt2(uint x, uint y)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// 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
/// Gets or sets the value of the second vector component.
/// </summary>
public uint Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public uint R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public uint G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="UInt2"/> instance
/// Gets or sets a specific component in the current <see cref="UInt2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public float this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public UInt2 XX => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public UInt2 YY => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public UInt2 RR => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public UInt2 GG => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="UInt2"/> value with the same value for all its components
/// Creates a new <see cref="UInt2"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="UInt2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="UInt2"/> instance.</param>
public static implicit operator UInt2(uint x) => new UInt2(x, x);
/// <summary>
/// Sums two <see cref="UInt2"/> values
/// Sums two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to sum</param>
/// <param name="right">The second <see cref="UInt2"/> value to sum</param>
/// <param name="left">The first <see cref="UInt2"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt2"/> value to sum.</param>
public static UInt2 operator +(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.+");
/// <summary>
/// Divides two <see cref="UInt2"/> values
/// Divides two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to divide</param>
/// <param name="right">The second <see cref="UInt2"/> value to divide</param>
/// <param name="left">The first <see cref="UInt2"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt2"/> value to divide.</param>
public static UInt2 operator /(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}./");
/// <summary>
/// Multiplies two <see cref="UInt2"/> values
/// Multiplies two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to multiply</param>
/// <param name="right">The second <see cref="UInt2"/> value to multiply</param>
/// <param name="left">The first <see cref="UInt2"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt2"/> value to multiply.</param>
public static UInt2 operator *(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.*");
/// <summary>
/// Subtracts two <see cref="UInt2"/> values
/// Subtracts two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to subtract</param>
/// <param name="right">The second <see cref="UInt2"/> value to subtract</param>
/// <param name="left">The first <see cref="UInt2"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt2"/> value to subtract.</param>
public static UInt2 operator -(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="uint3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="uint3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 3)]
public struct UInt3
{
/// <summary>
/// Gets an <see cref="UInt3"/> value with all components set to 0
/// Gets an <see cref="UInt3"/> value with all components set to 0.
/// </summary>
public static UInt3 Zero => 0;
/// <summary>
/// Gets an <see cref="UInt3"/> value with all components set to 1
/// Gets an <see cref="UInt3"/> value with all components set to 1.
/// </summary>
public static UInt3 One => 1;
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitX => new UInt3(1, 0, 0);
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitY => new UInt3(0, 1, 0);
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitZ => new UInt3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="UInt3"/> instance with the specified parameters
/// Creates a new <see cref="UInt3"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component</param>
/// <param name="y">The value to assign to the second vector component</param>
/// <param name="z">The value to assign to the third vector component</param>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="z">The value to assign to the third vector component.</param>
public UInt3(uint x, uint y, uint z)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// 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
/// 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
/// Gets or sets the value of the third vector component.
/// </summary>
public uint Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public uint R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public uint G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public uint B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="UInt3"/> instance
/// Gets or sets a specific component in the current <see cref="UInt3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public uint this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public UInt2 XX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public UInt2 YY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public UInt2 ZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public UInt2 RR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public UInt2 GG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public UInt2 BB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public UInt2 XXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 XYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 XZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 YXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public UInt2 YYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 YZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 ZXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 ZXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 ZYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 ZZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public UInt2 ZZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public UInt2 RRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 RGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 RBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 GRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public UInt2 GGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 GBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public UInt2 BRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 BRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 BGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 BBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public UInt2 BBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="UInt3"/> value with the same value for all its components
/// Creates a new <see cref="UInt3"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="UInt3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="UInt3"/> instance.</param>
public static implicit operator UInt3(uint x) => new UInt3(x, x, x);
/// <summary>
/// Sums two <see cref="UInt3"/> values
/// Sums two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to sum</param>
/// <param name="right">The second <see cref="UInt3"/> value to sum</param>
/// <param name="left">The first <see cref="UInt3"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt3"/> value to sum.</param>
public static UInt3 operator +(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.+");
/// <summary>
/// Divides two <see cref="UInt3"/> values
/// Divides two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to divide</param>
/// <param name="right">The second <see cref="UInt3"/> value to divide</param>
/// <param name="left">The first <see cref="UInt3"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt3"/> value to divide.</param>
public static UInt3 operator /(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}./");
/// <summary>
/// Multiplies two <see cref="UInt3"/> values
/// Multiplies two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to multiply</param>
/// <param name="right">The second <see cref="UInt3"/> value to multiply</param>
/// <param name="left">The first <see cref="UInt3"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt3"/> value to multiply.</param>
public static UInt3 operator *(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.*");
/// <summary>
/// Subtracts two <see cref="UInt3"/> values
/// Subtracts two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to subtract</param>
/// <param name="right">The second <see cref="UInt3"/> value to subtract</param>
/// <param name="left">The first <see cref="UInt3"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt3"/> value to subtract.</param>
public static UInt3 operator -(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.-");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+6 -6
ファイルの表示
@@ -12,18 +12,18 @@ using static TerraFX.Interop.D3D12_COMMAND_LIST_TYPE;
namespace ComputeSharp.Graphics.Buffers.Abstract
{
/// <summary>
/// A <see langword="class"/> representing a typed structured buffer stored on GPU memory
/// A <see langword="class"/> representing a typed structured buffer stored on GPU memory.
/// </summary>
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
public abstract class StructuredBuffer<T> : Buffer<T>
where T : unmanaged
{
/// <summary>
/// Creates a new <see cref="StructuredBuffer{T}"/> instance with the specified parameters
/// Creates a new <see cref="StructuredBuffer{T}"/> instance with the specified parameters.
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
/// <param name="length">The number of items to store in the current buffer</param>
/// <param name="bufferType">The buffer type for the current buffer</param>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
/// <param name="length">The number of items to store in the current buffer.</param>
/// <param name="bufferType">The buffer type for the current buffer.</param>
internal StructuredBuffer(GraphicsDevice device, int length, BufferType bufferType)
: base(device, length, (uint)Unsafe.SizeOf<T>(), bufferType)
{
+9 -9
ファイルの表示
@@ -18,33 +18,33 @@ using static TerraFX.Interop.D3D12_COMMAND_LIST_TYPE;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory.
/// </summary>
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
[DebuggerTypeProxy(typeof(BufferDebugView<>))]
[DebuggerDisplay("{ToString(),raw}")]
public sealed class ConstantBuffer<T> : Buffer<T>
where T : unmanaged
{
/// <summary>
/// Creates a new <see cref="ConstantBuffer{T}"/> instance with the specified parameters
/// Creates a new <see cref="ConstantBuffer{T}"/> instance with the specified parameters.
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
/// <param name="length">The number of items to store in the current buffer</param>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
/// <param name="length">The number of items to store in the current buffer.</param>
internal ConstantBuffer(GraphicsDevice device, int length)
: base(device, length, (uint)GetPaddedSize(), BufferType.Constant)
{
}
/// <summary>
/// Gets a single <typeparamref name="T"/> value from the current constant buffer
/// Gets a single <typeparamref name="T"/> value from the current constant buffer.
/// </summary>
/// <param name="i">The index of the value to get</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
/// <param name="i">The index of the value to get.</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else.</remarks>
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ConstantBuffer<T>)}<T>[int]");
/// <summary>
/// Gets the right padded size for <typeparamref name="T"/> elements to store in the current instance
/// Gets the right padded size for <typeparamref name="T"/> elements to store in the current instance.
/// </summary>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
+8 -8
ファイルの表示
@@ -8,29 +8,29 @@ using ComputeSharp.Graphics.Buffers.Views;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="class"/> representing a typed readonly buffer stored on GPU memory
/// A <see langword="class"/> representing a typed readonly buffer stored on GPU memory.
/// </summary>
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
[DebuggerTypeProxy(typeof(BufferDebugView<>))]
[DebuggerDisplay("{ToString(),raw}")]
public sealed class ReadOnlyBuffer<T> : StructuredBuffer<T>
where T : unmanaged
{
/// <summary>
/// Creates a new <see cref="ReadOnlyBuffer{T}"/> instance with the specified parameters
/// Creates a new <see cref="ReadOnlyBuffer{T}"/> instance with the specified parameters.
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
/// <param name="length">The number of items to store in the current buffer</param>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
/// <param name="length">The number of items to store in the current buffer.</param>
internal ReadOnlyBuffer(GraphicsDevice device, int length)
: base(device, length, BufferType.ReadOnly)
{
}
/// <summary>
/// Gets a single <typeparamref name="T"/> value from the current read write buffer
/// Gets a single <typeparamref name="T"/> value from the current read write buffer.
/// </summary>
/// <param name="i">The index of the value to get</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
/// <param name="i">The index of the value to get.</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else.</remarks>
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyBuffer<T>)}<T>[int]");
/// <inheritdoc/>
+8 -8
ファイルの表示
@@ -8,29 +8,29 @@ using ComputeSharp.Graphics.Buffers.Views;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory.
/// </summary>
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
[DebuggerTypeProxy(typeof(BufferDebugView<>))]
[DebuggerDisplay("{ToString(),raw}")]
public sealed class ReadWriteBuffer<T> : StructuredBuffer<T>
where T : unmanaged
{
/// <summary>
/// Creates a new <see cref="ReadWriteBuffer{T}"/> instance with the specified parameters
/// Creates a new <see cref="ReadWriteBuffer{T}"/> instance with the specified parameters.
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
/// <param name="length">The number of items to store in the current buffer</param>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
/// <param name="length">The number of items to store in the current buffer.</param>
internal ReadWriteBuffer(GraphicsDevice device, int length)
: base(device, length, BufferType.ReadWrite)
{
}
/// <summary>
/// Gets or sets a single <typeparamref name="T"/> value from the current read write buffer
/// Gets or sets a single <typeparamref name="T"/> value from the current read write buffer.
/// </summary>
/// <param name="i">The index of the value to get or set</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
/// <param name="i">The index of the value to get or set.</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else.</remarks>
public ref T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadWriteBuffer<T>)}<T>[int]");
/// <inheritdoc/>
+1 -1
ファイルの表示
@@ -20,7 +20,7 @@ namespace ComputeSharp.Graphics.Buffers.Views
}
/// <summary>
/// Gets the items to display for the current instance
/// Gets the items to display for the current instance.
/// </summary>
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public T[]? Items { get; }
+2 -2
ファイルの表示
@@ -48,7 +48,7 @@ namespace ComputeSharp.Graphics
/// <summary>
/// Creates a new <see cref="ID3D12DescriptorHandleAllocator"/> instance with the specified parameters.
/// </summary>
/// <param name="device">The <see cref="ID3D12Device"/> instance to use</param>
/// <param name="device">The <see cref="ID3D12Device"/> instance to use.</param>
public ID3D12DescriptorHandleAllocator(ID3D12Device* device)
{
this.d3D12DescriptorHeap = device->CreateDescriptorHeap(DescriptorsPerHeap);
@@ -65,7 +65,7 @@ namespace ComputeSharp.Graphics
public ID3D12DescriptorHeap* D3D12DescriptorHeap => this.d3D12DescriptorHeap;
/// <summary>
/// Allocates a new CPU and GPU handle pair to use in a memory buffer
/// Allocates a new CPU and GPU handle pair to use in a memory buffer.
/// </summary>
/// <param name="d3d12CpuDescriptorHandle">The resulting <see cref="D3D12_CPU_DESCRIPTOR_HANDLE"/> value.</param>
/// <param name="d3d12CpuDescriptorHandle">The resulting <see cref="D3D12_GPU_DESCRIPTOR_HANDLE"/> value.</param>
+4 -4
ファイルの表示
@@ -19,11 +19,11 @@ namespace ComputeSharp.Graphics.Commands
private ComPtr<ID3D12PipelineState> d3D12PipelineState;
/// <summary>
/// Creates a new <see cref="PipelineState"/> instance with the specified parameters
/// Creates a new <see cref="PipelineState"/> instance with the specified parameters.
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> to use</param>
/// <param name="rootSignature">The <see cref="ID3D12RootSignature"/> value for the current shader</param>
/// <param name="computeShader">The bytecode for the compute shader to run</param>
/// <param name="device">The <see cref="GraphicsDevice"/> to use.</param>
/// <param name="rootSignature">The <see cref="ID3D12RootSignature"/> value for the current shader.</param>
/// <param name="computeShader">The bytecode for the compute shader to run.</param>
public PipelineData(ComPtr<ID3D12RootSignature> d3D12RootSignature, ComPtr<ID3D12PipelineState> d3D12PipelineState)
{
this.d3D12RootSignature = d3D12RootSignature;
+4 -4
ファイルの表示
@@ -6,12 +6,12 @@ using System.Linq;
namespace ComputeSharp.Graphics.Extensions
{
/// <summary>
/// A <see langword="class"/> that provides extension methods for the <see cref="Type"/> type
/// A <see langword="class"/> that provides extension methods for the <see cref="Type"/> type.
/// </summary>
internal static class TypeExtensions
{
/// <summary>
/// The mapping of supported known types to display string
/// The mapping of supported known types to display string.
/// </summary>
private static readonly IReadOnlyDictionary<Type, string> KnownTypes = new Dictionary<Type, string>
{
@@ -23,9 +23,9 @@ namespace ComputeSharp.Graphics.Extensions
};
/// <summary>
/// Gets a friendly display <see langword="string"/> for the input type
/// Gets a friendly display <see langword="string"/> for the input type.
/// </summary>
/// <param name="type">The input type to analyze</param>
/// <param name="type">The input type to analyze.</param>
[Pure]
public static string ToFriendlyString(this Type type)
{
+3 -3
ファイルの表示
@@ -10,9 +10,9 @@ namespace ComputeSharp.Exceptions
public sealed class HlslCompilationException : Exception
{
/// <summary>
/// Creates a new <see cref="HlslCompilationException"/> instance
/// Creates a new <see cref="HlslCompilationException"/> instance.
/// </summary>
/// <param name="error">The error message produced by the DXC compiler</param>
/// <param name="error">The error message produced by the DXC compiler.</param>
internal HlslCompilationException(string error)
: base(GetExceptionMessage(error))
{
@@ -28,7 +28,7 @@ namespace ComputeSharp.Exceptions
{
StringBuilder builder = new(512);
builder.AppendLine("The Dxc compiler encountered one or more errors while trying to compile the shader:");
builder.AppendLine("The DXC compiler encountered one or more errors while trying to compile the shader:");
builder.AppendLine();
builder.AppendLine(error.Trim());
builder.AppendLine();
+14 -14
ファイルの表示
@@ -8,15 +8,15 @@ using Microsoft.Toolkit.Diagnostics;
namespace ComputeSharp.Shaders.Extensions
{
/// <summary>
/// A <see langword="class"/> that provides extension methods for the <see langword="ILGenerator"/> type
/// A <see langword="class"/> that provides extension methods for the <see langword="ILGenerator"/> type.
/// </summary>
internal static class ILGeneratorExtensions
{
/// <summary>
/// Puts the appropriate <see langword="ldsfld"/>, <see langword="ldfld"/>, <see langword="call"/> or <see langword="callvirt"/> instruction to read a member onte the stream of instructions
/// Puts the appropriate <see langword="ldsfld"/>, <see langword="ldfld"/>, <see langword="call"/> or <see langword="callvirt"/> instruction to read a member onte the stream of instructions.
/// </summary>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions</param>
/// <param name="member">The member to read</param>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions.</param>
/// <param name="member">The member to read.</param>
public static void EmitReadMember(this ILGenerator il, MemberInfo member)
{
switch (member)
@@ -32,18 +32,18 @@ namespace ComputeSharp.Shaders.Extensions
}
/// <summary>
/// Puts the appropriate <see langword="ldc.i4"/>, <see langword="conv.i"/> and <see langword="add"/> instructions to advance a reference onto the stream of instructions
/// Puts the appropriate <see langword="ldc.i4"/>, <see langword="conv.i"/> and <see langword="add"/> instructions to advance a reference onto the stream of instructions.
/// </summary>
/// <typeparam name="T">The type of reference at the top of the stack</typeparam>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions</param>
/// <param name="offset">The offset to use to advance the current reference on top of the execution stack</param>
/// <typeparam name="T">The type of reference at the top of the stack.</typeparam>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions.</param>
/// <param name="offset">The offset to use to advance the current reference on top of the execution stack.</param>
public static void EmitAddOffset<T>(this ILGenerator il, int offset) => il.EmitAddOffset(Unsafe.SizeOf<T>() * offset);
/// <summary>
/// Puts the appropriate <see langword="ldc.i4"/>, <see langword="conv.i"/> and <see langword="add"/> instructions to advance a reference onto the stream of instructions
/// Puts the appropriate <see langword="ldc.i4"/>, <see langword="conv.i"/> and <see langword="add"/> instructions to advance a reference onto the stream of instructions.
/// </summary>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions</param>
/// <param name="offset">The offset in bytes to use to advance the current reference on top of the execution stack</param>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions.</param>
/// <param name="offset">The offset in bytes to use to advance the current reference on top of the execution stack.</param>
public static void EmitAddOffset(this ILGenerator il, int offset)
{
// Push the offset to the stack
@@ -74,10 +74,10 @@ namespace ComputeSharp.Shaders.Extensions
}
/// <summary>
/// Puts the appropriate <see langword="stind"/> or <see langword="stobj"/> instruction to write to a reference onto the stream of instructions
/// Puts the appropriate <see langword="stind"/> or <see langword="stobj"/> instruction to write to a reference onto the stream of instructions.
/// </summary>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions</param>
/// <param name="type">The type of value being written to the current reference on top of the execution stack</param>
/// <param name="il">The input <see cref="ILGenerator"/> instance to use to emit instructions.</param>
/// <param name="type">The type of value being written to the current reference on top of the execution stack.</param>
public static void EmitStoreToAddress(this ILGenerator il, Type type)
{
if (type.IsValueType)
+19 -19
ファイルの表示
@@ -6,7 +6,7 @@ using System.Numerics;
namespace ComputeSharp.Shaders.Mappings
{
/// <summary>
/// A <see langword="class"/> that contains and maps known HLSL type names to common .NET types
/// A <see langword="class"/> that contains and maps known HLSL type names to common .NET types.
/// </summary>
internal static class HlslKnownTypes
{
@@ -20,10 +20,10 @@ namespace ComputeSharp.Shaders.Mappings
});
/// <summary>
/// Checks whether or not the input type is a known scalar type
/// Checks whether or not the input type is a known scalar type.
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a known HLSL scalar type</returns>
/// <param name="type">The input <see cref="Type"/> instance to check.</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a known HLSL scalar type.</returns>
[Pure]
public static bool IsKnownScalarType(Type type) => type == typeof(bool) ||
type == typeof(Bool) ||
@@ -33,10 +33,10 @@ namespace ComputeSharp.Shaders.Mappings
type == typeof(double);
/// <summary>
/// Checks whether or not the input type is a known vector type
/// Checks whether or not the input type is a known vector type.
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a known HLSL vector type</returns>
/// <param name="type">The input <see cref="Type"/> instance to check.</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a known HLSL vector type.</returns>
[Pure]
public static bool IsKnownVectorType(Type type) => _HlslMappedVectorTypes.Contains(type) ||
type == typeof(Vector2) ||
@@ -44,38 +44,38 @@ namespace ComputeSharp.Shaders.Mappings
type == typeof(Vector4);
/// <summary>
/// Checks whether or not the input type is a known buffer type
/// Checks whether or not the input type is a known buffer type.
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a known buffer type</returns>
/// <param name="type">The input <see cref="Type"/> instance to check.</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a known buffer type.</returns>
[Pure]
public static bool IsKnownBufferType(Type type) => IsConstantBufferType(type) ||
IsReadOnlyBufferType(type) ||
IsReadWriteBufferType(type);
/// <summary>
/// Checks whether or not the input type is a <see cref="ConstantBuffer{T}"/> value
/// Checks whether or not the input type is a <see cref="ConstantBuffer{T}"/> value.
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="ConstantBuffer{T}"/> instance</returns>
/// <param name="type">The input <see cref="Type"/> instance to check.</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="ConstantBuffer{T}"/> instance.</returns>
[Pure]
public static bool IsConstantBufferType(Type type) => type.IsGenericType &&
type.GetGenericTypeDefinition() == typeof(ConstantBuffer<>);
/// <summary>
/// Checks whether or not the input type is a <see cref="ReadOnlyBuffer{T}"/> value
/// Checks whether or not the input type is a <see cref="ReadOnlyBuffer{T}"/> value.
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="ReadOnlyBuffer{T}"/> instance</returns>
/// <param name="type">The input <see cref="Type"/> instance to check.</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="ReadOnlyBuffer{T}"/> instance.</returns>
[Pure]
public static bool IsReadOnlyBufferType(Type type) => type.IsGenericType &&
type.GetGenericTypeDefinition() == typeof(ReadOnlyBuffer<>);
/// <summary>
/// Checks whether or not the input type is a <see cref="ReadWriteBuffer{T}"/> value
/// Checks whether or not the input type is a <see cref="ReadWriteBuffer{T}"/> value.
/// </summary>
/// <param name="type">The input <see cref="Type"/> instance to check</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="ReadWriteBuffer{T}"/> instance</returns>
/// <param name="type">The input <see cref="Type"/> instance to check.</param>
/// <returns>A <see langword="bool"/> indicating whether the input <see cref="Type"/> is in fact a <see cref="ReadWriteBuffer{T}"/> instance.</returns>
[Pure]
public static bool IsReadWriteBufferType(Type type) => type.IsGenericType &&
type.GetGenericTypeDefinition() == typeof(ReadWriteBuffer<>);
+3 -3
ファイルの表示
@@ -14,13 +14,13 @@ namespace ComputeSharp.Shaders.Renderer
internal static class HlslShaderRenderer
{
/// <summary>
/// Renders a new HLSL shader source with the given parameters
/// Renders a new HLSL shader source with the given parameters.
/// </summary>
/// <param name="threadsX">The number of threads in each thread group for the X axis.</param>
/// <param name="threadsY">The number of threads in each thread group for the Y axis.</param>
/// <param name="threadsZ">The number of threads in each thread group for the Z axis.</param>
/// <param name="info">The input <see cref="IShaderLoader"/> instance with the shader information</param>
/// <returns>The source code for the new HLSL shader</returns>
/// <param name="info">The input <see cref="IShaderLoader"/> instance with the shader information.</param>
/// <returns>The source code for the new HLSL shader.</returns>
[Pure]
public static ArrayPoolStringBuilder Render(int threadsX, int threadsY, int threadsZ, IShaderLoader info)
{
+10 -10
ファイルの表示
@@ -4,37 +4,37 @@ using System.Runtime.CompilerServices;
namespace ComputeSharp.Shaders.Translation.Models
{
/// <summary>
/// A <see langword="struct"/> representing a key for a given shader
/// A <see langword="struct"/> representing a key for a given shader.
/// </summary>
internal readonly struct ShaderKey : IEquatable<ShaderKey>
{
/// <summary>
/// The hashcode of the current shader type
/// The hashcode of the current shader type.
/// </summary>
private readonly int Id;
/// <summary>
/// The number of iterations to run on the X axis
/// The number of iterations to run on the X axis.
/// </summary>
private readonly int ThreadsX;
/// <summary>
/// The number of iterations to run on the Y axis
/// The number of iterations to run on the Y axis.
/// </summary>
private readonly int ThreadsY;
/// <summary>
/// The number of iterations to run on the Z axis
/// The number of iterations to run on the Z axis.
/// </summary>
private readonly int ThreadsZ;
/// <summary>
/// Creates a new <see cref="ShaderKey"/> instance with the specified parameters
/// Creates a new <see cref="ShaderKey"/> instance with the specified parameters.
/// </summary>
/// <param name="id">The hashcode of the current shader type</param>
/// <param name="threadsX">The number of iterations to run on the X axis</param>
/// <param name="threadsY">The number of iterations to run on the Y axis</param>
/// <param name="threadsZ">The number of iterations to run on the Z axis</param>
/// <param name="id">The hashcode of the current shader type.</param>
/// <param name="threadsX">The number of iterations to run on the X axis.</param>
/// <param name="threadsY">The number of iterations to run on the Y axis.</param>
/// <param name="threadsZ">The number of iterations to run on the Z axis.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public ShaderKey(int id, int threadsX, int threadsY, int threadsZ)
{
+1 -1
ファイルの表示
@@ -30,7 +30,7 @@ namespace ComputeSharp.Shaders.Translation
private static readonly ComPtr<IDxcIncludeHandler> DxcIncludeHandler;
/// <summary>
/// Initializes <see cref="DxcCompiler"/>, <see cref="DxcLibrary"/> and <see cref="DxcIncludeHandler"/>
/// Initializes <see cref="DxcCompiler"/>, <see cref="DxcLibrary"/> and <see cref="DxcIncludeHandler"/>.
/// </summary>
static ShaderCompiler()
{
+17 -17
ファイルの表示
@@ -10,29 +10,29 @@ using ComputeSharp.Shaders.Extensions;
namespace ComputeSharp.Shaders.Translation
{
/// <summary>
/// A <see langword="static"/> <see langword="class"/> that handles the cache system for the generated shaders
/// A <see langword="static"/> <see langword="class"/> that handles the cache system for the generated shaders.
/// </summary>
internal static class ShaderHashCodeProvider
{
/// <summary>
/// A type containing static info for a given shader type <typeparamref name="T"/>
/// A type containing static info for a given shader type <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
private static class TypeInfo<T>
where T : struct, IComputeShader
{
/// <summary>
/// The id of the compute shader type in use
/// The id of the compute shader type in use.
/// </summary>
public static readonly int Id;
/// <summary>
/// The optional <see cref="Hasher{T}"/> instance, if needed
/// The optional <see cref="Hasher{T}"/> instance, if needed.
/// </summary>
public static readonly Hasher<T>? Hasher;
/// <summary>
/// Initializes the static members of the <see cref="TypeInfo{T}"/> type
/// Initializes the static members of the <see cref="TypeInfo{T}"/> type.
/// </summary>
static TypeInfo()
{
@@ -53,10 +53,10 @@ namespace ComputeSharp.Shaders.Translation
}
/// <summary>
/// Gets a unique hashcode for the input compute shader instance
/// Gets a unique hashcode for the input compute shader instance.
/// </summary>
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
/// <param name="shader">The input <typeparamref name="T"/> instance representing the shader to run</param>
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
/// <param name="shader">The input <typeparamref name="T"/> instance representing the shader to run.</param>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int GetHashCode<T>(in T shader)
@@ -72,20 +72,20 @@ namespace ComputeSharp.Shaders.Translation
}
/// <summary>
/// A <see langword="delegate"/> that represents an aggregate hash function for a given <typeparamref name="T"/> instance
/// A <see langword="delegate"/> that represents an aggregate hash function for a given <typeparamref name="T"/> instance.
/// </summary>
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
/// <param name="hash">The initial hash value</param>
/// <param name="shader">The compute shader instance to use to compute the final hash value</param>
/// <returns>The final hash value for the input closure</returns>
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
/// <param name="hash">The initial hash value.</param>
/// <param name="shader">The compute shader instance to use to compute the final hash value.</param>
/// <returns>The final hash value for the input closure.</returns>
private delegate int Hasher<T>(int hash, in T shader)
where T : struct, IComputeShader;
/// <summary>
/// Builds a new <see cref="Hasher{T}"/> instance for the target <see cref="Type"/> and sequence of <see cref="FieldInfo"/> values
/// Builds a new <see cref="Hasher{T}"/> instance for the target <see cref="Type"/> and sequence of <see cref="FieldInfo"/> values.
/// </summary>
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
/// <param name="fieldInfos">The list of captured fields to inspect</param>
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
/// <param name="fieldInfos">The list of captured fields to inspect.</param>
[Pure]
private static Hasher<T> BuildDynamicHasher<T>(IReadOnlyCollection<FieldInfo> fieldInfos)
where T : struct, IComputeShader
+8 -8
ファイルの表示
@@ -97,10 +97,10 @@ namespace ComputeSharp.Shaders.Translation
public IReadOnlyCollection<string> DeclaredTypes => this.declaredTypes;
/// <summary>
/// Loads and processes an input<typeparamref name="T"/> shadeer
/// Loads and processes an input<typeparamref name="T"/> shadeer.
/// </summary>
/// <param name="shader">The <typeparamref name="T"/> instance to use to build the shader</param>
/// <returns>A new <see cref="ShaderLoader"/> instance representing the input shader</returns>
/// <param name="shader">The <typeparamref name="T"/> instance to use to build the shader.</param>
/// <returns>A new <see cref="ShaderLoader"/> instance representing the input shader.</returns>
[Pure]
public static ShaderLoader<T> Load(in T shader)
{
@@ -119,9 +119,9 @@ namespace ComputeSharp.Shaders.Translation
}
/// <summary>
/// Loads the fields info for the current shader being loaded
/// Loads the fields info for the current shader being loaded.
/// </summary>
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader</param>
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader.</param>
private void LoadFieldsInfo(object shader)
{
IReadOnlyList<FieldInfo> shaderFields = typeof(T).GetFields(
@@ -147,10 +147,10 @@ namespace ComputeSharp.Shaders.Translation
}
/// <summary>
/// Loads a specified <see cref="ReadableMember"/> and adds it to the shader model
/// Loads a specified <see cref="ReadableMember"/> and adds it to the shader model.
/// </summary>
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader</param>
/// <param name="memberInfo">The target <see cref="FieldInfo"/> to load</param>
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader.</param>
/// <param name="memberInfo">The target <see cref="FieldInfo"/> to load.</param>
private void LoadFieldInfo(object shader, FieldInfo fieldInfo)
{
Type fieldType = fieldInfo.FieldType;
+1 -1
ファイルの表示
@@ -18,7 +18,7 @@ namespace System.Numerics
public static Span<Vector2> AsVector2Span(this Float2[] array) => Cast<Float2, Vector2>(array);
/// <summary>
/// Converts a <see cref="Float2"/> <see cref="ReadOnlySpan{T}"/> into a <see cref="ReadOnlySpan{T}"/> with items of type <see cref="Vector2"/>
/// Converts a <see cref="Float2"/> <see cref="ReadOnlySpan{T}"/> into a <see cref="ReadOnlySpan{T}"/> with items of type <see cref="Vector2"/>.
/// </summary>
/// <param name="span">The input <see cref="Float2"/> <see cref="ReadOnlySpan{T}"/>.</param>
/// <returns>A <see cref="Span{T}"/> with items of type <see cref="Vector2"/>, mapping the original <see cref="ReadOnlySpan{T}"/>.</returns>
+1 -1
ファイルの表示
@@ -18,7 +18,7 @@ namespace System.Numerics
public static Span<Float2> AsFloat2Span(this Vector2[] array) => Cast<Vector2, Float2>(array);
/// <summary>
/// Converts a <see cref="Vector2"/> <see cref="ReadOnlySpan{T}"/> into a <see cref="ReadOnlySpan{T}"/> with items of type <see cref="Float2"/>
/// Converts a <see cref="Vector2"/> <see cref="ReadOnlySpan{T}"/> into a <see cref="ReadOnlySpan{T}"/> with items of type <see cref="Float2"/>.
/// </summary>
/// <param name="span">The input <see cref="Vector2"/> <see cref="ReadOnlySpan{T}"/>.</param>
/// <returns>A <see cref="Span{T}"/> with items of type <see cref="Float2"/>, mapping the original <see cref="ReadOnlySpan{T}"/>.</returns>
+7 -7
ファイルの表示
@@ -5,24 +5,24 @@ using System.Runtime.CompilerServices;
namespace Windows.Foundation
{
/// <summary>
/// A <see langword="class"/> with some extension methods for the <see cref="Point"/> type
/// A <see langword="class"/> with some extension methods for the <see cref="Point"/> type.
/// </summary>
public static class PointExtensions
{
/// <summary>
/// Converts a <see cref="Point"/> value to a <see cref="Vector2"/>
/// Converts a <see cref="Point"/> value to a <see cref="Vector2"/>.
/// </summary>
/// <param name="value">The input <see cref="Point"/> to convert</param>
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Point"/></returns>
/// <param name="value">The input <see cref="Point"/> to convert.</param>
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Point"/>.</returns>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector2 ToVector2(this Point value) => new((float)value.X, (float)value.Y);
/// <summary>
/// Converts a <see cref="Vector2"/> value to a <see cref="Point"/>
/// Converts a <see cref="Vector2"/> value to a <see cref="Point"/>.
/// </summary>
/// <param name="value">The input <see cref="Vector2"/> to convert</param>
/// <returns>A <see cref="Point"/> value representing the input <see cref="Vector2"/></returns>
/// <param name="value">The input <see cref="Vector2"/> to convert.</param>
/// <returns>A <see cref="Point"/> value representing the input <see cref="Vector2"/>.</returns>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Point ToPoint(this Vector2 value) => new(value.X, value.Y);
+9 -9
ファイルの表示
@@ -5,26 +5,26 @@ using System.Runtime.CompilerServices;
namespace Windows.Foundation
{
/// <summary>
/// A <see langword="class"/> with some extension methods for the <see cref="Rect"/> type
/// A <see langword="class"/> with some extension methods for the <see cref="Rect"/> type.
/// </summary>
public static class RectExtensions
{
/// <summary>
/// Converts a <see cref="Rect"/> value to a <see cref="Vector2"/>
/// Converts a <see cref="Rect"/> value to a <see cref="Vector2"/>.
/// </summary>
/// <param name="value">The input <see cref="Rect"/> to convert</param>
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Rect"/></returns>
/// <remarks>The input <see cref="Rect"/> is read in the following order: <see cref="Rect.Left"/>, <see cref="Rect.Top"/>, <see cref="Rect.Right"/>, <see cref="Rect.Bottom"/></remarks>
/// <param name="value">The input <see cref="Rect"/> to convert.</param>
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Rect"/>.</returns>
/// <remarks>The input <see cref="Rect"/> is read in the following order: <see cref="Rect.Left"/>, <see cref="Rect.Top"/>, <see cref="Rect.Right"/>, <see cref="Rect.Bottom"/>.</remarks>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector4 ToVector2(this Rect value) => new((float)value.Left, (float)value.Top, (float)value.Right, (float)value.Bottom);
/// <summary>
/// Converts a <see cref="Vector2"/> value to a <see cref="Rect"/>
/// Converts a <see cref="Vector2"/> value to a <see cref="Rect"/>.
/// </summary>
/// <param name="value">The input <see cref="Vector2"/> to convert</param>
/// <returns>A <see cref="Rect"/> value representing the input <see cref="Vector2"/></returns>
/// <remarks>The input <see cref="Vector4"/> is assigned in the following order: <see cref="Rect.Left"/>, <see cref="Rect.Top"/>, <see cref="Rect.Right"/>, <see cref="Rect.Bottom"/></remarks>
/// <param name="value">The input <see cref="Vector2"/> to convert.</param>
/// <returns>A <see cref="Rect"/> value representing the input <see cref="Vector2"/>.</returns>
/// <remarks>The input <see cref="Vector4"/> is assigned in the following order: <see cref="Rect.Left"/>, <see cref="Rect.Top"/>, <see cref="Rect.Right"/>, <see cref="Rect.Bottom"/>.</remarks>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Rect ToPoint(this Vector4 value) => new(value.X, value.Y, value.Z, value.W);
+9 -9
ファイルの表示
@@ -5,26 +5,26 @@ using System.Runtime.CompilerServices;
namespace Windows.Foundation
{
/// <summary>
/// A <see langword="class"/> with some extension methods for the <see cref="Size"/> type
/// A <see langword="class"/> with some extension methods for the <see cref="Size"/> type.
/// </summary>
public static class SizeExtensions
{
/// <summary>
/// Converts a <see cref="Size"/> value to a <see cref="Vector2"/>
/// Converts a <see cref="Size"/> value to a <see cref="Vector2"/>.
/// </summary>
/// <param name="value">The input <see cref="Size"/> to convert</param>
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Size"/></returns>
/// <remarks>The input <see cref="Size"/> is read in the following order: <see cref="Size.Width"/>, <see cref="Size.Height"/></remarks>
/// <param name="value">The input <see cref="Size"/> to convert.</param>
/// <returns>A <see cref="Vector2"/> value representing the input <see cref="Size"/>.</returns>
/// <remarks>The input <see cref="Size"/> is read in the following order: <see cref="Size.Width"/>, <see cref="Size.Height"/>.</remarks>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector2 ToVector2(this Size value) => new((float)value.Width, (float)value.Height);
/// <summary>
/// Converts a <see cref="Vector2"/> value to a <see cref="Size"/>
/// Converts a <see cref="Vector2"/> value to a <see cref="Size"/>.
/// </summary>
/// <param name="value">The input <see cref="Vector2"/> to convert</param>
/// <returns>A <see cref="Point"/> value representing the input <see cref="Vector2"/></returns>
/// <remarks>The input <see cref="Size"/> is assigned in the following order: <see cref="Size.Width"/>, <see cref="Size.Height"/></remarks>
/// <param name="value">The input <see cref="Vector2"/> to convert.</param>
/// <returns>A <see cref="Point"/> value representing the input <see cref="Vector2"/>.</returns>
/// <remarks>The input <see cref="Size"/> is assigned in the following order: <see cref="Size.Width"/>, <see cref="Size.Height"/>.</remarks>
[Pure]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Size ToPoint(this Vector2 value) => new(value.X, value.Y);
+5 -5
ファイルの表示
@@ -5,20 +5,20 @@ using System.Runtime.CompilerServices;
namespace ComputeSharp.Tests.Extensions
{
/// <summary>
/// An helper <see langword="class"/> with methods to process fixed-size buffers
/// An helper <see langword="class"/> with methods to process fixed-size buffers.
/// </summary>
public static class SpanExtensions
{
/// <summary>
/// The maximum threshold to validate two <see langword="float"/> values as being equal
/// The maximum threshold to validate two <see langword="float"/> values as being equal.
/// </summary>
private const float FloatThreshold = 0.00001f;
/// <summary>
/// Checks whether or not the two input <see cref="Span{T}"/> instances have the same content
/// Checks whether or not the two input <see cref="Span{T}"/> instances have the same content.
/// </summary>
/// <param name="a">The first <see cref="Span{T}"/> to check</param>
/// <param name="b">The second <see cref="Span{T}"/> to check</param>
/// <param name="a">The first <see cref="Span{T}"/> to check.</param>
/// <param name="b">The second <see cref="Span{T}"/> to check.</param>
[Pure]
public static bool ContentEquals(this Span<float> a, Span<float> b)
{