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

Public Member Functions

 AZ_TYPE_INFO (ImageSubresourceLayout, "{076A8345-B6E4-4287-A1B3-4079E1BA3CA9}")
 
 ImageSubresourceLayout (Size size, uint32_t rowCount, uint32_t bytesPerRow, uint32_t bytesPerImage, uint32_t numBlocksWidth, uint32_t numBlocksHeight, uint32_t offset=0)
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

Size m_size
 
uint32_t m_rowCount = 0
 The number of rows in an image slice.
 
uint32_t m_bytesPerRow = 0
 The number of bytes in a contiguous row of the image data.
 
uint32_t m_bytesPerImage = 0
 The number of bytes in a single image slice. 3D textures are comprised of m_size.m_depth image slices.
 
uint32_t m_blockElementWidth = 1
 The number of blocks in width based on the texture fomat.
 
uint32_t m_blockElementHeight = 1
 The number of blocks in height based on the texture fomat.
 
uint32_t m_offset = 0
 The number of bytes that image date is offset in a buffer.
 

Member Data Documentation

◆ m_size

Size AZ::RHI::ImageSubresourceLayout::m_size

The size of the image subresource in pixels. Certain formats have alignment requirements. Block compressed formats are 4 pixel aligned. Other non-standard formats may be 2 pixel aligned.


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