Skip to content

Commit 3474816

Browse files
TextureDesc: clarify ArraySize documentation for cube maps
1 parent 454e7ff commit 3474816

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Graphics/GraphicsEngine/interface/Texture.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ struct TextureDesc DILIGENT_DERIVE(DeviceObjectAttribs)
9494
#else
9595
union
9696
{
97-
/// For a 1D array or 2D array, number of array slices
97+
/// For a 1D array or 2D array, number of array slices.
98+
///
99+
/// For cube maps and cube map arrays, this value must be a multiple of 6.
100+
/// The number of cube maps in the texture is ArraySize / 6.
98101
Uint32 ArraySize DEFAULT_INITIALIZER(1);
99102

100103
/// For a 3D texture, number of depth slices

0 commit comments

Comments
 (0)