Enable embedded shaders for UWP/WinUI sample apps

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-19 16:47:34 +01:00
1 親 0508887482
コミット ed8f75a08d
14ファイル変更
+40 -2

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

+3
ファイルの表示
@@ -7,6 +7,9 @@
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct ColorfulInfinity : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -6,6 +6,9 @@
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct ContouredLayers : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -6,6 +6,9 @@
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct ExtrudedTruchetPattern : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -7,6 +7,9 @@
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct FourColorGradient : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -7,6 +7,9 @@
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct FractalTiling : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -5,6 +5,9 @@
/// Ported from <see href="https://www.shadertoy.com/new"/>.
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct HelloWorld : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -6,6 +6,9 @@
/// <para>Created by Syntopia.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct MengerJourney : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -6,6 +6,9 @@
/// <para>Created by whisky_shusuky.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct Octagrams : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -7,6 +7,9 @@
/// <para>License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct ProteanClouds : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -7,6 +7,9 @@
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct PyramidPattern : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -6,6 +6,9 @@
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct TriangleGridContouring : IPixelShader<float4>
{
/// <summary>
+3
ファイルの表示
@@ -6,6 +6,9 @@
/// <para>Created by Shane.</para>
/// </summary>
[AutoConstructor]
#if SAMPLE_APP
[EmbeddedBytecode(8, 8, 1)]
#endif
internal readonly partial struct TwoTiledTruchet : IPixelShader<float4>
{
/// <summary>
+3 -1
ファイルの表示
@@ -112,6 +112,9 @@
<Prefer32Bit>true</Prefer32Bit>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);SAMPLE_APP</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
@@ -212,7 +215,6 @@
</ItemGroup>
<ItemGroup>
<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="..\..\src\ComputeSharp.Uwp\ComputeSharp.Uwp.csproj" />
</ItemGroup>
+1 -1
ファイルの表示
@@ -10,6 +10,7 @@
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
<DefineConstants>$(DefineConstants);SAMPLE_APP</DefineConstants>
</PropertyGroup>
<ItemGroup>
@@ -41,7 +42,6 @@
<ItemGroup>
<ProjectReference Include="..\..\src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.Dynamic\ComputeSharp.Dynamic.csproj" />
<ProjectReference Include="..\..\src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"