From cf3475eab439df049fb48a039801da8270dc044c Mon Sep 17 00:00:00 2001 From: s-ol Date: Wed, 5 Mar 2025 18:38:04 +0100 Subject: implement HAP decoding straight to compressed GPU texture Supports HAP and HAP Alpha (Hap1/Hap5) formats --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 104f0d9..df243f1 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,14 @@ When built with ffmpeg, images and videos can be loaded as 2D or 3D textures: The filepaths are interpreted relative to the config file. +#### video files +Videos are fully uploaded to the GPU as 2D-array- or 3D textures. +To save on GPU memory, textures are stored using GPU compression. +Nevertheless, the resolution and length are limited. + +Loading most video formats is quite slow because the frames need to be compressed during upload. +Videos encoded using HAP or HAP Alpha will load much faster since the image data is already in the GPU compressed format. + ### commands A message to `/-/reload` forces a reload of the shader source code. -- cgit v1.2.3