[d3d11] Add some documentation to d3d11_cmd.h

This commit is contained in:
Philip Rebohle 2019-01-11 12:05:25 +01:00
parent e665d896e3
commit 4f0da40afa
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 21 additions and 0 deletions

View File

@ -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;