MayaFlux 0.1.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 491 of file TextureLoom.cpp.

493{
494 return static_cast<size_t>(width) * height * depth * get_bytes_per_pixel(format);
495}
static size_t get_bytes_per_pixel(ImageFormat format)
Get bytes per pixel for a format.

References get_bytes_per_pixel().

Referenced by create_2d(), create_3d(), and create_cubemap().

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