]> git.tdb.fi Git - libs/gl.git/commit
Support binding individual mipmap levels of textures
authorMikko Rasa <tdb@tdb.fi>
Fri, 10 Dec 2021 13:51:09 +0000 (15:51 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 10 Dec 2021 23:32:45 +0000 (01:32 +0200)
commitc89c1fb972fae2cb2f720cb3ec6cf8238ae8d2e1
tree60a44d683d40f05be74192b4f99c543df207a286
parent2a2917f41f02fa12e9354616d76bf45c9b5bf3e6
Support binding individual mipmap levels of textures

Vulkan requires different layouts for sampling a texture and rendering
into, so reading from one mip level and rendering into another requires
separate views.

The OpenGL backend only allows binding level 0, since nothing currently
needs binding higher levels.  Full support requires the ARB_texture_view
extension.
source/backends/opengl/pipelinestate_backend.h
source/backends/vulkan/pipelinestate_backend.cpp
source/backends/vulkan/pipelinestate_backend.h
source/backends/vulkan/texture_backend.cpp
source/backends/vulkan/texture_backend.h
source/core/pipelinestate.cpp
source/core/pipelinestate.h
source/render/renderer.cpp
source/render/renderer.h