Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::MipLevelProperties Struct Reference

Describes the mip level properties. More...

#include <GraphicsAccessories.hpp>

Public Attributes

Uint32 LogicalWidth = 0
 Logical mip width.
 
Uint32 LogicalHeight = 0
 Logical mip height.
 
Uint32 StorageWidth = 0
 Storage mip width.
 
Uint32 StorageHeight = 0
 Storage mip height.
 
Uint32 Depth = 1
 Mip level depth.
 
Uint64 RowSize = 0
 Row size in bytes.
 
Uint64 DepthSliceSize = 0
 Depth slice size in bytes.
 
Uint64 MipSize = 0
 Total mip level data size in bytes.
 

Detailed Description

Describes the mip level properties.

Member Data Documentation

◆ Depth

Uint32 Diligent::MipLevelProperties::Depth = 1

Mip level depth.

Note
that logical and storage depths are always the same.

◆ RowSize

Uint64 Diligent::MipLevelProperties::RowSize = 0

Row size in bytes.

Note
For compressed formats, row size defines the size of one row of compressed blocks.

◆ StorageHeight

Uint32 Diligent::MipLevelProperties::StorageHeight = 0

Storage mip height.

Note
For compressed formats, storage height is rounded up to the block size. For example, for a texture mip with logical height 10 and BC1 format (with 4x4 pixel block size), the storage height will be 12.

◆ StorageWidth

Uint32 Diligent::MipLevelProperties::StorageWidth = 0

Storage mip width.

Note
For compressed formats, storage width is rounded up to the block size. For example, for a texture mip with logical width 10 and BC1 format (with 4x4 pixel block size), the storage width will be 12.