Fermat
Public Types | Public Methods | Static Public Methods | Public Members | List of all members
MipMapStorage< TYPE > Struct Template Reference

Detailed description

template<BufferType TYPE>
struct MipMapStorage< TYPE >

Mip-Map storage

#include <texture.h>

Public Types

typedef TextureStorage< TYPE > TextureType
 
typedef std::shared_ptr< TextureStorage< TYPE > > TexturePtr
 

Public Methods

template<BufferType UTYPE>
 MipMapStorage (const MipMapStorage< UTYPE > &other)
 
template<BufferType UTYPE>
MipMapStorageoperator= (const MipMapStorage< UTYPE > &other)
 
void set (TexturePtr texture)
 
void resize (const uint32_t _res_x, const uint32_t _res_y)
 
void generate_mips ()
 
uint32 level_count () const
 
MipMapView view ()
 

Static Public Methods

static void downsample (TexturePtr src, TexturePtr dst)
 

Public Members

uint32_t res_x
 
uint32_t res_y
 
uint32_t n_levels
 
DomainBuffer< HOST_BUFFER, TexturePtr > levels
 
DomainBuffer< TYPE, TextureViewlevel_views
 

The documentation for this struct was generated from the following file: