// Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE // Tonemapping resources #pragma once #include RWTexture2D g_tonemappingStorageTex : register(TONEMAPPING_REGISTER); template void writeExposureAndAverageLuminance(T exposure, T avgLuminance) { g_tonemappingStorageTex[UVec2(0, 0)] = vector(exposure, avgLuminance, 0.0, 0.0); } template vector readExposureAndAverageLuminance() { return g_tonemappingStorageTex[UVec2(0, 0)].xy; }