Renderer: Implement firstIndex on DrawIndexed command for OpenGL
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Nz
|
||||
inline void CopyBuffer(const UploadPool::Allocation& allocation, GLuint target, UInt64 size, UInt64 sourceOffset = 0, UInt64 targetOffset = 0);
|
||||
|
||||
inline void Draw(UInt32 vertexCount, UInt32 instanceCount = 1, UInt32 firstVertex = 0, UInt32 firstInstance = 0);
|
||||
inline void DrawIndexed(UInt32 indexCount, UInt32 instanceCount = 1, UInt32 firstVertex = 0, UInt32 firstInstance = 0);
|
||||
inline void DrawIndexed(UInt32 indexCount, UInt32 instanceCount = 1, UInt32 firstIndex = 0, UInt32 firstInstance = 0);
|
||||
|
||||
inline void EndDebugRegion();
|
||||
|
||||
@@ -122,8 +122,8 @@ namespace Nz
|
||||
struct DrawIndexedData
|
||||
{
|
||||
DrawStates states;
|
||||
UInt32 firstIndex;
|
||||
UInt32 firstInstance;
|
||||
UInt32 firstVertex;
|
||||
UInt32 indexCount;
|
||||
UInt32 instanceCount;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user