Rename DispatchAxis to DefaultThreadGroupSizes

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-21 18:03:19 +01:00
1 親 cecc16a52e
コミット be0f0cf593
66ファイル変更
+216 -213

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

+1 -1
ファイルの表示
@@ -81,7 +81,7 @@ internal static partial class BlasHelpers
/// Kernel for <see cref="FullyConnectedForwardGpu"/>.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct FullyConnectedForwardKernel : IComputeShader
{
+1 -1
ファイルの表示
@@ -109,7 +109,7 @@ public partial class DispatchingBenchmark : IDisposable
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TestShader : IComputeShader
{
@@ -308,7 +308,7 @@ public sealed partial class HlslBokehBlurProcessor
/// Kernel for the vertical convolution pass.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct VerticalConvolutionProcessor : IComputeShader
{
@@ -347,7 +347,7 @@ public sealed partial class HlslBokehBlurProcessor
/// Kernel for the horizontal convolution pass.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HorizontalConvolutionAndAccumulatePartialsProcessor : IComputeShader
{
@@ -388,7 +388,7 @@ public sealed partial class HlslBokehBlurProcessor
/// Kernel for the gamma highlight pass.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GammaHighlightProcessor : IComputeShader
{
@@ -414,7 +414,7 @@ public sealed partial class HlslBokehBlurProcessor
/// Kernel for the inverse gamma highlight pass.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct InverseGammaHighlightProcessor : IComputeShader
{
@@ -118,7 +118,7 @@ public sealed partial class HlslGaussianBlurProcessor
/// Kernel for the vertical convolution pass.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct VerticalConvolutionProcessor : IComputeShader
{
@@ -152,7 +152,7 @@ public sealed partial class HlslGaussianBlurProcessor
/// Kernel for the horizontal convolution pass.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HorizontalConvolutionProcessor : IComputeShader
{
+1 -1
ファイルの表示
@@ -4,7 +4,7 @@ namespace ComputeSharp.Sample.FSharp.Shaders;
/// A sample shader thaat just multiplies items in a buffer by two.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct MultiplyByTwo : IComputeShader
{
+1 -1
ファイルの表示
@@ -24,7 +24,7 @@ Formatting.PrintMatrix(array, 10, 10, "AFTER");
/// The sample kernel that multiples all items by two.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MultiplyByTwo : IComputeShader
{
+1 -1
ファイルの表示
@@ -7,7 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ColorfulInfinity : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ContouredLayers : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ExtrudedTruchetPattern : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -7,7 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FourColorGradient : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -7,7 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FractalTiling : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -5,7 +5,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// Ported from <see href="https://www.shadertoy.com/new"/>.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HelloWorld : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by Syntopia.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MengerJourney : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by whisky_shusuky.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Octagrams : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -7,7 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ProteanClouds : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -7,7 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PyramidPattern : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TerracedHills : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TriangleGridContouring : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TwoTiledTruchet : IComputeShader<float4>
{
+10 -10
ファイルの表示
@@ -46,24 +46,24 @@ partial class ComputeShaderDescriptorGenerator
// Check for a dispatch axis argument first
if (attribute.ConstructorArguments.Length == 1)
{
int dispatchAxis = (int)attribute.ConstructorArguments[0].Value!;
int defaultSize = (int)attribute.ConstructorArguments[0].Value!;
(threadsX, threadsY, threadsZ) = (DispatchAxis)dispatchAxis switch
(threadsX, threadsY, threadsZ) = (DefaultThreadGroupSizes)defaultSize switch
{
DispatchAxis.X => (64, 1, 1),
DispatchAxis.Y => (1, 64, 1),
DispatchAxis.Z => (1, 1, 64),
DispatchAxis.XY => (8, 8, 1),
DispatchAxis.XZ => (8, 1, 8),
DispatchAxis.YZ => (1, 8, 8),
DispatchAxis.XYZ => (4, 4, 4),
DefaultThreadGroupSizes.X => (64, 1, 1),
DefaultThreadGroupSizes.Y => (1, 64, 1),
DefaultThreadGroupSizes.Z => (1, 1, 64),
DefaultThreadGroupSizes.XY => (8, 8, 1),
DefaultThreadGroupSizes.XZ => (8, 1, 8),
DefaultThreadGroupSizes.YZ => (1, 8, 8),
DefaultThreadGroupSizes.XYZ => (4, 4, 4),
_ => (0, 0, 0)
};
// Validate the dispatch axis argument
if ((threadsX, threadsY, threadsZ) is (0, 0, 0))
{
diagnostics.Add(InvalidThreadGroupSizeAttributeDefaultThreadGroupSize, structDeclarationSymbol, structDeclarationSymbol);
diagnostics.Add(InvalidThreadGroupSizeAttributeDefaultThreadGroupSizes, structDeclarationSymbol, structDeclarationSymbol);
threadsX = threadsY = threadsZ = 0;
isCompilationEnabled = false;
+1 -1
ファイルの表示
@@ -60,9 +60,9 @@
<!-- ComputeSharp APIs -->
<Compile Include="..\ComputeSharp\Core\Attributes\Enums\CompileOptions.cs" Link="ComputeSharp\Core\Attributes\Enums\CompileOptions.cs" />
<Compile Include="..\ComputeSharp\Core\Attributes\Enums\DefaultThreadGroupSizes.cs" Link="ComputeSharp\Core\Attributes\Enums\DefaultThreadGroupSizes.cs" />
<Compile Include="..\ComputeSharp\Core\Attributes\GroupSharedAttribute.cs" Link="ComputeSharp\Core\Attributes\GroupSharedAttribute.cs" />
<Compile Include="..\ComputeSharp\Core\Attributes\ThreadGroupSizeAttribute.cs" Link="ComputeSharp\Core\Attributes\ThreadGroupSizeAttribute.cs" />
<Compile Include="..\ComputeSharp\Core\Dispatch\DispatchAxis.cs" Link="ComputeSharp\Core\Dispatch\DispatchAxis.cs" />
<Compile Include="..\ComputeSharp\Core\Dispatch\DispatchSize.cs" Link="ComputeSharp\Core\Dispatch\DispatchSize.cs" />
<Compile Include="..\ComputeSharp\Core\Dispatch\GridIds.cs" Link="ComputeSharp\Core\Dispatch\GridIds.cs" />
<Compile Include="..\ComputeSharp\Core\Dispatch\GroupIds.cs" Link="ComputeSharp\Core\Dispatch\GroupIds.cs" />
+6 -6
ファイルの表示
@@ -654,19 +654,19 @@ partial class DiagnosticDescriptors
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
/// <summary>
/// Gets a <see cref="DiagnosticDescriptor"/> for an embedded bytecode shader with an invalid dispatch axis value.
/// Gets a <see cref="DiagnosticDescriptor"/> for shaders shader with an invalid DefaultThreadGroupSizes value.
/// <para>
/// Format: <c>"The shader of type {0} is using an invalid DefaultThreadGroupSize value in its [ThreadGroupSize] attribute"</c>.
/// Format: <c>"The shader of type {0} is using an invalid DefaultThreadGroupSizes value in its [ThreadGroupSize] attribute"</c>.
/// </para>
/// </summary>
public static readonly DiagnosticDescriptor InvalidThreadGroupSizeAttributeDefaultThreadGroupSize = new(
public static readonly DiagnosticDescriptor InvalidThreadGroupSizeAttributeDefaultThreadGroupSizes = new(
id: "CMPS0048",
title: "Invalid DefaultThreadGroupSize value for [ThreadGroupSize] use",
messageFormat: "The shader of type {0} is using an invalid DefaultThreadGroupSize value in its [ThreadGroupSize] attribute",
title: "Invalid DefaultThreadGroupSizes value for [ThreadGroupSize] use",
messageFormat: "The shader of type {0} is using an invalid DefaultThreadGroupSizes value in its [ThreadGroupSize] attribute",
category: "ComputeSharp.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The DefaultThreadGroupSize value for [ThreadGroupSize] attributes have to be valid.",
description: "The DefaultThreadGroupSizes value for [ThreadGroupSize] attributes have to be valid.",
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
/// <summary>
@@ -1,9 +1,12 @@
using System;
namespace ComputeSharp;
/// <summary>
/// A <see langword="enum"/> to be used with <see cref="ThreadGroupSizeAttribute"/> to indicate the dispatch axis to precompile a shader for.
/// A <see langword="enum"/> to be used with <see cref="ThreadGroupSizeAttribute"/> to more easily set default values for the thread group size.
/// </summary>
public enum DispatchAxis
[Flags]
public enum DefaultThreadGroupSizes
{
/// <summary>
/// Indicates a shader dispatch only along the X axis.
@@ -11,7 +14,7 @@ public enum DispatchAxis
/// <remarks>
/// This applies to using <see cref="GraphicsDeviceExtensions.For{T}(GraphicsDevice, int, in T)"/> or <see cref="ComputeContextExtensions.For{T}(in ComputeContext, int, in T)"/>.
/// </remarks>
X,
X = 1 << 0,
/// <summary>
/// Indicates a shader dispatch only along the Y axis.
@@ -20,7 +23,7 @@ public enum DispatchAxis
/// This applies to using <see cref="GraphicsDeviceExtensions.For{T}(GraphicsDevice, int, int, int, in T)"/> or <see cref="ComputeContextExtensions.For{T}(in ComputeContext, int, int, int, in T)"/>,
/// but only as long as the input dispatch size on both the X and Z axes is <c>1</c>. Using any other combination will not be able to leverage the precompiled shader bytecode.
/// </remarks>
Y,
Y = 1 << 1,
/// <summary>
/// Indicates a shader dispatch only along the Z axis.
@@ -29,7 +32,7 @@ public enum DispatchAxis
/// This applies to using <see cref="GraphicsDeviceExtensions.For{T}(GraphicsDevice, int, int, int, in T)"/> or <see cref="ComputeContextExtensions.For{T}(in ComputeContext, int, int, int, in T)"/>,
/// but only as long as the input dispatch size on both the X and Y axes is <c>1</c>. Using any other combination will not be able to leverage the precompiled shader bytecode.
/// </remarks>
Z,
Z = 1 << 2,
/// <summary>
/// Indicates a shader dispatch along the X and Y axes.
@@ -39,7 +42,7 @@ public enum DispatchAxis
/// <see cref="GraphicsDeviceExtensions.ForEach{T, TPixel}(GraphicsDevice, IReadWriteNormalizedTexture2D{TPixel}, in T)"/>, <see cref="ComputeContextExtensions.For{T}(in ComputeContext, int, int, in T)"/>,
/// <see cref="ComputeContextExtensions.ForEach{T, TPixel}(in ComputeContext, IReadWriteNormalizedTexture2D{TPixel})"/> or <see cref="ComputeContextExtensions.ForEach{T, TPixel}(in ComputeContext, IReadWriteNormalizedTexture2D{TPixel}, in T)"/>.
/// </remarks>
XY,
XY = X | Y,
/// <summary>
/// Indicates a shader dispatch along the X and Z axes.
@@ -48,7 +51,7 @@ public enum DispatchAxis
/// This applies to using <see cref="GraphicsDeviceExtensions.For{T}(GraphicsDevice, int, int, int, in T)"/> or <see cref="ComputeContextExtensions.For{T}(in ComputeContext, int, int, int, in T)"/>,
/// but only as long as the input dispatch size on the Y axis <c>1</c>. Using any other combination will not be able to leverage the precompiled shader bytecode.
/// </remarks>
XZ,
XZ = X | Z,
/// <summary>
/// Indicates a shader dispatch along the Y and Z axes.
@@ -57,7 +60,7 @@ public enum DispatchAxis
/// This applies to using <see cref="GraphicsDeviceExtensions.For{T}(GraphicsDevice, int, int, int, in T)"/> or <see cref="ComputeContextExtensions.For{T}(in ComputeContext, int, int, int, in T)"/>,
/// but only as long as the input dispatch size on the X axis <c>1</c>. Using any other combination will not be able to leverage the precompiled shader bytecode.
/// </remarks>
YZ,
YZ = Y | Z,
/// <summary>
/// Indicates a shader dispatch along the X, Y and Z axes.
@@ -65,5 +68,5 @@ public enum DispatchAxis
/// <remarks>
/// This applies to using <see cref="GraphicsDeviceExtensions.For{T}(GraphicsDevice, int, int, int, in T)"/> or <see cref="ComputeContextExtensions.For{T}(in ComputeContext, int, int, int, in T)"/>.
/// </remarks>
XYZ
XYZ = X | Y | Z
}
+14 -14
ファイルの表示
@@ -8,7 +8,7 @@ namespace ComputeSharp;
/// This attribute can be used to annotate shader types as follows:
/// <code>
/// // A compute shader that is dispatched on a target buffer
/// [ThreadGroupSize(DispatchAxis.X)]
/// [ThreadGroupSize(DefaultThreadGroupSizes.X)]
/// struct MyShader : IComputeShader
/// {
/// }
@@ -16,14 +16,14 @@ namespace ComputeSharp;
/// Or similarly, for a pixel-like compute shader:
/// <code>
/// // A compute shader that is dispatched on a target texture
/// [ThreadGroupSize(DispatchAxis.XY)]
/// [ThreadGroupSize(DefaultThreadGroupSizes.XY)]
/// struct MyShader : IComputeShader&lt;float4&gt;
/// {
/// }
/// </code>
/// </para>
/// <para>
/// Using <see cref="DispatchAxis"/> is an easier way to precompile shaders when dispatching them over known dimensions. For more
/// Using <see cref="DefaultThreadGroupSizes"/> is an easier way to precompile shaders when dispatching them over known dimensions. For more
/// fine grained control over the thread size values when dispatching, use <see cref="ThreadGroupSizeAttribute(int, int, int)"/>.
/// </para>
/// </summary>
@@ -33,20 +33,20 @@ public sealed class ThreadGroupSizeAttribute : Attribute
/// <summary>
/// Creates a new <see cref="ThreadGroupSizeAttribute"/> instance with the specified parameters.
/// </summary>
/// <param name="dispatchAxis">The target dispatch axes for the shader to run.</param>
public ThreadGroupSizeAttribute(DispatchAxis dispatchAxis)
/// <param name="size">The default thread group size to use.</param>
public ThreadGroupSizeAttribute(DefaultThreadGroupSizes size)
{
#if !SOURCE_GENERATOR
(ThreadsX, ThreadsY, ThreadsZ) = dispatchAxis switch
(ThreadsX, ThreadsY, ThreadsZ) = size switch
{
DispatchAxis.X => (64, 1, 1),
DispatchAxis.Y => (1, 64, 1),
DispatchAxis.Z => (1, 1, 64),
DispatchAxis.XY => (8, 8, 1),
DispatchAxis.XZ => (8, 1, 8),
DispatchAxis.YZ => (1, 8, 8),
DispatchAxis.XYZ => (4, 4, 4),
_ => default(ArgumentException).Throw<(int, int, int)>(nameof(dispatchAxis))
DefaultThreadGroupSizes.X => (64, 1, 1),
DefaultThreadGroupSizes.Y => (1, 64, 1),
DefaultThreadGroupSizes.Z => (1, 1, 64),
DefaultThreadGroupSizes.XY => (8, 8, 1),
DefaultThreadGroupSizes.XZ => (8, 1, 8),
DefaultThreadGroupSizes.YZ => (1, 8, 8),
DefaultThreadGroupSizes.XYZ => (4, 4, 4),
_ => default(ArgumentException).Throw<(int, int, int)>(nameof(size))
};
#endif
}
+1 -1
ファイルの表示
@@ -34,7 +34,7 @@ Trace.Assert(shaderInfo.BoundResourceCount == 2);
/// A sample kernel that requires dynamic compilation, as it's not precompiled.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MultiplyByTwo : IComputeShader
{
+1 -1
ファイルの表示
@@ -25,7 +25,7 @@ for (int i = 0; i < array.Length; i++)
/// <summary>
/// A sample kernel that is precompiled.
/// </summary>
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
[AutoConstructor]
internal readonly partial struct MultiplyByTwo : IComputeShader
+1 -1
ファイルの表示
@@ -31,7 +31,7 @@ for (int i = 0; i < array.Length; i++)
/// <summary>
/// A sample kernel that is precompiled.
/// </summary>
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
[AutoConstructor]
internal readonly partial struct MultiplyByTwo : IComputeShader
+2 -2
ファイルの表示
@@ -143,7 +143,7 @@ public partial class DeviceDisposalTests
Assert.AreEqual(1u, GraphicsDeviceHelper.GetD3D12DeviceRefCount(d3D12Device));
}
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
[AutoConstructor]
internal readonly partial struct InitializeShader : IComputeShader
@@ -177,7 +177,7 @@ public partial class DeviceDisposalTests
Assert.AreEqual(1u, GraphicsDeviceHelper.GetD3D12DeviceRefCount(d3D12Device));
}
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal partial struct HelloWorldShader : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -22,7 +22,7 @@ if (!numbers.SequenceEqual(result))
Console.WriteLine("Test passed successfully!");
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ApplyFunctionShader : IComputeShader
{
+7 -7
ファイルの表示
@@ -12,7 +12,7 @@ namespace ComputeSharp.Tests.Internals;
public partial class ShaderDataLoaderTests
{
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public partial struct CapturedResourceShader : IComputeShader
{
@@ -48,7 +48,7 @@ public partial class ShaderDataLoaderTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public partial struct MultipleResourcesAndPrimitivesShader : IComputeShader
{
@@ -94,7 +94,7 @@ public partial class ShaderDataLoaderTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public partial struct ScalarAndVectorTypesShader : IComputeShader
{
@@ -145,7 +145,7 @@ public partial class ShaderDataLoaderTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public partial struct ScalarVectorAndMatrixTypesShader : IComputeShader
{
@@ -231,7 +231,7 @@ public partial class ShaderDataLoaderTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public partial struct FlatCustomTypeShader : IComputeShader
{
@@ -323,7 +323,7 @@ public partial class ShaderDataLoaderTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public partial struct NestedCustomTypesShader : IComputeShader
{
@@ -415,7 +415,7 @@ public partial class ShaderDataLoaderTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public partial struct AmbiguousNamesShader : IComputeShader
{
+3 -3
ファイルの表示
@@ -1242,7 +1242,7 @@ public class DiagnosticsTests
namespace MyFancyApp.Sample;
[ThreadGroupSize(DispatchAxis.XYZ | DispatchAxis.Y)]
[ThreadGroupSize(default)]
[GeneratedComputeShaderDescriptor]
public partial struct MyShader : IComputeShader
{
@@ -1266,7 +1266,7 @@ public class DiagnosticsTests
namespace MyFancyApp.Sample;
[ThreadGroupSize((DispatchAxis)243712)]
[ThreadGroupSize((DefaultThreadGroupSizes)243712)]
[GeneratedComputeShaderDescriptor]
public partial struct MyShader : IComputeShader
{
@@ -1290,7 +1290,7 @@ public class DiagnosticsTests
namespace MyFancyApp.Sample;
[ThreadGroupSize((DispatchAxis)(-289))]
[ThreadGroupSize((DefaultThreadGroupSizes)(-289))]
[GeneratedComputeShaderDescriptor]
public partial struct MyShader : IComputeShader
{
+4 -4
ファイルの表示
@@ -278,7 +278,7 @@ public partial class BufferTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ConstantBufferKernel : IComputeShader
{
@@ -308,7 +308,7 @@ public partial class BufferTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyBufferKernel : IComputeShader
{
@@ -338,7 +338,7 @@ public partial class BufferTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteBufferKernel : IComputeShader
{
@@ -375,7 +375,7 @@ public partial class BufferTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct DoublePrecisionSupportShader : IComputeShader
{
+12 -12
ファイルの表示
@@ -1294,7 +1294,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct OffsetComputeShader : IComputeShader
{
@@ -1309,7 +1309,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ClearPixelShader : IComputeShader<float4>
{
@@ -1321,7 +1321,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ColorPixelShader : IComputeShader<float4>
{
@@ -1335,7 +1335,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSampling2DPixelShader : IComputeShader<float4>
{
@@ -1349,7 +1349,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSampling3DComputeShader : IComputeShader
{
@@ -1369,7 +1369,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSamplingFromNormalized2DPixelShader : IComputeShader<float4>
{
@@ -1383,7 +1383,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct CopyToOutputPixelShader : IComputeShader<float4>
{
@@ -1397,7 +1397,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct InvertPixelShader : IComputeShader<float4>
{
@@ -1411,7 +1411,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSamplingFromNormalized3DComputeShader : IComputeShader
{
@@ -1431,7 +1431,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Dotted2DPixelShader : IComputeShader
{
@@ -1461,7 +1461,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Dotted3DPixelShader : IComputeShader
{
@@ -1491,7 +1491,7 @@ public partial class ComputeContextTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ConvertToNonNormalized2DShader : IComputeShader
{
+6 -6
ファイルの表示
@@ -57,7 +57,7 @@ public partial class DispatchTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ThreadIdsShader : IComputeShader
{
@@ -113,7 +113,7 @@ public partial class DispatchTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ThreadIdsNormalizedShader : IComputeShader
{
@@ -156,7 +156,7 @@ public partial class DispatchTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GroupIdsShader : IComputeShader
{
@@ -255,7 +255,7 @@ public partial class DispatchTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchSizeShader : IComputeShader
{
@@ -296,7 +296,7 @@ public partial class DispatchTests
}
}
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchPixelShader : IComputeShader<float4>
{
@@ -327,7 +327,7 @@ public partial class DispatchTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FixedGroupSharedPixelShader : IComputeShader
{
+1 -1
ファイルの表示
@@ -35,7 +35,7 @@ public partial class IPixelShaderTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct EarlyReturnShader : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -73,7 +73,7 @@ public partial class InitializationTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct SampleShader : IComputeShader
{
+23 -23
ファイルの表示
@@ -29,7 +29,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyBuffer_T1_AsReadOnlyBufferShader : IComputeShader
{
@@ -63,7 +63,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteBuffer_T1_AsReadWriteBufferShader : IComputeShader
{
@@ -97,7 +97,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1D_T1_AsReadOnlyTexture1DShader : IComputeShader
{
@@ -131,7 +131,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T1_AsReadWriteTexture1DShader : IComputeShader
{
@@ -169,7 +169,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T1_AsIReadOnlyTexture1DShader : IComputeShader
{
@@ -203,7 +203,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1D_T2_AsReadOnlyTexture1DShader : IComputeShader
{
@@ -237,7 +237,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1D_T2_AsIReadOnlyNormalizedTexture1DShader : IComputeShader
{
@@ -271,7 +271,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T2_AsReadWriteTexture1DShader : IComputeShader
{
@@ -305,7 +305,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T2_AsIReadWriteNormalizedTexture1DShader : IComputeShader
{
@@ -339,7 +339,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2D_T1_AsReadOnlyTexture2DShader : IComputeShader
{
@@ -374,7 +374,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T1_AsReadWriteTexture2DShader : IComputeShader
{
@@ -413,7 +413,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T1_AsIReadOnlyTexture2DShader : IComputeShader
{
@@ -448,7 +448,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2D_T2_AsReadOnlyTexture2DShader : IComputeShader
{
@@ -483,7 +483,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2D_T2_AsIReadOnlyNormalizedTexture2DShader : IComputeShader
{
@@ -518,7 +518,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T2_AsReadWriteTexture2DShader : IComputeShader
{
@@ -553,7 +553,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T2_AsIReadWriteNormalizedTexture2DShader : IComputeShader
{
@@ -588,7 +588,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3D_T1_AsReadOnlyTexture3DShader : IComputeShader
{
@@ -624,7 +624,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T1_AsReadWriteTexture3DShader : IComputeShader
{
@@ -664,7 +664,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T1_AsIReadOnlyTexture3DShader : IComputeShader
{
@@ -700,7 +700,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3D_T2_AsReadOnlyTexture3DShader : IComputeShader
{
@@ -736,7 +736,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3D_T2_AsIReadOnlyNormalizedTexture3DShader : IComputeShader
{
@@ -772,7 +772,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T2_AsReadWriteTexture3DShader : IComputeShader
{
@@ -808,7 +808,7 @@ public partial class ResourceDimensionsTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T2_AsIReadWriteNormalizedTexture3DShader : IComputeShader
{
+1 -1
ファイルの表示
@@ -132,7 +132,7 @@ foreach (var pair in typesMap)
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct <#=testMethodName#>Shader : IComputeShader
{
+20 -20
ファイルの表示
@@ -34,7 +34,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsShader : IComputeShader
{
@@ -71,7 +71,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsInCustomTypesShader : IComputeShader
{
@@ -100,7 +100,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsFromHlslTypesAndBuiltInValuesShader : IComputeShader
{
@@ -143,7 +143,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsPrecompiledShader : IComputeShader
{
@@ -181,7 +181,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SpecialTypeAsReturnTypeShader : IComputeShader
{
@@ -204,7 +204,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct LocalFunctionInExternalMethodsShader : IComputeShader
{
@@ -237,7 +237,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct CapturedNestedStructTypeShader : IComputeShader
{
@@ -258,7 +258,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ExternalStructTypeShader : IComputeShader
{
@@ -281,7 +281,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct OutOfOrderMethodsShader : IComputeShader
{
@@ -318,7 +318,7 @@ namespace ComputeSharp.Tests
Assert.AreEqual(info.BoundResourceCount, 2u);
}
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct StatelessPixelShader : IComputeShader<float4>
{
@@ -330,7 +330,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct LoopWithVarCounterShader : IComputeShader
{
@@ -361,7 +361,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct DoublePrecisionSupportShader : IComputeShader
{
@@ -382,7 +382,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FieldAccessWithThisExpressionShader : IComputeShader
{
@@ -410,7 +410,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ComputeShaderWithInheritedShaderInterfaceShader : IMyBaseShader
{
@@ -445,7 +445,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PixelShaderWithInheritedShaderInterfaceShader : IMyBaseShader<float4>
{
@@ -495,7 +495,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct StructInstanceMethodsShader : IComputeShader
{
@@ -530,7 +530,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PixelShaderWithScopedParameterInMethodsShader : IComputeShader
{
@@ -579,7 +579,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[CompileOptions(CompileOptions.Default | CompileOptions.StripReflectionData)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ShaderWithStrippedReflectionData1 : IComputeShader
@@ -594,7 +594,7 @@ namespace ComputeSharp.Tests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[CompileOptions(CompileOptions.Default)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ShaderWithStrippedReflectionData2 : IComputeShader
@@ -617,7 +617,7 @@ namespace ExternalNamespace
public partial class ShaderCompilerTestsInExternalNamespace
{
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct UserDefinedTypeShader : IComputeShader
{
+4 -4
ファイルの表示
@@ -31,7 +31,7 @@ public partial class ShaderMembersTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct StaticConstantsShader : IComputeShader
{
@@ -72,7 +72,7 @@ public partial class ShaderMembersTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GlobalVariableShader : IComputeShader
{
@@ -108,7 +108,7 @@ public partial class ShaderMembersTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BoolInstanceFieldsShader : IComputeShader
{
@@ -173,7 +173,7 @@ public partial class ShaderMembersTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BoolInstanceFieldInCustomStructShader : IComputeShader
{
+13 -13
ファイルの表示
@@ -52,7 +52,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct NanAndInfiniteShader : IComputeShader
{
@@ -114,7 +114,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ModAndComparisonOperatorsShader : IComputeShader
{
@@ -177,7 +177,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BitwiseOperatorsShader : IComputeShader
{
@@ -231,7 +231,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BooleanOperatorsShader : IComputeShader
{
@@ -282,7 +282,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ToBooleanConversionIntrinsicsShader : IComputeShader
{
@@ -367,7 +367,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FromBooleanConversionIntrinsicsShader : IComputeShader
{
@@ -451,7 +451,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ConstantsInShaderConstantFieldsShader : IComputeShader
{
@@ -530,7 +530,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DoubleConstantsInShaderConstantFieldsShader : IComputeShader
{
@@ -593,7 +593,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct InterlockedOperationsShader : IComputeShader
{
@@ -639,7 +639,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GlslStyleMulOperatorsShader : IComputeShader
{
@@ -781,7 +781,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct CustomStructTypeShader : IComputeShader
{
@@ -820,7 +820,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MiscHlslIntrinsicsShader : IComputeShader
{
@@ -864,7 +864,7 @@ public partial class ShaderRewriterTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadonlyModifierInMethodsShader : IComputeShader
{
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ColorfulInfinity : IComputeShader
{
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ContouredLayers : IComputeShader
{
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ExtrudedTruchetPattern : IComputeShader
{
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FourColorGradient : IComputeShader
{
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FractalTiling : IComputeShader
{
+1 -1
ファイルの表示
@@ -7,7 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// Ported from <see href="https://www.shadertoy.com/new"/>.
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HelloWorld : IComputeShader<float4>
{
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by Syntopia.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MengerJourney : IComputeShader
{
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by whisky_shusuky.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Octagrams : IComputeShader
{
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ProteanClouds : IComputeShader
{
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PyramidPattern : IComputeShader
{
+1 -1
ファイルの表示
@@ -6,7 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TerracedHills : IComputeShader
{
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TriangleGridContouring : IComputeShader
{
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TwoTiledTruchet : IComputeShader
{
+1 -1
ファイルの表示
@@ -89,7 +89,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SamplingComputeShader : IComputeShader
{
+7 -7
ファイルの表示
@@ -69,7 +69,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader
{
@@ -83,7 +83,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R16_float : IComputeShader
{
@@ -97,7 +97,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R8_float : IComputeShader
{
@@ -111,7 +111,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader
{
@@ -125,7 +125,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader
{
@@ -139,7 +139,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader
{
@@ -153,7 +153,7 @@ partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader
{
+1 -1
ファイルの表示
@@ -65,7 +65,7 @@ foreach (var (t, tPixel) in EnumerateTypes())
#>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader
{
+2 -2
ファイルの表示
@@ -363,7 +363,7 @@ public partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1DKernel : IComputeShader
{
@@ -395,7 +395,7 @@ public partial class Texture1DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1DKernel : IComputeShader
{
+2 -2
ファイルの表示
@@ -72,7 +72,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SamplingComputeShader : IComputeShader
{
@@ -107,7 +107,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SamplingPixelShader : IComputeShader<float4>
{
+7 -7
ファイルの表示
@@ -69,7 +69,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader
{
@@ -83,7 +83,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R16_float : IComputeShader
{
@@ -97,7 +97,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R8_float : IComputeShader
{
@@ -111,7 +111,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader
{
@@ -125,7 +125,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader
{
@@ -139,7 +139,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader
{
@@ -153,7 +153,7 @@ partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader
{
+1 -1
ファイルの表示
@@ -65,7 +65,7 @@ foreach (var (t, tPixel) in EnumerateTypes())
#>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader
{
+2 -2
ファイルの表示
@@ -428,7 +428,7 @@ public partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2DKernel : IComputeShader
{
@@ -460,7 +460,7 @@ public partial class Texture2DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2DKernel : IComputeShader
{
+7 -7
ファイルの表示
@@ -69,7 +69,7 @@ partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader
{
@@ -83,7 +83,7 @@ partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R16_float : IComputeShader
{
@@ -97,7 +97,7 @@ partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R8_float : IComputeShader
{
@@ -111,7 +111,7 @@ partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader
{
@@ -125,7 +125,7 @@ partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader
{
@@ -139,7 +139,7 @@ partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader
{
@@ -153,7 +153,7 @@ partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader
{
+1 -1
ファイルの表示
@@ -65,7 +65,7 @@ foreach (var (t, tPixel) in EnumerateTypes())
#>
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader
{
+2 -2
ファイルの表示
@@ -533,7 +533,7 @@ public partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3DKernel : IComputeShader
{
@@ -565,7 +565,7 @@ public partial class Texture3DTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3DKernel : IComputeShader
{
+3 -3
ファイルの表示
@@ -23,7 +23,7 @@ public partial class ThreadGroupSizeTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.X)]
[ThreadGroupSize(DefaultThreadGroupSizes.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchXShader : IComputeShader
{
@@ -36,7 +36,7 @@ public partial class ThreadGroupSizeTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XY)]
[ThreadGroupSize(DefaultThreadGroupSizes.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchXYShader : IComputeShader
{
@@ -49,7 +49,7 @@ public partial class ThreadGroupSizeTests
}
[AutoConstructor]
[ThreadGroupSize(DispatchAxis.XYZ)]
[ThreadGroupSize(DefaultThreadGroupSizes.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchXYZShader : IComputeShader
{