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

Method CreateHandle

Engine/source/EtRendering/GraphicsTypes/TextureData.cpp:142–148  ·  view source on GitHub ↗

--------------------------------- TextureData::CreateHandle Create a handle that allows bindless use of the texture. After the handle is created, no other modifying operations should be done (except resize)

Source from the content-addressed store, hash-verified

140// Create a handle that allows bindless use of the texture. After the handle is created, no other modifying operations should be done (except resize)
141//
142void TextureData::CreateHandle()
143{
144 I_GraphicsApiContext* const api = Viewport::GetCurrentApiContext();
145
146 m_Handle = api->GetTextureHandle(m_Location);
147 api->SetTextureHandleResidency(m_Handle, true); // #todo: in the future we should have a system that makes inactive handles non resident after a while
148}
149
150//===================
151// Texture Asset

Callers 2

LoadFromMemoryMethod · 0.80

Calls 2

GetTextureHandleMethod · 0.80

Tested by

no test coverage detected