diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs
index 0ee94a6b..b9540bfb 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InteropServices.cs
@@ -26,10 +26,10 @@ public static unsafe class D2D1InteropServices
/// If the shader was compiled at runtime, the returned instance will wrap a array with the bytecode.
///
///
- public static ReadOnlyMemory LoadShaderBytecode()
+ public static ReadOnlyMemory LoadPixelShaderBytecode()
where T : unmanaged, ID2D1PixelShader
{
- return LoadOrCompileShaderBytecode(null);
+ return LoadOrCompilePixelShaderBytecode(null);
}
///
@@ -42,10 +42,10 @@ public static unsafe class D2D1InteropServices
/// If the input shader was precompiled, the returned instance will wrap a pinned memory buffer (from the PE section).
/// If the shader was compiled at runtime, the returned instance will wrap a array with the bytecode.
///
- public static ReadOnlyMemory LoadShaderBytecode(D2D1ShaderProfile shaderProfile)
+ public static ReadOnlyMemory LoadPixelShaderBytecode(D2D1ShaderProfile shaderProfile)
where T : unmanaged, ID2D1PixelShader
{
- return LoadOrCompileShaderBytecode(shaderProfile);
+ return LoadOrCompilePixelShaderBytecode(shaderProfile);
}
///
@@ -55,7 +55,7 @@ public static unsafe class D2D1InteropServices
/// The shader profile to use to get the shader bytecode.
/// A instance with the resulting shader bytecode.
/// Thrown if the input shader has not been precompiled.
- private static ReadOnlyMemory LoadOrCompileShaderBytecode(D2D1ShaderProfile? shaderProfile)
+ private static ReadOnlyMemory LoadOrCompilePixelShaderBytecode(D2D1ShaderProfile? shaderProfile)
where T : unmanaged, ID2D1PixelShader
{
D2D1ShaderBytecodeLoader bytecodeLoader = default;
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs
index 8ba2107a..e2be11a9 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.For{T}.cs
@@ -90,7 +90,7 @@ internal unsafe partial struct PixelShaderEffect
// Load all shader properties
Guid guid = typeof(T).GUID;
int inputCount = (int)D2D1InteropServices.GetPixelShaderInputCount();
- ReadOnlyMemory buffer = D2D1InteropServices.LoadShaderBytecode();
+ ReadOnlyMemory buffer = D2D1InteropServices.LoadPixelShaderBytecode();
byte* typeAssociatedMemory = (byte*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(For), buffer.Length);
// Copy the bytecode to the target buffer