Vulkan:Integrate SecondaryCommandBuffers
Integrate the custom SecondaryCommandBuffer type into the CommandGraph
nodes by adding new ANGLE_USE_CUSTOM_VULKAN_CMD_BUFFERS define that can
be set in the BUILD gn args with angle_enable_custom_vulkan_cmd_buffers
set to "true."
Initially the custom cmd buffers are disabled by default.
This adds some support functions to SecondaryCommandBuffer to make the
integration easier by matching the wrapped cmd buffer interface:
initialize(), end(), valid().
Bug: angleproject:3136
Change-Id: Ib910554583192550757bb8ce89914e3ea8737988
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1526556
Commit-Queue: Tobin Ehlis <tobine@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
diff --git a/src/common/angleutils.h b/src/common/angleutils.h
index 7e7460a..09adb58 100644
--- a/src/common/angleutils.h
+++ b/src/common/angleutils.h
@@ -324,4 +324,10 @@
# define ANGLE_NO_DISCARD
#endif // __has_cpp_attribute(nodiscard)
+#if __has_cpp_attribute(maybe_unused)
+# define ANGLE_MAYBE_UNUSED [[maybe_unused]]
+#else
+# define ANGLE_MAYBE_UNUSED
+#endif // __has_cpp_attribute(maybe_unused)
+
#endif // COMMON_ANGLEUTILS_H_