devkitPro / deko3d

Homebrew low level graphics API for Nintendo Switch (Nvidia Tegra X1)
zlib License
323 stars 23 forks source link

dkImageLayoutInitialize: Align layer size #6

Closed ReinUsesLisp closed 4 years ago

ReinUsesLisp commented 4 years ago

Hardware expects layer strides to be aligned depending on the image tile size. Apply this alignment to all layered images.

Fixes rendering to 2D images with multiple layers and mipmaps.