• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  *
7  */
8 
9 #pragma once
10 
11 //
12 //
13 //
14 
15 #include <vulkan/vulkan.h>
16 #include <stdbool.h>
17 
18 //
19 //
20 //
21 
22 char const *
23 vk_get_result_string(VkResult const result);
24 
25 VkResult
26 assert_vk(VkResult     const result,
27           char const * const file,
28           int          const line,
29           bool         const abort);
30 
31 //
32 //
33 //
34 
35 #define vk(...)    assert_vk((vk##__VA_ARGS__), __FILE__, __LINE__, true);
36 #define vk_ok(err) assert_vk(err,               __FILE__, __LINE__, true);
37 
38 //
39 //
40 //
41