LiteFX 0.4.1.2025
Computer Graphics Engine
|
Utility class that can be used to issue blit commands and generate mip maps. More...
#include <blitter.hpp>
Inherits LiteFX::SharedObject.
Public Member Functions | |
~Blitter () noexcept override=default | |
void | generateMipMaps (TBackend::image_type &image, TBackend::command_buffer_type &commandBuffer) |
![]() | |
virtual | ~SharedObject () noexcept=default |
Destroys the shared object. | |
template<typename TSelf > | |
auto | shared_from_this (this TSelf &&self) noexcept |
Returns a shared pointer to the current object instance. | |
template<typename TSelf > | |
auto | weak_from_this (this TSelf &&self) noexcept -> WeakPtr< std::remove_reference_t< TSelf > > |
Returns a weak pointer to the current object instance. | |
Static Public Member Functions | |
static auto | create (const TBackend::device_type &device) |
Creates a new blitter instance. | |
Friends | |
struct | SharedObject::Allocator< Blitter > |
Additional Inherited Members | |
![]() | |
SharedObject () noexcept=default | |
Initializes a new shared object. | |
SharedObject (SharedObject &&) noexcept=default | |
SharedObject (const SharedObject &)=default | |
SharedObject & | operator= (SharedObject &&) noexcept=default |
SharedObject & | operator= (const SharedObject &)=default |
![]() | |
template<typename T , typename... TArgs> | |
static auto | create (TArgs &&... args) -> SharedPtr< T > |
Generic factory method used to create instances of the shared object. | |
Utility class that can be used to issue blit commands and generate mip maps.
This utility class can be used to generate mip maps for images. Note however, that it is more efficient to pre-compute mip maps if possible. Also note that if you need a direct copy of a image, use a ICommandBuffer::transfer command instead.
TBackend | The type of render backend that implements the blitter. |
|
overridedefaultnoexcept |
|
inlinestatic |
Creates a new blitter instance.
device | The device to allocate resources from. |
void LiteFX::Graphics::Blitter< TBackend >::generateMipMaps | ( | TBackend::image_type & | image, |
TBackend::command_buffer_type & | commandBuffer ) |
|
friend |