mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-07 16:33:05 +00:00
Pipeline
This commit is contained in:
parent
0c88c23b30
commit
15978d9c55
1 changed files with 18 additions and 18 deletions
|
@ -537,13 +537,13 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
{
|
{
|
||||||
if (firstInstance == 0 && firstVertex == 0 && instanceCount == 1)
|
if (firstInstance == 0 && firstVertex == 0 && instanceCount == 1)
|
||||||
{
|
{
|
||||||
_api.DrawElements(_primitiveType, indexCount, _elementsType, indexBaseOffset);
|
_api.DrawElements(_primitiveType, (uint)indexCount, _elementsType, indexBaseOffset);
|
||||||
}
|
}
|
||||||
else if (firstInstance == 0 && instanceCount == 1)
|
else if (firstInstance == 0 && instanceCount == 1)
|
||||||
{
|
{
|
||||||
_api.DrawElementsBaseVertex(
|
_api.DrawElementsBaseVertex(
|
||||||
_primitiveType,
|
_primitiveType,
|
||||||
indexCount,
|
(uint)indexCount,
|
||||||
_elementsType,
|
_elementsType,
|
||||||
indexBaseOffset,
|
indexBaseOffset,
|
||||||
firstVertex);
|
firstVertex);
|
||||||
|
@ -552,41 +552,41 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
{
|
{
|
||||||
_api.DrawElementsInstanced(
|
_api.DrawElementsInstanced(
|
||||||
_primitiveType,
|
_primitiveType,
|
||||||
indexCount,
|
(uint)indexCount,
|
||||||
_elementsType,
|
_elementsType,
|
||||||
indexBaseOffset,
|
indexBaseOffset,
|
||||||
instanceCount);
|
(uint)instanceCount);
|
||||||
}
|
}
|
||||||
else if (firstInstance == 0)
|
else if (firstInstance == 0)
|
||||||
{
|
{
|
||||||
_api.DrawElementsInstancedBaseVertex(
|
_api.DrawElementsInstancedBaseVertex(
|
||||||
_primitiveType,
|
_primitiveType,
|
||||||
indexCount,
|
(uint)indexCount,
|
||||||
_elementsType,
|
_elementsType,
|
||||||
indexBaseOffset,
|
indexBaseOffset,
|
||||||
instanceCount,
|
(uint)instanceCount,
|
||||||
firstVertex);
|
firstVertex);
|
||||||
}
|
}
|
||||||
else if (firstVertex == 0)
|
else if (firstVertex == 0)
|
||||||
{
|
{
|
||||||
_api.DrawElementsInstancedBaseInstance(
|
_api.DrawElementsInstancedBaseInstance(
|
||||||
_primitiveType,
|
_primitiveType,
|
||||||
indexCount,
|
(uint)indexCount,
|
||||||
_elementsType,
|
_elementsType,
|
||||||
indexBaseOffset,
|
indexBaseOffset,
|
||||||
instanceCount,
|
(uint)instanceCount,
|
||||||
firstInstance);
|
(uint)firstInstance);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_api.DrawElementsInstancedBaseVertexBaseInstance(
|
_api.DrawElementsInstancedBaseVertexBaseInstance(
|
||||||
_primitiveType,
|
_primitiveType,
|
||||||
indexCount,
|
(uint)indexCount,
|
||||||
_elementsType,
|
_elementsType,
|
||||||
indexBaseOffset,
|
indexBaseOffset,
|
||||||
instanceCount,
|
(uint)instanceCount,
|
||||||
firstVertex,
|
firstVertex,
|
||||||
firstInstance);
|
(uint)firstInstance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -630,9 +630,9 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
_primitiveType,
|
_primitiveType,
|
||||||
_elementsType,
|
_elementsType,
|
||||||
(IntPtr)indirectBuffer.Offset,
|
(IntPtr)indirectBuffer.Offset,
|
||||||
(IntPtr)parameterBuffer.Offset,
|
parameterBuffer.Offset,
|
||||||
maxDrawCount,
|
(uint)maxDrawCount,
|
||||||
stride);
|
(uint)stride);
|
||||||
|
|
||||||
_vertexArray.RestoreIndexBuffer();
|
_vertexArray.RestoreIndexBuffer();
|
||||||
|
|
||||||
|
@ -672,9 +672,9 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
_api.MultiDrawArraysIndirectCount(
|
_api.MultiDrawArraysIndirectCount(
|
||||||
_primitiveType,
|
_primitiveType,
|
||||||
(IntPtr)indirectBuffer.Offset,
|
(IntPtr)indirectBuffer.Offset,
|
||||||
(IntPtr)parameterBuffer.Offset,
|
parameterBuffer.Offset,
|
||||||
maxDrawCount,
|
(uint)maxDrawCount,
|
||||||
stride);
|
(uint)stride);
|
||||||
|
|
||||||
PostDraw();
|
PostDraw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue