Renderer/Texture: Allow to keep the texture format in TextureViewInfo

This commit is contained in:
SirLynix
2023-11-26 21:29:49 +01:00
parent 00935efbe0
commit 962a2e71c7
4 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ namespace Nz
{
if (m_texture.Create(*m_parentTexture->m_texture.GetDevice()))
{
auto format = DescribeTextureFormat(viewInfo.reinterpretFormat);
auto format = DescribeTextureFormat(m_textureInfo.pixelFormat);
context.ClearErrorStack();