Add [GeneratedComputeShaderDescriptor] to all shaders

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-16 11:20:24 +02:00
1 親 ba20d0db76
コミット c3ed6ead40
63ファイル変更
+176 -2

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

+1
ファイルの表示
@@ -82,6 +82,7 @@ internal static partial class BlasHelpers
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct FullyConnectedForwardKernel : IComputeShader
{
private readonly int n;
+1
ファイルの表示
@@ -110,6 +110,7 @@ public partial class DispatchingBenchmark : IDisposable
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TestShader : IComputeShader
{
private readonly ReadWriteBuffer<float> buffer;
+4
ファイルの表示
@@ -315,6 +315,7 @@ public sealed partial class HlslBokehBlurProcessor
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct VerticalConvolutionProcessor : IComputeShader
{
private readonly IReadWriteNormalizedTexture2D<float4> source;
@@ -353,6 +354,7 @@ public sealed partial class HlslBokehBlurProcessor
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HorizontalConvolutionAndAccumulatePartialsProcessor : IComputeShader
{
private readonly float z;
@@ -393,6 +395,7 @@ public sealed partial class HlslBokehBlurProcessor
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GammaHighlightProcessor : IComputeShader
{
private readonly IReadWriteNormalizedTexture2D<float4> source;
@@ -418,6 +421,7 @@ public sealed partial class HlslBokehBlurProcessor
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct InverseGammaHighlightProcessor : IComputeShader
{
private readonly ReadWriteTexture2D<float4> source;
@@ -119,6 +119,7 @@ public sealed partial class HlslGaussianBlurProcessor
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct VerticalConvolutionProcessor : IComputeShader
{
private readonly IReadWriteNormalizedTexture2D<float4> source;
@@ -152,6 +153,7 @@ public sealed partial class HlslGaussianBlurProcessor
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HorizontalConvolutionProcessor : IComputeShader
{
private readonly IReadWriteNormalizedTexture2D<float4> source;
+1
ファイルの表示
@@ -5,6 +5,7 @@ namespace ComputeSharp.Sample.FSharp.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct MultiplyByTwo : IComputeShader
{
private readonly ReadWriteBuffer<float> buffer;
+1
ファイルの表示
@@ -25,6 +25,7 @@ Formatting.PrintMatrix(array, 10, 10, "AFTER");
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MultiplyByTwo : IComputeShader
{
private readonly ReadWriteBuffer<float> buffer;
+1
ファイルの表示
@@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ColorfulInfinity : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ContouredLayers : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ExtrudedTruchetPattern : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FourColorGradient : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FractalTiling : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -6,6 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HelloWorld : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MengerJourney : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Octagrams : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ProteanClouds : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PyramidPattern : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TerracedHills : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TriangleGridContouring : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TwoTiledTruchet : IComputeShader<float4>
{
/// <summary>
+1 -2
ファイルの表示
@@ -25,8 +25,7 @@ partial class ComputeShaderDescriptorGenerator
return true;
}
else if (interfaceSymbol is { IsGenericType: true } &&
SymbolEqualityComparer.Default.Equals(interfaceSymbol.ConstructedFrom, pixelShaderSymbol))
else if (SymbolEqualityComparer.Default.Equals(interfaceSymbol.ConstructedFrom, pixelShaderSymbol))
{
result = true;
+1
ファイルの表示
@@ -35,6 +35,7 @@ Trace.Assert(shaderInfo.BoundResourceCount == 2);
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MultiplyByTwo : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
+1
ファイルの表示
@@ -30,6 +30,7 @@ for (int i = 0; i < array.Length; i++)
/// A sample kernel that is precompiled.
/// </summary>
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
[AutoConstructor]
internal readonly partial struct MultiplyByTwo : IComputeShader
{
+1
ファイルの表示
@@ -36,6 +36,7 @@ for (int i = 0; i < array.Length; i++)
/// A sample kernel that is precompiled.
/// </summary>
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
[AutoConstructor]
internal readonly partial struct MultiplyByTwo : IComputeShader
{
+2
ファイルの表示
@@ -144,6 +144,7 @@ public partial class DeviceDisposalTests
}
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
[AutoConstructor]
private readonly partial struct InitializeShader : IComputeShader
{
@@ -177,6 +178,7 @@ public partial class DeviceDisposalTests
}
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
private partial struct HelloWorldShader : IComputeShader<float4>
{
public float4 Execute()
+2
ファイルの表示
@@ -32,6 +32,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(32, 1, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ComputeShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -76,6 +77,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(8, 8, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PixelShader : IComputeShader<float4>
{
private readonly float b;
+1
ファイルの表示
@@ -23,6 +23,7 @@ Console.WriteLine("Test passed successfully!");
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ApplyFunctionShader : IComputeShader
{
private readonly ReadWriteBuffer<float> sourceTexture;
+7
ファイルの表示
@@ -11,6 +11,7 @@ public partial class ShaderDataLoaderTests
{
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public partial struct CapturedResourceShader : IComputeShader
{
public ReadWriteBuffer<float> _;
@@ -46,6 +47,7 @@ public partial class ShaderDataLoaderTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public partial struct MultipleResourcesAndPrimitivesShader : IComputeShader
{
public ReadWriteBuffer<float> _0;
@@ -91,6 +93,7 @@ public partial class ShaderDataLoaderTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public partial struct ScalarAndVectorTypesShader : IComputeShader
{
public ReadWriteBuffer<float> _;
@@ -141,6 +144,7 @@ public partial class ShaderDataLoaderTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public partial struct ScalarVectorAndMatrixTypesShader : IComputeShader
{
public ReadWriteBuffer<float> _;
@@ -226,6 +230,7 @@ public partial class ShaderDataLoaderTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public partial struct FlatCustomTypeShader : IComputeShader
{
public ReadWriteBuffer<float> _0;
@@ -317,6 +322,7 @@ public partial class ShaderDataLoaderTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public partial struct NestedCustomTypesShader : IComputeShader
{
public ReadWriteBuffer<float> _0;
@@ -408,6 +414,7 @@ public partial class ShaderDataLoaderTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public partial struct AmbiguousNamesShader : IComputeShader
{
public ReadWriteBuffer<float> a;
+4
ファイルの表示
@@ -279,6 +279,7 @@ public partial class BufferTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ConstantBufferKernel : IComputeShader
{
public readonly ConstantBuffer<int> source;
@@ -308,6 +309,7 @@ public partial class BufferTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyBufferKernel : IComputeShader
{
public readonly ReadOnlyBuffer<int> source;
@@ -337,6 +339,7 @@ public partial class BufferTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteBufferKernel : IComputeShader
{
public readonly ReadWriteBuffer<int> source;
@@ -373,6 +376,7 @@ public partial class BufferTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct DoublePrecisionSupportShader : IComputeShader
{
public readonly ReadWriteBuffer<double> buffer;
+12
ファイルの表示
@@ -1295,6 +1295,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct OffsetComputeShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -1309,6 +1310,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ClearPixelShader : IComputeShader<float4>
{
/// <inheritdoc/>
@@ -1320,6 +1322,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ColorPixelShader : IComputeShader<float4>
{
public readonly float4 color;
@@ -1333,6 +1336,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSampling2DPixelShader : IComputeShader<float4>
{
public readonly IReadOnlyTexture2D<float4> source;
@@ -1346,6 +1350,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSampling3DComputeShader : IComputeShader
{
public readonly IReadOnlyTexture3D<float4> source;
@@ -1365,6 +1370,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSamplingFromNormalized2DPixelShader : IComputeShader<float4>
{
public readonly IReadOnlyNormalizedTexture2D<float4> source;
@@ -1378,6 +1384,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct CopyToOutputPixelShader : IComputeShader<float4>
{
public readonly IReadOnlyNormalizedTexture2D<float4> source;
@@ -1391,6 +1398,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct InvertPixelShader : IComputeShader<float4>
{
public readonly IReadWriteNormalizedTexture2D<float4> source;
@@ -1404,6 +1412,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct LinearSamplingFromNormalized3DComputeShader : IComputeShader
{
public readonly IReadOnlyNormalizedTexture3D<float4> source;
@@ -1423,6 +1432,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Dotted2DPixelShader : IComputeShader
{
public readonly IReadWriteNormalizedTexture2D<float4> source;
@@ -1452,6 +1462,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Dotted3DPixelShader : IComputeShader
{
public readonly IReadWriteNormalizedTexture3D<float4> source;
@@ -1481,6 +1492,7 @@ public partial class ComputeContextTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ConvertToNonNormalized2DShader : IComputeShader
{
public readonly IReadOnlyNormalizedTexture2D<float4> source;
+1
ファイルの表示
@@ -20,6 +20,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\ComputeSharp.CodeFixers\ComputeSharp.CodeFixers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.Core\ComputeSharp.Core.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
<ProjectReference Include="..\..\src\ComputeSharp.D3D12MemoryAllocator\ComputeSharp.D3D12MemoryAllocator.csproj" Condition="'$(UseD3D12MemoryAllocator)' == 'true'" />
+9
ファイルの表示
@@ -58,6 +58,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ThreadIdsShader : IComputeShader
{
public readonly ReadWriteTexture3D<int4> buffer;
@@ -113,6 +114,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ThreadIdsNormalizedShader : IComputeShader
{
public readonly ReadWriteTexture3D<float4> buffer;
@@ -155,6 +157,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GroupIdsShader : IComputeShader
{
public readonly ReadWriteTexture3D<int4> buffer;
@@ -186,6 +189,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(4, 15, 7)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GroupSizeShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -219,6 +223,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(32, 1, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GridIdsShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -251,6 +256,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchSizeShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -291,6 +297,7 @@ public partial class DispatchTests
}
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchPixelShader : IComputeShader<float4>
{
public float4 Execute()
@@ -321,6 +328,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FixedGroupSharedPixelShader : IComputeShader
{
private readonly ReadWriteBuffer<int> buffer;
@@ -365,6 +373,7 @@ public partial class DispatchTests
[AutoConstructor]
[EmbeddedBytecode(32, 1, 1)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DynamicGroupSharedPixelShader : IComputeShader
{
private readonly ReadWriteBuffer<int> buffer;
+1
ファイルの表示
@@ -36,6 +36,7 @@ public partial class IPixelShaderTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct EarlyReturnShader : IComputeShader<float4>
{
public float4 Execute()
+1
ファイルの表示
@@ -74,6 +74,7 @@ public partial class InitializationTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct SampleShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
+23
ファイルの表示
@@ -30,6 +30,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyBuffer_T1_AsReadOnlyBufferShader : IComputeShader
{
public readonly ReadOnlyBuffer<float> source;
@@ -63,6 +64,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteBuffer_T1_AsReadWriteBufferShader : IComputeShader
{
public readonly ReadWriteBuffer<float> source;
@@ -96,6 +98,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1D_T1_AsReadOnlyTexture1DShader : IComputeShader
{
public readonly ReadOnlyTexture1D<float> source;
@@ -129,6 +132,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T1_AsReadWriteTexture1DShader : IComputeShader
{
public readonly ReadWriteTexture1D<float> source;
@@ -166,6 +170,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T1_AsIReadOnlyTexture1DShader : IComputeShader
{
public readonly IReadOnlyTexture1D<float> source;
@@ -199,6 +204,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1D_T2_AsReadOnlyTexture1DShader : IComputeShader
{
public readonly ReadOnlyTexture1D<Rgba32, float4> source;
@@ -232,6 +238,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1D_T2_AsIReadOnlyNormalizedTexture1DShader : IComputeShader
{
public readonly IReadOnlyNormalizedTexture1D<float4> source;
@@ -265,6 +272,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T2_AsReadWriteTexture1DShader : IComputeShader
{
public readonly ReadWriteTexture1D<Rgba32, float4> source;
@@ -298,6 +306,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1D_T2_AsIReadWriteNormalizedTexture1DShader : IComputeShader
{
public readonly IReadWriteNormalizedTexture1D<float4> source;
@@ -331,6 +340,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2D_T1_AsReadOnlyTexture2DShader : IComputeShader
{
public readonly ReadOnlyTexture2D<float> source;
@@ -365,6 +375,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T1_AsReadWriteTexture2DShader : IComputeShader
{
public readonly ReadWriteTexture2D<float> source;
@@ -403,6 +414,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T1_AsIReadOnlyTexture2DShader : IComputeShader
{
public readonly IReadOnlyTexture2D<float> source;
@@ -437,6 +449,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2D_T2_AsReadOnlyTexture2DShader : IComputeShader
{
public readonly ReadOnlyTexture2D<Rgba32, float4> source;
@@ -471,6 +484,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2D_T2_AsIReadOnlyNormalizedTexture2DShader : IComputeShader
{
public readonly IReadOnlyNormalizedTexture2D<float4> source;
@@ -505,6 +519,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T2_AsReadWriteTexture2DShader : IComputeShader
{
public readonly ReadWriteTexture2D<Rgba32, float4> source;
@@ -539,6 +554,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2D_T2_AsIReadWriteNormalizedTexture2DShader : IComputeShader
{
public readonly IReadWriteNormalizedTexture2D<float4> source;
@@ -573,6 +589,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3D_T1_AsReadOnlyTexture3DShader : IComputeShader
{
public readonly ReadOnlyTexture3D<float> source;
@@ -608,6 +625,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T1_AsReadWriteTexture3DShader : IComputeShader
{
public readonly ReadWriteTexture3D<float> source;
@@ -647,6 +665,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T1_AsIReadOnlyTexture3DShader : IComputeShader
{
public readonly IReadOnlyTexture3D<float> source;
@@ -682,6 +701,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3D_T2_AsReadOnlyTexture3DShader : IComputeShader
{
public readonly ReadOnlyTexture3D<Rgba32, float4> source;
@@ -717,6 +737,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3D_T2_AsIReadOnlyNormalizedTexture3DShader : IComputeShader
{
public readonly IReadOnlyNormalizedTexture3D<float4> source;
@@ -752,6 +773,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T2_AsReadWriteTexture3DShader : IComputeShader
{
public readonly ReadWriteTexture3D<Rgba32, float4> source;
@@ -787,6 +809,7 @@ public partial class ResourceDimensionsTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3D_T2_AsIReadWriteNormalizedTexture3DShader : IComputeShader
{
public readonly IReadWriteNormalizedTexture3D<float4> source;
+1
ファイルの表示
@@ -133,6 +133,7 @@ foreach (var pair in typesMap)
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct <#=testMethodName#>Shader : IComputeShader
{
public readonly <#=shaderResourceType#> source;
+18
ファイルの表示
@@ -19,6 +19,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsShader : IComputeShader
{
public readonly ReadWriteBuffer<float> row_major;
@@ -55,6 +56,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsInCustomTypesShader : IComputeShader
{
public readonly ReadWriteBuffer<float> row_major;
@@ -83,6 +85,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsFromHlslTypesAndBuiltInValuesShader : IComputeShader
{
public readonly ReadWriteBuffer<float> fragmentKeyword;
@@ -125,6 +128,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ReservedKeywordsPrecompiledShader : IComputeShader
{
public readonly ReadWriteBuffer<float> row_major;
@@ -162,6 +166,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SpecialTypeAsReturnTypeShader : IComputeShader
{
public readonly ReadWriteBuffer<float2> buffer;
@@ -184,6 +189,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct LocalFunctionInExternalMethodsShader : IComputeShader
{
public readonly ReadWriteBuffer<float2> buffer;
@@ -216,6 +222,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct CapturedNestedStructTypeShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -236,6 +243,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct ExternalStructTypeShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -258,6 +266,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct OutOfOrderMethodsShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -294,6 +303,7 @@ namespace ComputeSharp.Tests
}
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct StatelessPixelShader : IComputeShader<float4>
{
/// <inheritdoc/>
@@ -305,6 +315,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct LoopWithVarCounterShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -335,6 +346,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct DoublePrecisionSupportShader : IComputeShader
{
public readonly ReadWriteBuffer<double> buffer;
@@ -355,6 +367,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FieldAccessWithThisExpressionShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -382,6 +395,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ComputeShaderWithInheritedShaderInterfaceShader : IMyBaseShader
{
int IMyBaseShader.A => 42;
@@ -416,6 +430,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PixelShaderWithInheritedShaderInterfaceShader : IMyBaseShader<float4>
{
int IMyBaseShader<float4>.A => 42;
@@ -465,6 +480,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct StructInstanceMethodsShader : IComputeShader
{
public readonly MyStructTypeA a;
@@ -499,6 +515,7 @@ namespace ComputeSharp.Tests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PixelShaderWithScopedParameterInMethodsShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -537,6 +554,7 @@ namespace ExternalNamespace
{
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct UserDefinedTypeShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
+4
ファイルの表示
@@ -32,6 +32,7 @@ public partial class ShaderMembersTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct StaticConstantsShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -72,6 +73,7 @@ public partial class ShaderMembersTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GlobalVariableShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -107,6 +109,7 @@ public partial class ShaderMembersTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BoolInstanceFieldsShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -171,6 +174,7 @@ public partial class ShaderMembersTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BoolInstanceFieldInCustomStructShader : IComputeShader
{
public readonly ReadWriteBuffer<Int2AndBoolField> buffer;
+13
ファイルの表示
@@ -53,6 +53,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct NanAndInfiniteShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer1;
@@ -114,6 +115,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ModAndComparisonOperatorsShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer;
@@ -176,6 +178,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BitwiseOperatorsShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -229,6 +232,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct BooleanOperatorsShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -279,6 +283,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ToBooleanConversionIntrinsicsShader : IComputeShader
{
public readonly ReadOnlyBuffer<float> buffer1;
@@ -363,6 +368,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FromBooleanConversionIntrinsicsShader : IComputeShader
{
public readonly ReadOnlyBuffer<int> source;
@@ -446,6 +452,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ConstantsInShaderConstantFieldsShader : IComputeShader
{
public const float rot_angle = (float)(137.2 / 180.0 * Math.PI);
@@ -524,6 +531,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DoubleConstantsInShaderConstantFieldsShader : IComputeShader
{
public const float DoubleToFloatConstant = (float)(1 / 255.0);
@@ -586,6 +594,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct InterlockedOperationsShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -631,6 +640,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct GlslStyleMulOperatorsShader : IComputeShader
{
public readonly ReadOnlyBuffer<float> source1;
@@ -772,6 +782,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct CustomStructTypeShader : IComputeShader
{
public readonly ReadWriteBuffer<CustomStructType> source;
@@ -810,6 +821,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MiscHlslIntrinsicsShader : IComputeShader
{
public readonly ReadWriteBuffer<float> buffer1;
@@ -853,6 +865,7 @@ public partial class ShaderRewriterTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadonlyModifierInMethodsShader : IComputeShader
{
private readonly ReadWriteBuffer<int> buffer;
+1
ファイルの表示
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ColorfulInfinity : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ContouredLayers : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ExtrudedTruchetPattern : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FourColorGradient : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct FractalTiling : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -8,6 +8,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct HelloWorld : IComputeShader<float4>
{
/// <summary>
+1
ファイルの表示
@@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct MengerJourney : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Octagrams : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ProteanClouds : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -10,6 +10,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct PyramidPattern : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -7,6 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TerracedHills : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TriangleGridContouring : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -9,6 +9,7 @@ namespace ComputeSharp.SwapChain.Shaders.Compute;
/// </summary>
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct TwoTiledTruchet : IComputeShader
{
/// <summary>
+1
ファイルの表示
@@ -90,6 +90,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SamplingComputeShader : IComputeShader
{
public readonly IReadOnlyNormalizedTexture1D<float4> source;
+7
ファイルの表示
@@ -70,6 +70,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader
{
public readonly ReadOnlyTexture1D<Bgra32, Float4> source;
@@ -83,6 +84,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R16_float : IComputeShader
{
public readonly ReadOnlyTexture1D<R16, float> source;
@@ -96,6 +98,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R8_float : IComputeShader
{
public readonly ReadOnlyTexture1D<R8, float> source;
@@ -109,6 +112,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader
{
public readonly ReadOnlyTexture1D<Rg16, Float2> source;
@@ -122,6 +126,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader
{
public readonly ReadOnlyTexture1D<Rg32, Float2> source;
@@ -135,6 +140,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader
{
public readonly ReadOnlyTexture1D<Rgba32, Float4> source;
@@ -148,6 +154,7 @@ partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader
{
public readonly ReadOnlyTexture1D<Rgba64, Float4> source;
+1
ファイルの表示
@@ -66,6 +66,7 @@ foreach (var (t, tPixel) in EnumerateTypes())
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader
{
public readonly ReadOnlyTexture1D<<#=t#>, <#=tPixel#>> source;
+2
ファイルの表示
@@ -364,6 +364,7 @@ public partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture1DKernel : IComputeShader
{
public readonly ReadOnlyTexture1D<int> source;
@@ -395,6 +396,7 @@ public partial class Texture1DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture1DKernel : IComputeShader
{
public readonly ReadWriteTexture1D<int> source;
+2
ファイルの表示
@@ -73,6 +73,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SamplingComputeShader : IComputeShader
{
public readonly IReadOnlyNormalizedTexture2D<float4> source;
@@ -107,6 +108,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
public readonly partial struct SamplingPixelShader : IComputeShader<float4>
{
public readonly IReadOnlyNormalizedTexture2D<float4> texture;
+7
ファイルの表示
@@ -70,6 +70,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader
{
public readonly ReadOnlyTexture2D<Bgra32, Float4> source;
@@ -83,6 +84,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R16_float : IComputeShader
{
public readonly ReadOnlyTexture2D<R16, float> source;
@@ -96,6 +98,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R8_float : IComputeShader
{
public readonly ReadOnlyTexture2D<R8, float> source;
@@ -109,6 +112,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader
{
public readonly ReadOnlyTexture2D<Rg16, Float2> source;
@@ -122,6 +126,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader
{
public readonly ReadOnlyTexture2D<Rg32, Float2> source;
@@ -135,6 +140,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader
{
public readonly ReadOnlyTexture2D<Rgba32, Float4> source;
@@ -148,6 +154,7 @@ partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader
{
public readonly ReadOnlyTexture2D<Rgba64, Float4> source;
+1
ファイルの表示
@@ -66,6 +66,7 @@ foreach (var (t, tPixel) in EnumerateTypes())
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader
{
public readonly ReadOnlyTexture2D<<#=t#>, <#=tPixel#>> source;
+2
ファイルの表示
@@ -429,6 +429,7 @@ public partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture2DKernel : IComputeShader
{
public readonly ReadOnlyTexture2D<int> source;
@@ -460,6 +461,7 @@ public partial class Texture2DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture2DKernel : IComputeShader
{
public readonly ReadWriteTexture2D<int> source;
+7
ファイルの表示
@@ -70,6 +70,7 @@ partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Bgra32_Float4 : IComputeShader
{
public readonly ReadOnlyTexture3D<Bgra32, Float4> source;
@@ -83,6 +84,7 @@ partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R16_float : IComputeShader
{
public readonly ReadOnlyTexture3D<R16, float> source;
@@ -96,6 +98,7 @@ partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_R8_float : IComputeShader
{
public readonly ReadOnlyTexture3D<R8, float> source;
@@ -109,6 +112,7 @@ partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg16_Float2 : IComputeShader
{
public readonly ReadOnlyTexture3D<Rg16, Float2> source;
@@ -122,6 +126,7 @@ partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rg32_Float2 : IComputeShader
{
public readonly ReadOnlyTexture3D<Rg32, Float2> source;
@@ -135,6 +140,7 @@ partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba32_Float4 : IComputeShader
{
public readonly ReadOnlyTexture3D<Rgba32, Float4> source;
@@ -148,6 +154,7 @@ partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_Rgba64_Float4 : IComputeShader
{
public readonly ReadOnlyTexture3D<Rgba64, Float4> source;
+1
ファイルの表示
@@ -66,6 +66,7 @@ foreach (var (t, tPixel) in EnumerateTypes())
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct Shader_Unorm_<#=t#>_<#=tPixel#> : IComputeShader
{
public readonly ReadOnlyTexture3D<<#=t#>, <#=tPixel#>> source;
+2
ファイルの表示
@@ -534,6 +534,7 @@ public partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadOnlyTexture3DKernel : IComputeShader
{
public readonly ReadOnlyTexture3D<int> source;
@@ -565,6 +566,7 @@ public partial class Texture3DTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct ReadWriteTexture3DKernel : IComputeShader
{
public readonly ReadWriteTexture3D<int> source;
+4
ファイルの表示
@@ -29,6 +29,7 @@ public partial class ThreadGroupSizeTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.X)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchXShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -41,6 +42,7 @@ public partial class ThreadGroupSizeTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XY)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchXYShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -53,6 +55,7 @@ public partial class ThreadGroupSizeTests
[AutoConstructor]
[EmbeddedBytecode(DispatchAxis.XYZ)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchXYZShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;
@@ -65,6 +68,7 @@ public partial class ThreadGroupSizeTests
[AutoConstructor]
[EmbeddedBytecode(11, 14, 6)]
[GeneratedComputeShaderDescriptor]
internal readonly partial struct DispatchCustomShader : IComputeShader
{
public readonly ReadWriteBuffer<int> buffer;