summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-19 03:51:05 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-19 03:51:05 +0000
commitd00bb2d334a8c3f8e36d829a81b978894de21d46 (patch)
tree0eab108daa491ea944ca84a1ccf7da02e1a20715 /Graphics/GraphicsEngine
parentUpdated draw command test reference image to work for instancing tests (diff)
downloadDiligentCore-d00bb2d334a8c3f8e36d829a81b978894de21d46.tar.gz
DiligentCore-d00bb2d334a8c3f8e36d829a81b978894de21d46.zip
Added all draw command tests
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/DeviceContext.h12
1 files changed, 6 insertions, 6 deletions
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}
{}
};