MCPcopy Create free account
hub / github.com/ZDoom/Raze / UpdateShadowMap

Method UpdateShadowMap

source/common/rendering/vulkan/renderer/vk_postprocess.cpp:276–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void VkPostprocess::UpdateShadowMap()
277{
278 if (screen->mShadowMap.PerformUpdate())
279 {
280 VkPPRenderState renderstate(fb);
281 hw_postprocess.shadowmap.Update(&renderstate);
282
283 VkImageTransition()
284 .AddImage(&fb->GetTextureManager()->Shadowmap, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, false)
285 .Execute(fb->GetCommands()->GetDrawCommands());
286
287 screen->mShadowMap.FinishUpdate();
288 }
289}
290
291void VkPostprocess::NextEye(int eyeCount)
292{

Callers

nothing calls this directly

Calls 9

VkImageTransitionClass · 0.85
PerformUpdateMethod · 0.80
AddImageMethod · 0.80
GetTextureManagerMethod · 0.80
GetDrawCommandsMethod · 0.80
GetCommandsMethod · 0.80
FinishUpdateMethod · 0.80
UpdateMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected