Draft: gpu: add support for pl_tex_params.mipmaps
- Jun 02, 2023
-
-
Niklas Haas authored
Very basic test to just see if mip levels are generated correctly.
da99ba1d -
Niklas Haas authored
This is a very low quality implementation which simply uses iterated bilinear scaling, destroying information. It would be much better to use either a polyphasic filter or, better yet, an actual filter kernel, but this is more complicated to achieve because the low-level nature of the vk_tex_* implementation prevents me from using high-level public APIs, so I will defer it to a future commit.
b2cc7c6a -
Niklas Haas authored
This commit just adds the public facing API. I decided to go with a "minimalist" approach of just making mipmaps transparently regenerate without user intervention, any time a texture containing mipmaps is sampled from. (Of course, the validity of mipmaps will be cached, and they will only be re-resolved if the texture is written to) Closes: videolan/libplacebo#276
6a7fbdf7
-