Skip to content
Snippets Groups Projects

Draft: gpu: add support for pl_tex_params.mipmaps

Closed Niklas Haas requested to merge haasn/libplacebo:mipmaps_v3 into master
  1. Jun 02, 2023
    • Niklas Haas's avatar
      tests/gpu_tests: add mipmap test · da99ba1d
      Niklas Haas authored
      Very basic test to just see if mip levels are generated correctly.
      da99ba1d
    • Niklas Haas's avatar
      vulkan: add support for mipmaps · b2cc7c6a
      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's avatar
      gpu: add support for pl_tex_params.mipmaps · 6a7fbdf7
      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
Loading