@@ -453,7 +453,7 @@ std::string StructTypesToString(GenValidUsageXrInstanceInfo *instance_info, cons
453453// "VUID-xrEnumerateInstanceExtensionProperties-propertyCountOutput-parameter"
454454// "VUID-xrEnumerateInstanceExtensionProperties-properties-parameter"
455455
456- XrResult CoreValidationXrCreateInstance (const XrInstanceCreateInfo * /* info*/ , XrInstance * /* instance*/ ) {
456+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrCreateInstance (const XrInstanceCreateInfo * /* info*/ , XrInstance * /* instance*/ ) {
457457 // Shouldn't be called, coreValidationXrCreateApiLayerInstance should called instead
458458 return XR_SUCCESS;
459459}
@@ -470,8 +470,9 @@ GenValidUsageXrInstanceInfo::~GenValidUsageXrInstanceInfo() { delete dispatch_ta
470470
471471// See if there is a debug utils create structure in the "next" chain
472472
473- XrResult CoreValidationXrCreateApiLayerInstance (const XrInstanceCreateInfo *info, const struct XrApiLayerCreateInfo *apiLayerInfo,
474- XrInstance *instance) {
473+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrCreateApiLayerInstance (const XrInstanceCreateInfo *info,
474+ const struct XrApiLayerCreateInfo *apiLayerInfo,
475+ XrInstance *instance) {
475476 try {
476477 XrApiLayerCreateInfo new_api_layer_info = {};
477478 XrResult validation_result = XR_SUCCESS;
@@ -580,7 +581,7 @@ void EraseAllInstanceTableMapElements(GenValidUsageXrInstanceInfo *search_value)
580581 map_erase_if (map, [=](value_t const &data) { return data.second .get () == search_value; });
581582}
582583
583- XrResult CoreValidationXrDestroyInstance (XrInstance instance) {
584+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrDestroyInstance (XrInstance instance) {
584585 GenValidUsageInputsXrDestroyInstance (instance);
585586 if (XR_NULL_HANDLE != instance) {
586587 auto info_with_lock = g_instance_info.getWithLock (instance);
@@ -596,7 +597,8 @@ XrResult CoreValidationXrDestroyInstance(XrInstance instance) {
596597 return result;
597598}
598599
599- XrResult CoreValidationXrCreateSession (XrInstance instance, const XrSessionCreateInfo *createInfo, XrSession *session) {
600+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrCreateSession (XrInstance instance, const XrSessionCreateInfo *createInfo,
601+ XrSession *session) {
600602 try {
601603 XrResult test_result = GenValidUsageInputsXrCreateSession (instance, createInfo, session);
602604 if (XR_SUCCESS != test_result) {
@@ -697,7 +699,8 @@ void CoreValidationDeleteSessionLabels(XrSession session) {
697699}
698700
699701// ---- XR_EXT_debug_utils extension commands
700- XrResult CoreValidationXrSetDebugUtilsObjectNameEXT (XrInstance instance, const XrDebugUtilsObjectNameInfoEXT *nameInfo) {
702+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrSetDebugUtilsObjectNameEXT (XrInstance instance,
703+ const XrDebugUtilsObjectNameInfoEXT *nameInfo) {
701704 try {
702705 XrResult result = GenValidUsageInputsXrSetDebugUtilsObjectNameEXT (instance, nameInfo);
703706 if (!XR_UNQUALIFIED_SUCCESS (result)) {
@@ -718,8 +721,9 @@ XrResult CoreValidationXrSetDebugUtilsObjectNameEXT(XrInstance instance, const X
718721 }
719722}
720723
721- XrResult CoreValidationXrCreateDebugUtilsMessengerEXT (XrInstance instance, const XrDebugUtilsMessengerCreateInfoEXT *createInfo,
722- XrDebugUtilsMessengerEXT *messenger) {
724+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrCreateDebugUtilsMessengerEXT (XrInstance instance,
725+ const XrDebugUtilsMessengerCreateInfoEXT *createInfo,
726+ XrDebugUtilsMessengerEXT *messenger) {
723727 try {
724728 XrResult result = GenValidUsageInputsXrCreateDebugUtilsMessengerEXT (instance, createInfo, messenger);
725729 if (!XR_UNQUALIFIED_SUCCESS (result)) {
@@ -745,7 +749,7 @@ XrResult CoreValidationXrCreateDebugUtilsMessengerEXT(XrInstance instance, const
745749 }
746750}
747751
748- XrResult CoreValidationXrDestroyDebugUtilsMessengerEXT (XrDebugUtilsMessengerEXT messenger) {
752+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrDestroyDebugUtilsMessengerEXT (XrDebugUtilsMessengerEXT messenger) {
749753 try {
750754 XrResult result = GenValidUsageInputsXrDestroyDebugUtilsMessengerEXT (messenger);
751755 if (!XR_UNQUALIFIED_SUCCESS (result)) {
@@ -773,7 +777,8 @@ XrResult CoreValidationXrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT
773777 }
774778}
775779
776- XrResult CoreValidationXrSessionBeginDebugUtilsLabelRegionEXT (XrSession session, const XrDebugUtilsLabelEXT *labelInfo) {
780+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrSessionBeginDebugUtilsLabelRegionEXT (XrSession session,
781+ const XrDebugUtilsLabelEXT *labelInfo) {
777782 XrResult test_result = GenValidUsageInputsXrSessionBeginDebugUtilsLabelRegionEXT (session, labelInfo);
778783 if (XR_SUCCESS != test_result) {
779784 return test_result;
@@ -788,7 +793,7 @@ XrResult CoreValidationXrSessionBeginDebugUtilsLabelRegionEXT(XrSession session,
788793 return GenValidUsageNextXrSessionBeginDebugUtilsLabelRegionEXT (session, labelInfo);
789794}
790795
791- XrResult CoreValidationXrSessionEndDebugUtilsLabelRegionEXT (XrSession session) {
796+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrSessionEndDebugUtilsLabelRegionEXT (XrSession session) {
792797 XrResult test_result = GenValidUsageInputsXrSessionEndDebugUtilsLabelRegionEXT (session);
793798 if (XR_SUCCESS != test_result) {
794799 return test_result;
@@ -803,7 +808,8 @@ XrResult CoreValidationXrSessionEndDebugUtilsLabelRegionEXT(XrSession session) {
803808 return GenValidUsageNextXrSessionEndDebugUtilsLabelRegionEXT (session);
804809}
805810
806- XrResult CoreValidationXrSessionInsertDebugUtilsLabelEXT (XrSession session, const XrDebugUtilsLabelEXT *labelInfo) {
811+ XRAPI_ATTR XrResult XRAPI_CALL CoreValidationXrSessionInsertDebugUtilsLabelEXT (XrSession session,
812+ const XrDebugUtilsLabelEXT *labelInfo) {
807813 XrResult test_result = GenValidUsageInputsXrSessionInsertDebugUtilsLabelEXT (session, labelInfo);
808814 if (XR_SUCCESS != test_result) {
809815 return test_result;
0 commit comments