Enabled animated shader previews in WinUI 3 sample
検索条件に一致するファイルはありません
@@ -49,50 +49,10 @@
|
||||
</AppxManifest>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\ColorfulInfinity.png">
|
||||
<Link>Images\Shaders\ColorfulInfinity.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\ContouredLayers.png">
|
||||
<Link>Images\Shaders\ContouredLayers.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\ExtrudedTruchetPattern.png">
|
||||
<Link>Images\Shaders\ExtrudedTruchetPattern.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\FractalTiling.png">
|
||||
<Link>Images\Shaders\FractalTiling.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\MengerJourney.png">
|
||||
<Link>Images\Shaders\MengerJourney.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\Octagrams.png">
|
||||
<Link>Images\Shaders\Octagrams.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\ProteanClouds.png">
|
||||
<Link>Images\Shaders\ProteanClouds.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\TwoTiledTruchet.png">
|
||||
<Link>Images\Shaders\TwoTiledTruchet.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\PyramidPattern.png">
|
||||
<Link>Images\Shaders\PyramidPattern.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\..\tests\ComputeSharp.Tests\Assets\TriangleGridContouring.png">
|
||||
<Link>Images\Shaders\TriangleGridContouring.png</Link>
|
||||
</Content>
|
||||
<Content Include="..\..\ComputeSharp.SwapChain\Textures\RustyMetal.png">
|
||||
<Link>Images\Textures\RustyMetal.png</Link>
|
||||
</Content>
|
||||
<Content Include="Images\Misc\noise_low.png" />
|
||||
<Content Include="Images\Shaders\Blurred\ColorfulInfinity.png" />
|
||||
<Content Include="Images\Shaders\Blurred\ContouredLayers.png" />
|
||||
<Content Include="Images\Shaders\Blurred\ExtrudedTruchetPattern.png" />
|
||||
<Content Include="Images\Shaders\Blurred\FractalTiling.png" />
|
||||
<Content Include="Images\Shaders\Blurred\MengerJourney.png" />
|
||||
<Content Include="Images\Shaders\Blurred\Octagrams.png" />
|
||||
<Content Include="Images\Shaders\Blurred\ProteanClouds.png" />
|
||||
<Content Include="Images\Shaders\Blurred\TwoTiledTruchet.png" />
|
||||
<Content Include="Images\Shaders\Blurred\PyramidPattern.png" />
|
||||
<Content Include="Images\Shaders\Blurred\TriangleGridContouring.png" />
|
||||
<Content Include="Images\SplashScreen.scale-200.png" />
|
||||
<Content Include="Images\LockScreenLogo.scale-200.png" />
|
||||
<Content Include="Images\Square150x150Logo.scale-200.png" />
|
||||
|
||||
|
変更前 幅: | 高さ: | サイズ: 219 KiB |
|
変更前 幅: | 高さ: | サイズ: 351 KiB |
|
変更前 幅: | 高さ: | サイズ: 300 KiB |
|
変更前 幅: | 高さ: | サイズ: 356 KiB |
|
変更前 幅: | 高さ: | サイズ: 294 KiB |
|
変更前 幅: | 高さ: | サイズ: 167 KiB |
|
変更前 幅: | 高さ: | サイズ: 272 KiB |
|
変更前 幅: | 高さ: | サイズ: 276 KiB |
|
変更前 幅: | 高さ: | サイズ: 323 KiB |
|
変更前 幅: | 高さ: | サイズ: 210 KiB |
@@ -31,7 +31,6 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="7.0.3" />
|
||||
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Core" Version="7.0.3" />
|
||||
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Layout" Version="7.0.3" />
|
||||
<PackageReference Include="CommunityToolkit.WinUI.UI.Media" Version="7.0.3" />
|
||||
<PackageReference Include="Microsoft.ProjectReunion" Version="0.8.0" />
|
||||
<Manifest Include="$(ApplicationManifest)" />
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
<ListView.Resources>
|
||||
|
||||
<!--Lightweight styling to remove the selection background with the accent color, and
|
||||
to remove the padding aand stretch the list items to occupy all the available space-->
|
||||
to remove the padding and stretch the list items to occupy all the available space-->
|
||||
<SolidColorBrush x:Key="ListViewItemBackgroundSelected" Color="Transparent"/>
|
||||
<SolidColorBrush x:Key="ListViewItemBackgroundSelectedPointerOver" Color="Transparent"/>
|
||||
<SolidColorBrush x:Key="ListViewItemBackgroundSelectedPressed" Color="Transparent"/>
|
||||
@@ -171,18 +171,11 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
ui:UIElementExtensions.ClipToBounds="True">
|
||||
<controls:ImageEx Source="{x:Bind converters:ComputeShaderConverter.ConvertComputeShaderToBackgroundUri((models:ComputeShader))}"/>
|
||||
<controls:DropShadowPanel
|
||||
BlurRadius="20"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
OffsetX="32"
|
||||
OffsetY="32">
|
||||
<controls:ImageEx
|
||||
Margin="32"
|
||||
Source="{x:Bind converters:ComputeShaderConverter.ConvertComputeShaderToThumbnailUri((models:ComputeShader))}"
|
||||
Stretch="Uniform" />
|
||||
</controls:DropShadowPanel>
|
||||
|
||||
<!--Shader preview-->
|
||||
<computesharp:ComputeShaderPanel
|
||||
Width="568"
|
||||
ShaderRunner="{x:Bind ShaderRunner}"/>
|
||||
|
||||
<!--Note: here we have a selection property to work around {x:Bind} not working correctly outside of the
|
||||
current template scope. Once that's fixed in WinUI 3, this can be rewritten as a multi-binding like this:
|
||||
|
||||