| 12345678910111213141516171819202122232425 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <AnKi/Gr/gl/TextureViewImpl.h>
- 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<const TextureImpl&>(*m_tex);
- ANKI_ASSERT(tex.isSubresourceValid(inf));
- m_texType = tex.computeNewTexTypeOfSubresource(inf);
- }
- } // end namespace anki
|