summaryrefslogtreecommitdiffstats
path: root/Tests/FindVulkan/Test/main-SPIRV-Tools.c
blob: 097198dba737ea004985cf02d1fea4d860dc69eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}