diff options
Diffstat (limited to 'Tests/FindVulkan/Test/main-SPIRV-Tools.c')
-rw-r--r-- | Tests/FindVulkan/Test/main-SPIRV-Tools.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/FindVulkan/Test/main-SPIRV-Tools.c b/Tests/FindVulkan/Test/main-SPIRV-Tools.c new file mode 100644 index 0000000..097198d --- /dev/null +++ b/Tests/FindVulkan/Test/main-SPIRV-Tools.c @@ -0,0 +1,15 @@ +#include <assert.h> +#include <spirv-tools/libspirv.h> +#include <stdio.h> + +int main() +{ + const char* spv_version = spvSoftwareVersionString(); + const char* spv_details = spvSoftwareVersionDetailsString(); + assert(spv_version); + assert(spv_details); + + printf("SPIRV-Tools version: %s (details: %s)", spv_version, spv_details); + + return 0; +} |