mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-10 17:14:25 +00:00
misc: chore: Fix object creation in GAL
This commit is contained in:
parent
15d1528774
commit
4e47c86f90
@ -2,7 +2,7 @@ namespace Ryujinx.Graphics.GAL
|
|||||||
{
|
{
|
||||||
public readonly struct ComputeSize
|
public readonly struct ComputeSize
|
||||||
{
|
{
|
||||||
public readonly static ComputeSize VtgAsCompute = new ComputeSize(32, 32, 1);
|
public readonly static ComputeSize VtgAsCompute = new(32, 32, 1);
|
||||||
|
|
||||||
public readonly int X;
|
public readonly int X;
|
||||||
public readonly int Y;
|
public readonly int Y;
|
||||||
|
@ -337,7 +337,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||||||
{
|
{
|
||||||
if (IsGpuThread())
|
if (IsGpuThread())
|
||||||
{
|
{
|
||||||
ThreadedTexture texture = new ThreadedTexture(this, info);
|
ThreadedTexture texture = new(this, info);
|
||||||
New<CreateTextureCommand>().Set(Ref(texture), info);
|
New<CreateTextureCommand>().Set(Ref(texture), info);
|
||||||
QueueCommand();
|
QueueCommand();
|
||||||
|
|
||||||
@ -345,7 +345,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ThreadedTexture texture = new ThreadedTexture(this, info)
|
ThreadedTexture texture = new(this, info)
|
||||||
{
|
{
|
||||||
Base = _baseRenderer.CreateTexture(info),
|
Base = _baseRenderer.CreateTexture(info),
|
||||||
};
|
};
|
||||||
@ -355,7 +355,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||||||
}
|
}
|
||||||
public ITextureArray CreateTextureArray(int size, bool isBuffer)
|
public ITextureArray CreateTextureArray(int size, bool isBuffer)
|
||||||
{
|
{
|
||||||
ThreadedTextureArray textureArray = new ThreadedTextureArray(this);
|
ThreadedTextureArray textureArray = new(this);
|
||||||
New<CreateTextureArrayCommand>().Set(Ref(textureArray), size, isBuffer);
|
New<CreateTextureArrayCommand>().Set(Ref(textureArray), size, isBuffer);
|
||||||
QueueCommand();
|
QueueCommand();
|
||||||
|
|
||||||
@ -414,7 +414,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||||||
|
|
||||||
public IProgram LoadProgramBinary(byte[] programBinary, bool hasFragmentShader, ShaderInfo info)
|
public IProgram LoadProgramBinary(byte[] programBinary, bool hasFragmentShader, ShaderInfo info)
|
||||||
{
|
{
|
||||||
ThreadedProgram program = new ThreadedProgram(this);
|
ThreadedProgram program = new(this);
|
||||||
|
|
||||||
BinaryProgramRequest request = new(program, programBinary, hasFragmentShader, info);
|
BinaryProgramRequest request = new(program, programBinary, hasFragmentShader, info);
|
||||||
Programs.Add(request);
|
Programs.Add(request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user