gdk-graphics  1b6d84e044c2c953fd7c9501e628a67e80f4da0d
Public Attributes | List of all members
gdk::texture::image_data_2d_view Struct Reference

pod struct representing a view on decoded image data More...

#include <texture.h>

Public Attributes

size_t width
 number of texels wide
 
size_t height
 number of texels tall
 
data_format format
 format of the data
 
std::byte * data
 

Detailed Description

pod struct representing a view on decoded image data

the purpose of this type is in being used to construct a texture object. the user must ensure the data is not cleaned up until sometime after it has been used.

Note
: it is valid to provide width + height and a nullptr for data, the context will an uninitialized texture buffer of the specified size and format.

Member Data Documentation

◆ data

std::byte* gdk::texture::image_data_2d_view::data

raw image data non-owning pointer


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