Luna::RHI::IDevice::get_texture_data_placement_info
virtual void get_texture_data_placement_info(u32 width, u32 height, u32 depth, Format format, u64 *size=nullptr, u64 *alignment=nullptr, u64 *row_pitch=nullptr, u64 *slice_pitch=nullptr)=0
Gets the texture data placement information when storing texture data in a buffer. The texture data is arranged in row-major order.
Parameters
-
in width
The width of the texture data.
-
in height
The height of the texture data.
-
in depth
The depth of the texture data.
-
in format
The format of the texture data.
-
out size
The size of the texture data in the buffer. Specify
nullptr
if this is not needed. -
out alignment
The alignment requirement of the texture data. Specify
nullptr
if this is not needed. -
out row_pitch
The row pitch of the texture data. Specify
nullptr
if this is not needed. -
out slice_pitch
The slice (row * column) pitch of the texture data. Specify
nullptr
if this is not needed.