1#ifndef NXDK_PGRAPH_TESTS_SRC_IMAGERESOURCE_H_
2#define NXDK_PGRAPH_TESTS_SRC_IMAGERESOURCE_H_
8 uint8_t *data{
nullptr};
12 uint32_t bytes_per_pixel{0};
23 void LoadPNG(
const std::string &source_path);
26 void CopyTo(uint8_t *target)
const;
Definition image_resource.h:7
void CopyTo(uint8_t *target) const
Copies the image data to the given target, which must be allocated and sufficiently large.
Definition image_resource.cpp:35
void SwizzleTo(uint8_t *target) const
Definition image_resource.cpp:37
void LoadPNG(const std::string &source_path)
Definition image_resource.cpp:16