From d00bb2d334a8c3f8e36d829a81b978894de21d46 Mon Sep 17 00:00:00 2001 From: assiduous Date: Wed, 18 Dec 2019 19:51:05 -0800 Subject: Added all draw command tests --- Graphics/GraphicsEngine/interface/DeviceContext.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Graphics') diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index eff88201..715b101d 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -224,13 +224,13 @@ struct DrawIndexedAttribs /// instanced draw call will be performed. Uint32 NumInstances = 1; - /// A constant which is added to each index before accessing the vertex buffer. - Uint32 BaseVertex = 0; - /// LOCATION (NOT the byte offset) of the first index in /// the index buffer to start reading indices from. Uint32 FirstIndexLocation = 0; + /// A constant which is added to each index before accessing the vertex buffer. + Uint32 BaseVertex = 0; + /// LOCATION (or INDEX, but NOT the byte offset) in the vertex /// buffer to start reading instance data from. Uint32 FirstInstanceLocation = 0; @@ -245,8 +245,8 @@ struct DrawIndexedAttribs /// IndexType | VT_UNDEFINED /// Flags | DRAW_FLAG_NONE /// NumInstances | 1 - /// BaseVertex | 0 /// FirstIndexLocation | 0 + /// BaseVertex | 0 /// FirstInstanceLocation | 0 DrawIndexedAttribs()noexcept{} @@ -255,15 +255,15 @@ struct DrawIndexedAttribs VALUE_TYPE _IndexType, DRAW_FLAGS _Flags, Uint32 _NumInstances = 1, - Uint32 _BaseVertex = 0, Uint32 _FirstIndexLocation = 0, + Uint32 _BaseVertex = 0, Uint32 _FirstInstanceLocation = 0)noexcept : NumIndices {_NumIndices }, IndexType {_IndexType }, Flags {_Flags }, NumInstances {_NumInstances }, - BaseVertex {_BaseVertex }, FirstIndexLocation {_FirstIndexLocation }, + BaseVertex {_BaseVertex }, FirstInstanceLocation{_FirstInstanceLocation} {} }; -- cgit v1.2.3