Send data to OpenGL host without client-side copies (#285)
* Directly send host address to buffer data * Cleanup OGLShader * Directly copy vertex and index data too * Revert shader bind "cache" * Address feedback
This commit is contained in:
parent
45bb24dbae
commit
5fe0bc584b
8 changed files with 55 additions and 110 deletions
|
@ -1,3 +1,5 @@
|
|||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.Gal
|
||||
{
|
||||
public interface IGalRasterizer
|
||||
|
@ -45,9 +47,9 @@ namespace Ryujinx.Graphics.Gal
|
|||
|
||||
void SetPrimitiveRestartIndex(uint Index);
|
||||
|
||||
void CreateVbo(long Key, byte[] Buffer);
|
||||
void CreateVbo(long Key, int DataSize, IntPtr HostAddress);
|
||||
|
||||
void CreateIbo(long Key, byte[] Buffer);
|
||||
void CreateIbo(long Key, int DataSize, IntPtr HostAddress);
|
||||
|
||||
void SetVertexArray(int Stride, long VboKey, GalVertexAttrib[] Attribs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue