mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-02-27 15:13:36 +01:00
add: blit todo notice
This commit is contained in:
parent
f1db7d5ab9
commit
02c36d9125
@ -614,6 +614,7 @@ void MetalRenderer::texture_loadSlice(LatteTexture* hostTexture, sint32 width, s
|
|||||||
memcpy(allocation.data, pixelData, compressedImageSize);
|
memcpy(allocation.data, pixelData, compressedImageSize);
|
||||||
//buffer->didModifyRange(NS::Range(allocation.offset, allocation.size));
|
//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
|
// 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));
|
blitCommandEncoder->copyFromBuffer(buffer, allocation.offset, bytesPerRow, 0, MTL::Size(width, height, 1), textureMtl->GetTexture(), sliceIndex, mipIndex, MTL::Origin(0, 0, offsetZ));
|
||||||
//}
|
//}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user