fix: incorrect lut texture format

This commit is contained in:
Samuliak 2024-07-05 18:49:17 +02:00
parent 3005468b3f
commit 7e8582d985

View file

@ -102,7 +102,7 @@ void RendererMTL::initGraphicsContext(SDL_Window* window) {
// Textures
MTL::TextureDescriptor* textureDescriptor = MTL::TextureDescriptor::alloc()->init();
textureDescriptor->setTextureType(MTL::TextureType1DArray);
textureDescriptor->setPixelFormat(MTL::PixelFormatR16Unorm);
textureDescriptor->setPixelFormat(MTL::PixelFormatR16Uint);
textureDescriptor->setWidth(LIGHT_LUT_TEXTURE_WIDTH);
textureDescriptor->setArrayLength(Lights::LUT_Count);
textureDescriptor->setUsage(MTL::TextureUsageShaderRead);