summaryrefslogtreecommitdiffstats
path: root/src/libs/dxvk-native-1.9.2a/src/d3d11/d3d11_cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/src/d3d11/d3d11_cmd.h')
-rw-r--r--src/libs/dxvk-native-1.9.2a/src/d3d11/d3d11_cmd.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/src/d3d11/d3d11_cmd.h b/src/libs/dxvk-native-1.9.2a/src/d3d11/d3d11_cmd.h
new file mode 100644
index 00000000..52f2f4db
--- /dev/null
+++ b/src/libs/dxvk-native-1.9.2a/src/d3d11/d3d11_cmd.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include "d3d11_include.h"
+
+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;
+ uint32_t stride;
+ };
+
+} \ No newline at end of file