From 4f0da40afaf9b5c320c1aeed40d316ada11056f2 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 11 Jan 2019 12:05:25 +0100 Subject: [PATCH] [d3d11] Add some documentation to d3d11_cmd.h --- src/d3d11/d3d11_cmd.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/d3d11/d3d11_cmd.h b/src/d3d11/d3d11_cmd.h index 48dd25873..8a7a4f9bb 100644 --- a/src/d3d11/d3d11_cmd.h +++ b/src/d3d11/d3d11_cmd.h @@ -4,15 +4,36 @@ namespace dxvk { + /** + * \brief D3D11 command type + * + * Used to identify the type of command + * data most recently added to a CS chunk. + */ enum class D3D11CmdType { DrawIndirect, DrawIndirectIndexed, }; + + /** + * \brief Command data header + * + * Stores the command type. All command + * data structs must inherit this struct. + */ struct D3D11CmdData { D3D11CmdType type; }; + + /** + * \brief Indirect draw command data + * + * Stores the offset into the draw buffer for + * the first draw, as well as the number of + * draws to execute. + */ struct D3D11CmdDrawIndirectData : public D3D11CmdData { uint32_t offset; uint32_t count;