Add device lost validation to public APIs

このコミットが含まれているのは:
Sergio Pedri committed 2022-07-31 23:26:10 +02:00
1 親 041956b854
コミット 8a9368506b
15ファイル変更
+56

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

+1
ファイルの表示
@@ -52,6 +52,7 @@ public unsafe abstract class TransferTexture3D<T> : NativeObject, IGraphicsResou
private protected TransferTexture3D(GraphicsDevice device, int width, int height, int depth, ResourceType resourceType, AllocationMode allocationMode)
{
device.ThrowIfDisposed();
device.ThrowIfDeviceLost();
Guard.IsBetweenOrEqualTo(width, 1, D3D12.D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION);
Guard.IsBetweenOrEqualTo(height, 1, D3D12.D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION);