render perf improvement: BufferSubData, and don't use the same buffer back-to-back

This commit is contained in:
Bob
2010-09-24 14:55:28 +12:00
parent c77c63a380
commit cdcfeb6276
7 changed files with 83 additions and 52 deletions

View File

@@ -52,13 +52,13 @@ namespace OpenRA.FileFormats.Graphics
public interface IVertexBuffer<T>
{
void Bind();
void SetData( T[] vertices );
void SetData( T[] vertices, int length );
}
public interface IIndexBuffer
{
void Bind();
void SetData( ushort[] indices );
void SetData( ushort[] indices, int length );
}
public interface IShader