]> git.tdb.fi Git - libs/gl.git/commit
Refactor low-level state management
authorMikko Rasa <tdb@tdb.fi>
Thu, 18 Nov 2021 10:09:57 +0000 (12:09 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 18 Nov 2021 10:27:32 +0000 (12:27 +0200)
commita6d84d93ce8c0adde41679a6c6852335e19ada17
tree30f430f544a899e7f20bb4cde5d7ad40fb034c3d
parentb23a9af95c65c01d949153fc49e5091aaa7c3d30
Refactor low-level state management

The global context state is now held in Device.

The changes mask in PipelineState was also moved to the backend class,
because pipeline state is applied very differently in Vulkan.
source/backends/opengl/buffer_backend.cpp
source/backends/opengl/buffer_backend.h
source/backends/opengl/device_backend.cpp
source/backends/opengl/device_backend.h
source/backends/opengl/pipelinestate_backend.cpp
source/backends/opengl/pipelinestate_backend.h
source/backends/opengl/texture_backend.cpp
source/backends/opengl/texture_backend.h
source/core/pipelinestate.h