Fixed incorrect exceptions for unsupported 3D texture type

このコミットが含まれているのは:
Sergio Pedri committed 2021-05-10 13:52:23 +02:00
1 親 64e322589c
コミット 0a0f51bd5f
2ファイル変更
+2 -2

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

+1 -1
ファイルの表示
@@ -82,7 +82,7 @@ namespace ComputeSharp.Resources
if (!device.D3D12Device->IsDxgiFormatSupported(DXGIFormatHelper.GetForType<T>(), d3D12FormatSupport))
{
UnsupportedTextureTypeException.ThrowForTexture2D<T>();
UnsupportedTextureTypeException.ThrowForTexture3D<T>();
}
GraphicsDevice = device;
+1 -1
ファイルの表示
@@ -58,7 +58,7 @@ namespace ComputeSharp.Resources
if (!device.D3D12Device->IsDxgiFormatSupported(DXGIFormatHelper.GetForType<T>(), D3D12_FORMAT_SUPPORT1_TEXTURE3D))
{
UnsupportedTextureTypeException.ThrowForTexture2D<T>();
UnsupportedTextureTypeException.ThrowForTexture3D<T>();
}
GraphicsDevice = device;