mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-28 17:40:48 -07:00
Fix buffer to 3D texture copy (#1354)
This commit is contained in:
@ -23,6 +23,7 @@ namespace Ryujinx.Graphics.Texture
|
||||
int stride,
|
||||
bool isLinear,
|
||||
int gobBlocksInY,
|
||||
int gobBlocksInZ,
|
||||
int bytesPerPixel)
|
||||
{
|
||||
_width = width;
|
||||
@ -40,13 +41,22 @@ namespace Ryujinx.Graphics.Texture
|
||||
_layoutConverter = new BlockLinearLayout(
|
||||
wAligned,
|
||||
height,
|
||||
1,
|
||||
gobBlocksInY,
|
||||
1,
|
||||
gobBlocksInZ,
|
||||
bytesPerPixel);
|
||||
}
|
||||
}
|
||||
|
||||
public OffsetCalculator(
|
||||
int width,
|
||||
int height,
|
||||
int stride,
|
||||
bool isLinear,
|
||||
int gobBlocksInY,
|
||||
int bytesPerPixel) : this(width, height, stride, isLinear, gobBlocksInY, 1, bytesPerPixel)
|
||||
{
|
||||
}
|
||||
|
||||
public void SetY(int y)
|
||||
{
|
||||
if (_isLinear)
|
||||
|
Reference in New Issue
Block a user