// vim:fileencoding=utf-8:foldmethod=marker
//
// RHI context — shared initialisation and global state.

#include "pr_rhi.h"

PrRhiContext _G_RHI_CONTEXT;

void prRhiInit(void) {
	_G_RHI_CONTEXT.allocator    = wpMemArenaAllocatorInit(MiB(64));
}

void prRhiDestroy(void) {
	wpMemArenaAllocatorDestroy(&_G_RHI_CONTEXT.allocator);
}
