From cf4c007acc6bce0aa702a39b4675ecb879b911ed Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 3 Jan 2025 23:15:16 +1100 Subject: HDR texture support --- video.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video.cpp') diff --git a/video.cpp b/video.cpp index 4e38bc5..ef724bf 100644 --- a/video.cpp +++ b/video.cpp @@ -3689,6 +3689,10 @@ size_t Texture_Loader::calc_size( return (w / 4) * (h / 4) * 16; case texture_format_r8i: return w * h; + case texture_format_rgb16f: + return w * h * 6; + case texture_format_rgb32f: + return w * h * 12; default: print_err("Can't load this texture format.\n"); pbreak(45498); -- cgit v1.2.3-54-g00ecf