Open 3D Engine Atom Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::Size Struct Reference

Public Member Functions

 AZ_TYPE_INFO (Size, "{3B8DAD61-8AFA-4BB1-BCF8-179865D8C57B}")
 
 Size (uint32_t width, uint32_t height, uint32_t depth)
 
Size GetReducedMip (uint32_t mipLevel) const
 
bool operator== (const Size &rhs) const
 
bool operator!= (const Size &rhs) const
 
uint32_t & operator[] (uint32_t idx)
 
uint32_t operator[] (uint32_t idx) const
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

uint32_t m_width = 1
 
uint32_t m_height = 1
 
uint32_t m_depth = 1
 

Member Function Documentation

◆ GetReducedMip()

Size AZ::RHI::Size::GetReducedMip ( uint32_t  mipLevel) const

Returns the mip level size, assuming this size is mip 0. A value of 1 is half sized, 2 quarter sized, etc. Clamps at 1.


The documentation for this struct was generated from the following file: