vkQuake2 doxygen  1.0 dev
vk_shaders.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2018-2019 Krzysztof Kondrak
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 
13 See the GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 
19 */
20 
21 //
22 // game shaders, compiled offline
23 //
24 
25 #ifndef __VK_SHADERS_H__
26 #define __VK_SHADERS_H__
27 #include <stdint.h>
28 #include <stddef.h>
29 
30 // textured quad (alpha)
31 extern const uint32_t basic_vert_spv[];
32 extern const size_t basic_vert_size;
33 
34 extern const uint32_t basic_frag_spv[];
35 extern const size_t basic_frag_size;
36 
37 // colored quad (alpha)
38 extern const uint32_t basic_color_quad_vert_spv[];
39 extern const size_t basic_color_quad_vert_size;
40 
41 extern const uint32_t basic_color_quad_frag_spv[];
42 extern const size_t basic_color_quad_frag_size;
43 
44 // textured model
45 extern const uint32_t model_vert_spv[];
46 extern const size_t model_vert_size;
47 
48 extern const uint32_t model_frag_spv[];
49 extern const size_t model_frag_size;
50 
51 // null model
52 extern const uint32_t nullmodel_vert_spv[];
53 extern const size_t nullmodel_vert_size;
54 
55 // particle (texture)
56 extern const uint32_t particle_vert_spv[];
57 extern const size_t particle_vert_size;
58 
59 // particle (point)
60 extern const uint32_t point_particle_vert_spv[];
61 extern const size_t point_particle_vert_size;
62 
63 extern const uint32_t point_particle_frag_spv[];
64 extern const size_t point_particle_frag_size;
65 
66 // sprite model
67 extern const uint32_t sprite_vert_spv[];
68 extern const size_t sprite_vert_size;
69 
70 // beam
71 extern const uint32_t beam_vert_spv[];
72 extern const size_t beam_vert_size;
73 
74 // skybox
75 extern const uint32_t skybox_vert_spv[];
76 extern const size_t skybox_vert_size;
77 
78 // dynamic lights
79 extern const uint32_t d_light_vert_spv[];
80 extern const size_t d_light_vert_size;
81 
82 // textured, alpha blended polygon
83 extern const uint32_t polygon_vert_spv[];
84 extern const size_t polygon_vert_size;
85 
86 // textured, lightmapped polygon
87 extern const uint32_t polygon_lmap_vert_spv[];
88 extern const size_t polygon_lmap_vert_size;
89 
90 extern const uint32_t polygon_lmap_frag_spv[];
91 extern const size_t polygon_lmap_frag_size;
92 
93 // warped polygon (liquids)
94 extern const uint32_t polygon_warp_vert_spv[];
95 extern const size_t polygon_warp_vert_size;
96 
97 // entity shadows
98 extern const uint32_t shadows_vert_spv[];
99 extern const size_t shadows_vert_size;
100 
101 // postprocess
102 extern const uint32_t postprocess_vert_spv[];
103 extern const size_t postprocess_vert_size;
104 
105 extern const uint32_t postprocess_frag_spv[];
106 extern const size_t postprocess_frag_size;
107 
108 // underwater vision warp
109 extern const uint32_t world_warp_vert_spv[];
110 extern const size_t world_warp_vert_size;
111 
112 extern const uint32_t world_warp_frag_spv[];
113 extern const size_t world_warp_frag_size;
114 
115 #endif
basic_color_quad_frag_size
const size_t basic_color_quad_frag_size
Definition: vk_shaders.c:52
world_warp_frag_spv
const uint32_t world_warp_frag_spv[]
Definition: world_warp_frag.c:3
shadows_vert_size
const size_t shadows_vert_size
Definition: vk_shaders.c:79
point_particle_vert_size
const size_t point_particle_vert_size
Definition: vk_shaders.c:61
nullmodel_vert_size
const size_t nullmodel_vert_size
Definition: vk_shaders.c:57
beam_vert_spv
const uint32_t beam_vert_spv[]
Definition: beam_vert.c:3
d_light_vert_spv
const uint32_t d_light_vert_spv[]
Definition: d_light_vert.c:3
basic_color_quad_frag_spv
const uint32_t basic_color_quad_frag_spv[]
Definition: basic_color_quad_frag.c:3
beam_vert_size
const size_t beam_vert_size
Definition: vk_shaders.c:66
particle_vert_spv
const uint32_t particle_vert_spv[]
Definition: particle_vert.c:3
basic_color_quad_vert_size
const size_t basic_color_quad_vert_size
Definition: vk_shaders.c:51
polygon_vert_spv
const uint32_t polygon_vert_spv[]
Definition: polygon_vert.c:3
basic_vert_size
const size_t basic_vert_size
Definition: vk_shaders.c:48
model_frag_size
const size_t model_frag_size
Definition: vk_shaders.c:55
polygon_lmap_frag_spv
const uint32_t polygon_lmap_frag_spv[]
Definition: polygon_lmap_frag.c:3
model_vert_spv
const uint32_t model_vert_spv[]
Definition: model_vert.c:3
shadows_vert_spv
const uint32_t shadows_vert_spv[]
Definition: shadows_vert.c:3
polygon_warp_vert_size
const size_t polygon_warp_vert_size
Definition: vk_shaders.c:77
model_frag_spv
const uint32_t model_frag_spv[]
Definition: model_frag.c:3
world_warp_frag_size
const size_t world_warp_frag_size
Definition: vk_shaders.c:85
postprocess_frag_size
const size_t postprocess_frag_size
Definition: vk_shaders.c:82
polygon_vert_size
const size_t polygon_vert_size
Definition: vk_shaders.c:72
postprocess_vert_size
const size_t postprocess_vert_size
Definition: vk_shaders.c:81
point_particle_vert_spv
const uint32_t point_particle_vert_spv[]
Definition: point_particle_vert.c:3
postprocess_vert_spv
const uint32_t postprocess_vert_spv[]
Definition: postprocess_vert.c:3
point_particle_frag_size
const size_t point_particle_frag_size
Definition: vk_shaders.c:62
polygon_lmap_vert_spv
const uint32_t polygon_lmap_vert_spv[]
Definition: polygon_lmap_vert.c:3
basic_vert_spv
const uint32_t basic_vert_spv[]
Definition: basic_vert.c:3
point_particle_frag_spv
const uint32_t point_particle_frag_spv[]
Definition: point_particle_frag.c:3
polygon_lmap_vert_size
const size_t polygon_lmap_vert_size
Definition: vk_shaders.c:74
basic_frag_size
const size_t basic_frag_size
Definition: vk_shaders.c:49
polygon_warp_vert_spv
const uint32_t polygon_warp_vert_spv[]
Definition: polygon_warp_vert.c:3
model_vert_size
const size_t model_vert_size
Definition: vk_shaders.c:54
d_light_vert_size
const size_t d_light_vert_size
Definition: vk_shaders.c:70
sprite_vert_size
const size_t sprite_vert_size
Definition: vk_shaders.c:64
nullmodel_vert_spv
const uint32_t nullmodel_vert_spv[]
Definition: nullmodel_vert.c:3
postprocess_frag_spv
const uint32_t postprocess_frag_spv[]
Definition: postprocess_frag.c:3
basic_frag_spv
const uint32_t basic_frag_spv[]
Definition: basic_frag.c:3
skybox_vert_spv
const uint32_t skybox_vert_spv[]
Definition: skybox_vert.c:3
world_warp_vert_spv
const uint32_t world_warp_vert_spv[]
Definition: world_warp_vert.c:3
skybox_vert_size
const size_t skybox_vert_size
Definition: vk_shaders.c:68
polygon_lmap_frag_size
const size_t polygon_lmap_frag_size
Definition: vk_shaders.c:75
basic_color_quad_vert_spv
const uint32_t basic_color_quad_vert_spv[]
Definition: basic_color_quad_vert.c:3
sprite_vert_spv
const uint32_t sprite_vert_spv[]
Definition: sprite_vert.c:3
particle_vert_size
const size_t particle_vert_size
Definition: vk_shaders.c:59
world_warp_vert_size
const size_t world_warp_vert_size
Definition: vk_shaders.c:84