MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnBegin

Method OnBegin

Source/Engine/Graphics/RenderTask.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void RenderTask::OnBegin(GPUContext* context)
93{
94 Begin(this, context);
95 if (SwapChain)
96 SwapChain->Begin(this);
97
98 _prevTask = GPUDevice::Instance->CurrentTask;
99 GPUDevice::Instance->CurrentTask = this;
100 LastUsedFrame = Engine::FrameCount;
101 FrameCount++;
102}
103
104void RenderTask::OnRender(GPUContext* context)
105{

Callers

nothing calls this directly

Calls 9

OnBeginFunction · 0.85
GetViewportFunction · 0.85
GetWidthMethod · 0.80
GetSizeFunction · 0.70
BeginFunction · 0.50
BeginMethod · 0.45
CopyFromMethod · 0.45
InitMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected