Remove default interface methods from shader interfaces

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-27 23:19:45 +02:00
1 親 655c891ba2
コミット aa886c55ba
2ファイル変更
+9 -72

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

+4 -32
ファイルの表示
@@ -17,14 +17,7 @@ public interface ID2D1Shader
/// <remarks>The input buffer must be retrieved from <see cref="LoadDispatchData"/>.</remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be called directly by user code")]
void InitializeFromDispatchData(ReadOnlySpan<byte> data)
#if NET6_0_OR_GREATER
{
throw new NotImplementedException();
}
#else
;
#endif
void InitializeFromDispatchData(ReadOnlySpan<byte> data);
/// <summary>
/// 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<TLoader>(ref TLoader loader)
where TLoader : struct, ID2D1DispatchDataLoader
#if NET6_0_OR_GREATER
{
throw new NotImplementedException();
}
#else
;
#endif
where TLoader : struct, ID2D1DispatchDataLoader;
/// <summary>
/// Builds the HLSL source code for the current shader instance.
@@ -49,14 +35,7 @@ public interface ID2D1Shader
/// <param name="hlslSource">The resulting HLSL source.</param>
[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);
/// <summary>
/// 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<TLoader>(ref TLoader loader, D2D1ShaderProfile? shaderProfile)
where TLoader : struct, ID2D1BytecodeLoader
#if NET6_0_OR_GREATER
{
throw new NotImplementedException();
}
#else
;
#endif
where TLoader : struct, ID2D1BytecodeLoader;
}
+5 -40
ファイルの表示
@@ -16,14 +16,7 @@ public interface IShader
/// <returns>The unique dispatch identifier for the shader.</returns>
[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();
/// <summary>
/// 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<TLoader>(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;
/// <summary>
/// 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<TLoader>(ref TLoader loader, out IntPtr result)
where TLoader : struct, IDispatchMetadataLoader
#if NET6_0_OR_GREATER
{
throw new NotImplementedException();
}
#else
;
#endif
where TLoader : struct, IDispatchMetadataLoader;
/// <summary>
/// Builds the HLSL source code for the current shader instance.
@@ -73,14 +52,7 @@ public interface IShader
/// <param name="threadsZ">The number of threads in each thread group for the Z axis.</param>
[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);
/// <summary>
/// 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<TLoader>(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;
}