diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-05-17 07:58:01 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-05-19 06:49:21 -0600 |
| commit | 8a3b5f27ba6bf642a010d269a8d5b19bad3d7b23 (patch) | |
| tree | 1ff1921731567f794464f5763b7162eb2f31a1ae /layers | |
| parent | 948313be7ed40d9c4953a2613e3cbf25357b0a21 (diff) | |
| download | usermoji-8a3b5f27ba6bf642a010d269a8d5b19bad3d7b23.tar.xz | |
layers: Const correctness for debug_report_data param
debug_report_data pointer passed to various log functions can be const.
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/vk_layer_logging.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/vk_layer_logging.h b/layers/vk_layer_logging.h index dd80dfe3..49470b18 100644 --- a/layers/vk_layer_logging.h +++ b/layers/vk_layer_logging.h @@ -43,7 +43,7 @@ template debug_report_data *get_my_data_ptr<debug_report_data>(void *data_key, std::unordered_map<void *, debug_report_data *> &data_map); // Utility function to handle reporting -static inline bool debug_report_log_msg(debug_report_data *debug_data, VkFlags msgFlags, VkDebugReportObjectTypeEXT objectType, +static inline bool debug_report_log_msg(const debug_report_data *debug_data, VkFlags msgFlags, VkDebugReportObjectTypeEXT objectType, uint64_t srcObject, size_t location, int32_t msgCode, const char *pLayerPrefix, const char *pMsg) { bool bail = false; @@ -308,11 +308,11 @@ static inline int vasprintf(char **strp, char const *fmt, va_list ap) { * is only computed if a message needs to be logged */ #ifndef WIN32 -static inline bool log_msg(debug_report_data *debug_data, VkFlags msgFlags, VkDebugReportObjectTypeEXT objectType, +static inline bool log_msg(const debug_report_data *debug_data, VkFlags msgFlags, VkDebugReportObjectTypeEXT objectType, uint64_t srcObject, size_t location, int32_t msgCode, const char *pLayerPrefix, const char *format, ...) __attribute__((format(printf, 8, 9))); #endif -static inline bool log_msg(debug_report_data *debug_data, VkFlags msgFlags, VkDebugReportObjectTypeEXT objectType, +static inline bool log_msg(const debug_report_data *debug_data, VkFlags msgFlags, VkDebugReportObjectTypeEXT objectType, uint64_t srcObject, size_t location, int32_t msgCode, const char *pLayerPrefix, const char *format, ...) { if (!debug_data || !(debug_data->active_flags & msgFlags)) { |
