MayaFlux 0.4.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 747 of file TextureLoom.cpp.

749{
750 return static_cast<size_t>(width) * height * depth * get_bytes_per_pixel(format);
751}
uint32_t width
static size_t get_bytes_per_pixel(ImageFormat format)
Get bytes per pixel for a format.

References get_bytes_per_pixel(), and width.

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

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