// Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include namespace anki { void TextureViewImpl::preInit(const TextureViewInitInfo& inf) { ANKI_ASSERT(inf.isValid()); // Store some stuff m_subresource = inf; m_tex = inf.m_texture; const TextureImpl& tex = static_cast(*m_tex); ANKI_ASSERT(tex.isSubresourceValid(inf)); m_texType = tex.computeNewTexTypeOfSubresource(inf); } } // end namespace anki