summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-03 23:15:16 +1100
committerquou <quou@disroot.org>2025-01-03 23:15:16 +1100
commitcf4c007acc6bce0aa702a39b4675ecb879b911ed (patch)
treec30818ca49c18137c833e86ce589afeb6c51276a /video.cpp
parentb4d02ca1b735e3aee642509b14dfdddcc04a0c04 (diff)
HDR texture support
Diffstat (limited to 'video.cpp')
-rw-r--r--video.cpp4
1 files changed, 4 insertions, 0 deletions
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);