Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::TextureLoadData Struct Reference

CPU-side image bytes and dimensions used as texture load input. More...

#include <TextureLoadData.h>

Collaboration diagram for EngineCore::TextureLoadData:

Public Member Functions

 TextureLoadData (std::vector< unsigned char > imageData, int width, int height, int channels)
 Creates texture load data by taking ownership of image bytes.
bool operator== (const TextureLoadData &other) const
 Compares dimensions, channel count, and image bytes.

Public Attributes

int width
 Image width in pixels.
int height
 Image height in pixels.
int channels
 Number of channels per pixel.
std::vector< unsigned char > imageData
 Pixel bytes.

Detailed Description

CPU-side image bytes and dimensions used as texture load input.

Definition at line 9 of file TextureLoadData.h.

Constructor & Destructor Documentation

◆ TextureLoadData()

EngineCore::TextureLoadData::TextureLoadData ( std::vector< unsigned char > imageData,
int width,
int height,
int channels )
inline

Creates texture load data by taking ownership of image bytes.

Parameters
imageDataPixel bytes in row-major order.
widthImage width in pixels.
heightImage height in pixels.
channelsNumber of channels per pixel.

Definition at line 17 of file TextureLoadData.h.

References channels, height, imageData, and width.

Referenced by operator==().

Here is the caller graph for this function:

Member Function Documentation

◆ operator==()

bool EngineCore::TextureLoadData::operator== ( const TextureLoadData & other) const
inline

Compares dimensions, channel count, and image bytes.

Definition at line 34 of file TextureLoadData.h.

References channels, height, imageData, TextureLoadData(), and width.

Here is the call graph for this function:

Member Data Documentation

◆ channels

int EngineCore::TextureLoadData::channels

Number of channels per pixel.

Definition at line 28 of file TextureLoadData.h.

Referenced by std::hash< EngineCore::TextureLoadData >::operator()(), operator==(), and TextureLoadData().

◆ height

int EngineCore::TextureLoadData::height

Image height in pixels.

Definition at line 27 of file TextureLoadData.h.

Referenced by std::hash< EngineCore::TextureLoadData >::operator()(), operator==(), and TextureLoadData().

◆ imageData

std::vector<unsigned char> EngineCore::TextureLoadData::imageData

Pixel bytes.

Definition at line 29 of file TextureLoadData.h.

Referenced by std::hash< EngineCore::TextureLoadData >::operator()(), operator==(), and TextureLoadData().

◆ width

int EngineCore::TextureLoadData::width

Image width in pixels.

Definition at line 26 of file TextureLoadData.h.

Referenced by std::hash< EngineCore::TextureLoadData >::operator()(), operator==(), and TextureLoadData().


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Texture/TextureLoadData.h