Add and implement ID2D1Shader.BuildHlslSource method

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:04:09 +02:00
1 親 6f39eee106
コミット f95079ea51
6ファイル変更
+151 -34

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

+16 -2
ファイルの表示
@@ -28,17 +28,31 @@ public interface ID2D1Shader
;
#endif
/// <summary>
/// Builds the HLSL source code for the current shader instance.
/// </summary>
/// <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
/// <summary>
/// Loads the bytecode for the current shader.
/// </summary>
/// <typeparam name="TLoader">The type of bytecode loader being used.</typeparam>
/// <param name="loader">The <typeparamref name="TLoader"/> instance to use to load the bytecode.</param>
/// <param name="shaderProfile">The shader profile to use to get the shader bytecode (if <see langword="null"/>, the precompiled shader will be used).</param>
/// <param name="hlslSource">The HLSL source that was compiled.</param>
/// <exception cref="InvalidOperationException">Thrown if a precompiled bytecode was requested (<paramref name="shaderProfile"/> is <see langword="null"/>), but it wasn't availablle.</exception>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This method is not intended to be used directly by user code")]
void LoadBytecode<TLoader>(ref TLoader loader, D2D1ShaderProfile? shaderProfile, out string hlslSource)
void LoadBytecode<TLoader>(ref TLoader loader, D2D1ShaderProfile? shaderProfile)
where TLoader : struct, ID2D1BytecodeLoader
#if NET6_0_OR_GREATER
{