Fixed incorrect exceptions for unsupported 3D texture type
このコミットが含まれているのは:
1 親
64e322589c
コミット
0a0f51bd5f
2ファイル変更
+2
-2
検索条件に一致するファイルはありません
@@ -82,7 +82,7 @@ namespace ComputeSharp.Resources
|
||||
|
||||
if (!device.D3D12Device->IsDxgiFormatSupported(DXGIFormatHelper.GetForType<T>(), d3D12FormatSupport))
|
||||
{
|
||||
UnsupportedTextureTypeException.ThrowForTexture2D<T>();
|
||||
UnsupportedTextureTypeException.ThrowForTexture3D<T>();
|
||||
}
|
||||
|
||||
GraphicsDevice = device;
|
||||
|
||||
@@ -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;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする