Graphics/FrameGraph: Add support for texture arrays

This commit is contained in:
SirLynix
2023-08-31 18:00:58 +02:00
parent 5b11e53d33
commit b1487a04fd
5 changed files with 90 additions and 2 deletions

View File

@@ -170,8 +170,9 @@ namespace Nz
textureCreationParams.pixelFormat = textureData.format;
textureCreationParams.levelCount = 1;
textureCreationParams.layerCount = textureData.layerCount;
if (textureCreationParams.type == ImageType::Cubemap)
textureCreationParams.layerCount = 6;
textureCreationParams.layerCount *= 6;
textureCreationParams.width = 1;
textureCreationParams.height = 1;