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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
mod base_3d;
mod debug_lines;
mod flat;
mod flat2d;
mod pbr;
mod shaded;
mod skybox;
pub use self::{base_3d::*, debug_lines::*, flat::*, flat2d::*, pbr::*, shaded::*, skybox::*};
use rendy::{hal::pso::ShaderStageFlags, shader::SpirvShader};
lazy_static::lazy_static! {
static ref POS_TEX_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/pos_tex.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref POS_TEX_SKIN_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/pos_tex_skin.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref POS_NORM_TEX_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/pos_norm_tex.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref POS_NORM_TEX_SKIN_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/pos_norm_tex_skin.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref POS_NORM_TANG_TEX_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/pos_norm_tang_tex.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref POS_NORM_TANG_TEX_SKIN_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/pos_norm_tang_tex_skin.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref FLAT_FRAGMENT: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/fragment/flat.frag.spv").to_vec(),
ShaderStageFlags::FRAGMENT,
"main",
);
static ref SHADED_FRAGMENT: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/fragment/shaded.frag.spv").to_vec(),
ShaderStageFlags::FRAGMENT,
"main",
);
static ref PBR_FRAGMENT: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/fragment/pbr.frag.spv").to_vec(),
ShaderStageFlags::FRAGMENT,
"main",
);
static ref SPRITE_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/sprite.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref SPRITE_FRAGMENT: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/fragment/sprite.frag.spv").to_vec(),
ShaderStageFlags::FRAGMENT,
"main",
);
static ref SKYBOX_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/skybox.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref SKYBOX_FRAGMENT: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/fragment/skybox.frag.spv").to_vec(),
ShaderStageFlags::FRAGMENT,
"main",
);
static ref DEBUG_LINES_VERTEX: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/vertex/debug_lines.vert.spv").to_vec(),
ShaderStageFlags::VERTEX,
"main",
);
static ref DEBUG_LINES_FRAGMENT: SpirvShader = SpirvShader::new(
include_bytes!("../../compiled/fragment/debug_lines.frag.spv").to_vec(),
ShaderStageFlags::FRAGMENT,
"main",
);
}