MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ calculate_image_size()

size_t MayaFlux::Portal::Graphics::TextureLoom::calculate_image_size ( uint32_t  width,
uint32_t  height,
uint32_t  depth,
ImageFormat  format 
)
static

Calculate image data size.

Definition at line 1077 of file TextureLoom.cpp.

1079{
1080 return static_cast<size_t>(width) * height * depth * get_bytes_per_pixel(format);
1081}
bool format
uint32_t width
uint32_t height
uint32_t depth
static size_t get_bytes_per_pixel(ImageFormat format)
Get bytes per pixel for a format.

References depth, format, get_bytes_per_pixel(), height, and width.

Referenced by create_2d(), create_2d(), create_2d_array(), create_3d(), create_cubemap(), download_image(), refresh_cached_image(), and transfer_format().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: