--------------------------------- 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)
| 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 | // |
| 142 | void 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 |
no test coverage detected