Remove ThrowHelper APIs in D2D1 projects, switch to new extensions

このコミットが含まれているのは:
Sergio Pedri committed 2023-02-25 18:51:51 +01:00
1 親 5a4fd9a4ce
コミット 92fbf75185
17ファイル変更
+87 -194

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

+1 -1
ファイルの表示
@@ -35,7 +35,7 @@ internal struct ShaderBytecodeLoader : IBytecodeLoader
public unsafe void LoadDynamicBytecode(IntPtr handle)
{
default(InvalidOperationException).ThrowIf(this.cachedShader is not null);
default(InvalidOperationException).ThrowIf(handle == IntPtr.Zero);
default(NotSupportedException).ThrowIf(handle == IntPtr.Zero);
this.cachedShader = new ICachedShader.Dynamic((IDxcBlob*)handle);
}