Formerly Happenlance, now WhiteBox and All Out; side project is a Silent Hill 2 level editor.
Trying to stay positive!
Pinned Loading
-
OpenGL-on-DXGI1.3
OpenGL-on-DXGI1.3 PublicOpenGL on flip-model swapchains via WGL_NV_DX_interop2
C 14
-
Obtain RDTSC frequency on Win32 and ...
Obtain RDTSC frequency on Win32 and Linux 1// SPDX-FileCopyrightText: © 2022 Phillip Trudeau-Tavara <[email protected]>
2// SPDX-License-Identifier: 0BSD
34// https://hero.handmade.network/forums/code-discussion/t/7485-queryperformancefrequency_returning_10mhz_bug/2
5// https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/tlfs/timers#partition-reference-tsc-mechanism
-
The definitive defer implementation ...
The definitive defer implementation for C++. Syntax: defer { statements; }; 1#ifndef defer
2struct defer_dummy {};
3template <class F> struct deferrer { F f; ~deferrer() { f(); } };
4template <class F> deferrer<F> operator*(defer_dummy, F f) { return {f}; }
5#define DEFER_(LINE) zz_defer##LINE
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.