From 02c36d9125abcfad3ed2b62bbb0d86743cd2a297 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Sat, 9 Nov 2024 08:04:17 +0100 Subject: [PATCH] add: blit todo notice --- src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp index 341c7843..d1b8f268 100644 --- a/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Metal/MetalRenderer.cpp @@ -614,6 +614,7 @@ void MetalRenderer::texture_loadSlice(LatteTexture* hostTexture, sint32 width, s memcpy(allocation.data, pixelData, compressedImageSize); //buffer->didModifyRange(NS::Range(allocation.offset, allocation.size)); + // TODO: specify blit options when copying to a depth stencil texture? // Copy the data from the temporary buffer to the texture blitCommandEncoder->copyFromBuffer(buffer, allocation.offset, bytesPerRow, 0, MTL::Size(width, height, 1), textureMtl->GetTexture(), sliceIndex, mipIndex, MTL::Origin(0, 0, offsetZ)); //}