--------------------------------- TextureData::c-tor Create the texture and generate a new GPU texture resource
| 24 | // Create the texture and generate a new GPU texture resource |
| 25 | // |
| 26 | TextureData::TextureData(ivec2 const res, E_ColorFormat const intern, E_ColorFormat const format, E_DataType const type, int32 const depth) |
| 27 | : m_Resolution(res) |
| 28 | , m_Internal(intern) |
| 29 | , m_Format(format) |
| 30 | , m_DataType(type) |
| 31 | , m_Depth(depth) |
| 32 | , m_TargetType((depth > 1) ? E_TextureType::Texture3D : E_TextureType::Texture2D) |
| 33 | { |
| 34 | m_Location = Viewport::GetCurrentApiContext()->GenerateTexture(); |
| 35 | } |
| 36 | |
| 37 | //--------------------------------- |
| 38 | // TextureData::TextureData |
nothing calls this directly
no test coverage detected