Support inline index buffer data (#1351)
* Support inline index buffer data * Sort usings
This commit is contained in:
parent
b0d9ec8a82
commit
dbeb50684d
5 changed files with 146 additions and 5 deletions
|
@ -103,6 +103,18 @@ namespace Ryujinx.Graphics.Gpu.Memory
|
|||
_indexBufferDirty = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets a new index buffer that overrides the one set on the call to <see cref="CommitGraphicsBindings"/>.
|
||||
/// </summary>
|
||||
/// <param name="buffer">Buffer to be used as index buffer</param>
|
||||
/// <param name="type">Type of each index buffer element</param>
|
||||
public void SetIndexBuffer(BufferRange buffer, IndexType type)
|
||||
{
|
||||
_context.Renderer.Pipeline.SetIndexBuffer(buffer, type);
|
||||
|
||||
_indexBufferDirty = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the memory range with vertex buffer data, to be used for subsequent draw calls.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue