diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-10-10 04:22:07 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-10-10 04:22:07 +0000 |
| commit | 2493c846cfb4e4d60d3a26ca9cd1e9a9b0ed92d6 (patch) | |
| tree | 40f8bab9964524f3e6b77be3042c236a47c4d6fc /Graphics/GraphicsEngine | |
| parent | Improved D3D12DynamicHeap memory usage reporting (diff) | |
| download | DiligentCore-2493c846cfb4e4d60d3a26ca9cd1e9a9b0ed92d6.tar.gz DiligentCore-2493c846cfb4e4d60d3a26ca9cd1e9a9b0ed92d6.zip | |
Fixed creation of typeless textures in D3D12 backend
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/TextureBase.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/include/TextureBase.h b/Graphics/GraphicsEngine/include/TextureBase.h index 39f98b5c..81f57da1 100644 --- a/Graphics/GraphicsEngine/include/TextureBase.h +++ b/Graphics/GraphicsEngine/include/TextureBase.h @@ -383,6 +383,11 @@ void TextureBase<BaseInterface, TRenderDeviceImpl, TTextureViewImpl, TTexViewObj UNEXPECTED("Unexpected texture dimension"); } + if (GetTextureFormatAttribs(ViewDesc.Format).IsTypeless) + { + TEX_VIEW_VALIDATION_ERROR( "Texture view format (", GetTextureFormatAttribs(ViewDesc.Format).Name, ") cannot be typeless" ); + } + #undef TEX_VIEW_VALIDATION_ERROR if( ViewDesc.NumMipLevels == 0 ) |
