Refactoring - rename resetPoolExpiry to requestResidency
This commit is contained in:
@@ -150,7 +150,7 @@ void KRCamera::preStream(const KRViewport& viewport)
|
||||
m_skyBox.bind(&getContext());
|
||||
|
||||
if (m_skyBox.isBound()) {
|
||||
m_skyBox.get()->resetPoolExpiry(0.0f, KRTexture::TEXTURE_USAGE_SKY_CUBE);
|
||||
m_skyBox.get()->requestResidency(0.0f, KRTexture::TEXTURE_USAGE_SKY_CUBE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -625,7 +625,7 @@ void KRCamera::renderDebug(RenderInfo& ri)
|
||||
|
||||
|
||||
KRTexture* fontTexture = m_pContext->getTextureManager()->getTexture("font");
|
||||
fontTexture->resetPoolExpiry(0.0f, KRTexture::TEXTURE_USAGE_UI);
|
||||
fontTexture->requestResidency(0.0f, KRTexture::TEXTURE_USAGE_UI);
|
||||
if (fontTexture->getStreamLevel(KRTexture::TEXTURE_USAGE_UI) != kraken_stream_level::STREAM_LEVEL_OUT) {
|
||||
|
||||
PipelineInfo info{};
|
||||
|
||||
@@ -396,7 +396,7 @@ void KRLight::render(RenderInfo& ri)
|
||||
m_flareTexture.bind(&getContext());
|
||||
|
||||
if (m_flareTexture.isBound()) {
|
||||
m_flareTexture.get()->resetPoolExpiry(0.0f, KRTexture::TEXTURE_USAGE_LIGHT_FLARE);
|
||||
m_flareTexture.get()->requestResidency(0.0f, KRTexture::TEXTURE_USAGE_LIGHT_FLARE);
|
||||
KRMeshManager::KRVBOData& vertices = getContext().getMeshManager()->KRENGINE_VBO_DATA_2D_SQUARE_VERTICES;
|
||||
|
||||
// Render light flare on transparency pass
|
||||
|
||||
@@ -294,7 +294,7 @@ void KRModel::render(KRNode::RenderInfo& ri)
|
||||
|
||||
|
||||
if (m_lightMap.isBound() && ri.camera->settings.bEnableLightMap && ri.renderPass->getType() != RENDER_PASS_SHADOWMAP && ri.renderPass->getType() != RENDER_PASS_SHADOWMAP) {
|
||||
m_lightMap.get()->resetPoolExpiry(lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
|
||||
m_lightMap.get()->requestResidency(lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
|
||||
// TODO - Vulkan refactoring. We need to bind the shadow map in KRMesh::Render
|
||||
// m_pContext->getTextureManager()->selectTexture(5, m_pLightMap, lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
|
||||
}
|
||||
@@ -316,7 +316,6 @@ void KRModel::render(KRNode::RenderInfo& ri)
|
||||
void KRModel::preStream(const KRViewport& viewport)
|
||||
{
|
||||
KRNode::preStream(viewport);
|
||||
m_lightMap.bind(&getContext());
|
||||
loadModel();
|
||||
float lod_coverage = viewport.coverage(getBounds());
|
||||
|
||||
@@ -329,7 +328,7 @@ void KRModel::preStream(const KRViewport& viewport)
|
||||
m_lightMap.bind(&getContext());
|
||||
|
||||
if (m_lightMap.isBound()) {
|
||||
m_lightMap.get()->resetPoolExpiry(lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
|
||||
m_lightMap.get()->requestResidency(lod_coverage, KRTexture::TEXTURE_USAGE_LIGHT_MAP);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ void KRSprite::preStream(const KRViewport& viewport)
|
||||
m_spriteTexture.bind(&getContext());
|
||||
|
||||
if (m_spriteTexture.isBound()) {
|
||||
m_spriteTexture.get()->resetPoolExpiry(0.0f, KRTexture::TEXTURE_USAGE_SPRITE);
|
||||
m_spriteTexture.get()->requestResidency(0.0f, KRTexture::TEXTURE_USAGE_SPRITE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user