summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/render-vk.cpp
blob: 83b9e979b4e65859055b23fcd6ebf1a8e23a81a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// render-vk.cpp
#include "render-vk.h"
#include "core/slang-blob.h"
#include "vk-util.h"

// Vulkan has a different coordinate system to ogl
// http://anki3d.org/vulkan-coordinate-system/
#ifndef ENABLE_VALIDATION_LAYER
#    if _DEBUG
#        define ENABLE_VALIDATION_LAYER 1
#    else
#        define ENABLE_VALIDATION_LAYER 0
#    endif
#endif

#ifdef _MSC_VER
#    include <stddef.h>
#    pragma warning(disable : 4996)
#    if (_MSC_VER < 1900)
#        define snprintf sprintf_s
#    endif
#endif

#if SLANG_WINDOWS_FAMILY
#    include <dxgi1_2.h>
#endif

namespace gfx
{
using namespace Slang;

namespace vk
{
namespace
{

} // namespace















































} // namespace vk



} // namespace gfx