MCPcopy Create free account
hub / github.com/Illation/ETEngine / TextureData

Method TextureData

Engine/source/EtRendering/GraphicsTypes/TextureData.cpp:26–35  ·  view source on GitHub ↗

--------------------------------- TextureData::c-tor Create the texture and generate a new GPU texture resource

Source from the content-addressed store, hash-verified

24// Create the texture and generate a new GPU texture resource
25//
26TextureData::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

Callers

nothing calls this directly

Calls 1

GenerateTextureMethod · 0.80

Tested by

no test coverage detected