Disable dynamic shader compilation support
このコミットが含まれているのは:
1 親
3db275a157
コミット
490226aa4d
68ファイル変更
+169
-64
検索条件に一致するファイルはありません
@@ -81,6 +81,7 @@ internal static partial class BlasHelpers
|
||||
/// Kernel for <see cref="FullyConnectedForwardGpu"/>.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.XYZ)]
|
||||
public readonly partial struct FullyConnectedForwardKernel : IComputeShader
|
||||
{
|
||||
private readonly int n;
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
<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\ComputeSharp.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -109,6 +109,7 @@ public partial class DispatchingBenchmark : IDisposable
|
||||
}
|
||||
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.X)]
|
||||
internal readonly partial struct TestShader : IComputeShader
|
||||
{
|
||||
private readonly ReadWriteBuffer<float> buffer;
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
<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\ComputeSharp.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -314,6 +314,7 @@ public sealed partial class HlslBokehBlurProcessor
|
||||
/// Kernel for the vertical convolution pass.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
internal readonly partial struct VerticalConvolutionProcessor : IComputeShader
|
||||
{
|
||||
private readonly IReadWriteNormalizedTexture2D<float4> source;
|
||||
@@ -351,6 +352,7 @@ public sealed partial class HlslBokehBlurProcessor
|
||||
/// Kernel for the horizontal convolution pass.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
internal readonly partial struct HorizontalConvolutionAndAccumulatePartialsProcessor : IComputeShader
|
||||
{
|
||||
private readonly float z;
|
||||
@@ -390,6 +392,7 @@ public sealed partial class HlslBokehBlurProcessor
|
||||
/// Kernel for the gamma highlight pass.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.X)]
|
||||
internal readonly partial struct GammaHighlightProcessor : IComputeShader
|
||||
{
|
||||
private readonly IReadWriteNormalizedTexture2D<float4> source;
|
||||
@@ -414,6 +417,7 @@ public sealed partial class HlslBokehBlurProcessor
|
||||
/// Kernel for the inverse gamma highlight pass.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.X)]
|
||||
internal readonly partial struct InverseGammaHighlightProcessor : IComputeShader
|
||||
{
|
||||
private readonly ReadWriteTexture2D<float4> source;
|
||||
|
||||
@@ -118,6 +118,7 @@ public sealed partial class HlslGaussianBlurProcessor
|
||||
/// Kernel for the vertical convolution pass.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
internal readonly partial struct VerticalConvolutionProcessor : IComputeShader
|
||||
{
|
||||
private readonly IReadWriteNormalizedTexture2D<float4> source;
|
||||
@@ -150,6 +151,7 @@ public sealed partial class HlslGaussianBlurProcessor
|
||||
/// Kernel for the horizontal convolution pass.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
internal readonly partial struct HorizontalConvolutionProcessor : IComputeShader
|
||||
{
|
||||
private readonly IReadWriteNormalizedTexture2D<float4> source;
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<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\ComputeSharp.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -4,6 +4,7 @@ namespace ComputeSharp.Sample.FSharp.Shaders;
|
||||
/// A sample shader thaat just multiplies items in a buffer by two.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.X)]
|
||||
public readonly partial struct MultiplyByTwo : IComputeShader
|
||||
{
|
||||
private readonly ReadWriteBuffer<float> buffer;
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
<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\ComputeSharp.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
<ProjectReference Include="..\ComputeSharp.Sample.FSharp.Shaders\ComputeSharp.Sample.FSharp.Shaders.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<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\ComputeSharp.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
|
||||
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -24,6 +24,7 @@ Formatting.PrintMatrix(array, 10, 10, "AFTER");
|
||||
/// The sample kernel that multiples all items by two.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
[EmbeddedBytecode(DispatchAxis.X)]
|
||||
internal readonly partial struct MultiplyByTwo : IComputeShader
|
||||
{
|
||||
private readonly ReadWriteBuffer<float> buffer;
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<OutputType Condition="'$(CI_RUNNER_SAMPLES_INTEGRATION_TESTS)' != 'true'">WinExe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<DefineConstants>$(DefineConstants);SAMPLE_APP</DefineConstants>
|
||||
<NoWarn>$(NoWarn);CA1416</NoWarn>
|
||||
<AssemblyName>computesharp.cli</AssemblyName>
|
||||
|
||||
|
||||
@@ -7,9 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct ColorfulInfinity : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by Shane.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct ContouredLayers : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by Shane.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct ExtrudedTruchetPattern : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -7,9 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct FourColorGradient : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -7,9 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct FractalTiling : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -5,9 +5,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// Ported from <see href="https://www.shadertoy.com/new"/>.
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct HelloWorld : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by Syntopia.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct MengerJourney : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by whisky_shusuky.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct Octagrams : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -7,9 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct ProteanClouds : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -7,9 +7,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by Shane.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct PyramidPattern : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by Shane.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct TerracedHills : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by Shane.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct TriangleGridContouring : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace ComputeSharp.SwapChain.Shaders;
|
||||
/// <para>Created by Shane.</para>
|
||||
/// </summary>
|
||||
[AutoConstructor]
|
||||
#if SAMPLE_APP
|
||||
[EmbeddedBytecode(DispatchAxis.XY)]
|
||||
#endif
|
||||
internal readonly partial struct TwoTiledTruchet : IPixelShader<float4>
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
|
||||
<UseWinUI>true</UseWinUI>
|
||||
<EnableMsixTooling>true</EnableMsixTooling>
|
||||
<DefineConstants>$(DefineConstants);SAMPLE_APP</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<DefineConstants>$(DefineConstants);SAMPLE_APP</DefineConstants>
|
||||
<NoWarn>$(NoWarn);CA1416;IDE0210</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする