diff --git a/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs
index ef8f36db..8159e2ef 100644
--- a/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs
+++ b/src/ComputeSharp.D2D1/Interfaces/__Internals/ID2D1Shader.cs
@@ -17,14 +17,7 @@ public interface ID2D1Shader
/// The input buffer must be retrieved from .
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be called directly by user code")]
- void InitializeFromDispatchData(ReadOnlySpan data)
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ void InitializeFromDispatchData(ReadOnlySpan data);
///
/// Loads the dispatch data for the shader.
@@ -34,14 +27,7 @@ public interface ID2D1Shader
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be called directly by user code")]
void LoadDispatchData(ref TLoader loader)
- where TLoader : struct, ID2D1DispatchDataLoader
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ where TLoader : struct, ID2D1DispatchDataLoader;
///
/// Builds the HLSL source code for the current shader instance.
@@ -49,14 +35,7 @@ public interface ID2D1Shader
/// The resulting HLSL source.
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be called directly by user code")]
- void BuildHlslSource(out string hlslSource)
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ void BuildHlslSource(out string hlslSource);
///
/// Loads the bytecode for the current shader.
@@ -68,12 +47,5 @@ public interface ID2D1Shader
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be used directly by user code")]
void LoadBytecode(ref TLoader loader, D2D1ShaderProfile? shaderProfile)
- where TLoader : struct, ID2D1BytecodeLoader
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ where TLoader : struct, ID2D1BytecodeLoader;
}
diff --git a/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs b/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs
index e688929b..e0d69b91 100644
--- a/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs
+++ b/src/ComputeSharp/Core/Interfaces/__Internals/IShader.cs
@@ -16,14 +16,7 @@ public interface IShader
/// The unique dispatch identifier for the shader.
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be used directly by user code")]
- int GetDispatchId()
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ int GetDispatchId();
///
/// Loads the dispatch data for the shader.
@@ -37,14 +30,7 @@ public interface IShader
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be called directly by user code")]
void LoadDispatchData(ref TLoader loader, GraphicsDevice device, int x, int y, int z)
- where TLoader : struct, IDispatchDataLoader
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ where TLoader : struct, IDispatchDataLoader;
///
/// Loads an opaque metadata handle from the metadata of the current shader.
@@ -55,14 +41,7 @@ public interface IShader
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be called directly by user code")]
void LoadDispatchMetadata(ref TLoader loader, out IntPtr result)
- where TLoader : struct, IDispatchMetadataLoader
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ where TLoader : struct, IDispatchMetadataLoader;
///
/// Builds the HLSL source code for the current shader instance.
@@ -73,14 +52,7 @@ public interface IShader
/// The number of threads in each thread group for the Z axis.
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be called directly by user code")]
- void BuildHlslSource(out ArrayPoolStringBuilder builder, int threadsX, int threadsY, int threadsZ)
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ void BuildHlslSource(out ArrayPoolStringBuilder builder, int threadsX, int threadsY, int threadsZ);
///
/// Loads the bytecode for the current shader.
@@ -94,12 +66,5 @@ public interface IShader
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be used directly by user code")]
void LoadBytecode(ref TLoader loader, int threadsX, int threadsY, int threadsZ)
- where TLoader : struct, IBytecodeLoader
-#if NET6_0_OR_GREATER
- {
- throw new NotImplementedException();
- }
-#else
- ;
-#endif
+ where TLoader : struct, IBytecodeLoader;
}