Support inline index buffer data (#1351)
* Support inline index buffer data * Sort usings
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user