mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 00:59:18 +01:00
parent
9f9bc9865f
commit
ea68f787eb
@ -37,7 +37,7 @@ void LatteSurfaceCopy_copySurfaceNew(MPTR srcPhysAddr, MPTR srcMipAddr, uint32 s
|
|||||||
if (!destinationTexture)
|
if (!destinationTexture)
|
||||||
{
|
{
|
||||||
LatteTexture* renderTargetConf = nullptr;
|
LatteTexture* renderTargetConf = nullptr;
|
||||||
destinationView = LatteTexture_CreateMapping(dstPhysAddr, dstMipAddr, dstWidth, dstHeight, dstDepth, dstPitch, dstTilemode, dstSwizzle, dstLevel, 1, dstSlice, 1, dstSurfaceFormat, dstDim, Latte::E_DIM::DIM_2D, false);
|
destinationView = LatteTexture_CreateMapping(dstPhysAddr, dstMipAddr, dstWidth, dstHeight, dstDepth, dstPitch, dstTilemode, dstSwizzle, dstLevel, 1, dstSlice, 1, dstSurfaceFormat, dstDim, Latte::IsMSAA(dstDim) ? Latte::E_DIM::DIM_2D_MSAA : Latte::E_DIM::DIM_2D, false);
|
||||||
destinationTexture = destinationView->baseTexture;
|
destinationTexture = destinationView->baseTexture;
|
||||||
}
|
}
|
||||||
// copy texture
|
// copy texture
|
||||||
|
@ -345,6 +345,11 @@ namespace Latte
|
|||||||
return IsCompressedFormat((Latte::E_HWSURFFMT)((uint32)format & 0x3F));
|
return IsCompressedFormat((Latte::E_HWSURFFMT)((uint32)format & 0x3F));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool IsMSAA(Latte::E_DIM dim)
|
||||||
|
{
|
||||||
|
return dim == E_DIM::DIM_2D_MSAA || dim == E_DIM::DIM_2D_ARRAY_MSAA;
|
||||||
|
}
|
||||||
|
|
||||||
enum GPU_LIMITS
|
enum GPU_LIMITS
|
||||||
{
|
{
|
||||||
NUM_VERTEX_BUFFERS = 16,
|
NUM_VERTEX_BUFFERS = 16,
|
||||||
|
Loading…
Reference in New Issue
Block a user