diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs
index a68e508e..fbb83865 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ColorfulInfinity.cs
@@ -7,6 +7,9 @@
/// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct ColorfulInfinity : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs
index d730bb65..a089be50 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ContouredLayers.cs
@@ -6,6 +6,9 @@
/// Created by Shane.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct ContouredLayers : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs
index 7e91f583..c1805a42 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ExtrudedTruchetPattern.cs
@@ -6,6 +6,9 @@
/// Created by Shane.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct ExtrudedTruchetPattern : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs
index 590d5236..27c56503 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/FourColorGradient.cs
@@ -7,6 +7,9 @@
/// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct FourColorGradient : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs
index d02828d6..d9fc7195 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/FractalTiling.cs
@@ -7,6 +7,9 @@
/// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct FractalTiling : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs
index b3ab8088..0d2c3a80 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/HelloWorld.cs
@@ -5,6 +5,9 @@
/// Ported from .
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct HelloWorld : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs
index 93463b30..915bfbba 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/MengerJourney.cs
@@ -6,6 +6,9 @@
/// Created by Syntopia.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct MengerJourney : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs
index ac9cb3a5..03b5d22b 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/Octagrams.cs
@@ -6,6 +6,9 @@
/// Created by whisky_shusuky.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct Octagrams : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs
index 16d4e015..6ef57780 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/ProteanClouds.cs
@@ -7,6 +7,9 @@
/// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct ProteanClouds : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs
index d1925bff..b682aa29 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/PyramidPattern.cs
@@ -7,6 +7,9 @@
/// Created by Shane.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct PyramidPattern : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs
index 2303cb5e..3e4abfc0 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/TriangleGridContouring.cs
@@ -6,6 +6,9 @@
/// Created by Shane.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct TriangleGridContouring : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs b/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs
index 9e4005e3..79b45dad 100644
--- a/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs
+++ b/samples/ComputeSharp.SwapChain.Shaders.Shared/TwoTiledTruchet.cs
@@ -6,6 +6,9 @@
/// Created by Shane.
///
[AutoConstructor]
+#if SAMPLE_APP
+[EmbeddedBytecode(8, 8, 1)]
+#endif
internal readonly partial struct TwoTiledTruchet : IPixelShader
{
///
diff --git a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj
index f5c66c16..c183283c 100644
--- a/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj
+++ b/samples/ComputeSharp.SwapChain.Uwp/ComputeSharp.SwapChain.Uwp.csproj
@@ -112,6 +112,9 @@
true
true
+
+ $(DefineConstants);SAMPLE_APP
+
PackageReference
@@ -212,7 +215,6 @@
-
diff --git a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj
index 54802961..c27be298 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj
+++ b/samples/ComputeSharp.SwapChain.WinUI/ComputeSharp.SwapChain.WinUI.csproj
@@ -10,6 +10,7 @@
win10-$(Platform).pubxml
true
true
+ $(DefineConstants);SAMPLE_APP
@@ -41,7 +42,6 @@
-