Skip to content
Snippets Groups Projects
Commit 3fd0d3b7 authored by Allan MacKinnon's avatar Allan MacKinnon Committed by CQ bot account: commit-bot@chromium.org
Browse files

[graphics][compute] Properly export C functions for use in C++ (HotSort)

Tracked by SPN-19.

Testability: HotSort library and test compile and run.
Change-Id: I6a80c97057493c3f967cc4eef30691e82d18ad16
parent 2e8e8f5a
No related branches found
No related tags found
No related merge requests found
......@@ -138,10 +138,26 @@ hsg_target_header_and_module(struct hsg_config const * const config)
"// \n"
"// \n"
" \n"
"#ifdef __cplusplus \n"
"extern \"C\" { \n"
"#endif \n"
" \n"
"// \n"
"// \n"
"// \n"
" \n"
"extern struct hotsort_vk_target const HS_TARGET_NAME; \n"
" \n"
"// \n"
"// \n"
"// \n"
" \n"
"#ifdef __cplusplus \n"
"} \n"
"#endif \n"
" \n"
"// \n"
"// \n"
"// \n",
config->define.lower);
......
......@@ -22,6 +22,14 @@
//
//
#ifdef __cplusplus
extern "C" {
#endif
//
//
//
#include "hotsort_vk_target.h"
//
......@@ -151,3 +159,11 @@ hotsort_vk_sort(VkCommandBuffer cb,
//
//
//
#ifdef __cplusplus
}
#endif
//
//
//
......@@ -10,6 +10,14 @@
#include <stdint.h>
//
//
//
#ifdef __cplusplus
extern "C" {
#endif
//
// This structure packages target-specific HotSort parameters and
// SPIR-V modules.
......@@ -65,3 +73,11 @@ struct hotsort_vk_target
//
//
//
#ifdef __cplusplus
}
#endif
//
//
//
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment