MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / BeginFrame

Function BeginFrame

SampleFramework12/v1.00/ImGuiHelper.cpp:203–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void BeginFrame(uint32 displayWidth, uint32 displayHeight, float timeDelta)
204{
205 Assert_(CurrBeginFrame != DX12::CurrentCPUFrame);
206
207 ImGuiIO& io = ImGui::GetIO();
208 io.DisplaySize = ImVec2(float(displayWidth), float(displayHeight));
209 io.DeltaTime = timeDelta;
210
211 // Read keyboard modifiers inputs
212 io.KeyCtrl = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
213 io.KeyShift = (GetKeyState(VK_SHIFT) & 0x8000) != 0;
214 io.KeyAlt = (GetKeyState(VK_MENU) & 0x8000) != 0;
215
216 ImGui::NewFrame();
217
218 #if UseAsserts_
219 CurrBeginFrame = DX12::CurrentCPUFrame;
220 #endif
221}
222
223void EndFrame(ID3D12GraphicsCommandList* cmdList, D3D12_CPU_DESCRIPTOR_HANDLE rtv, uint32 displayWidth, uint32 displayHeight)
224{

Callers 2

Update_InternalMethod · 0.70
Render_InternalMethod · 0.70

Calls 1

ImVec2Class · 0.85

Tested by

no test coverage detected