remove geom shader macro

This commit is contained in:
griffi-gh 2023-05-21 12:29:01 +02:00
parent 1987354b83
commit 356455a15e

View file

@ -1,18 +1,4 @@
macro_rules! include_shader_prefab { macro_rules! include_shader_prefab {
($name: literal, $vert: literal, $frag: literal, $geom: literal, $facade: expr) => {
{
use ::glium::Program;
log::info!("compiling shader {}", $name);
Program::from_source(
&*$facade,
include_str!($vert),
include_str!($frag),
Some(include_str!($geom)),
).expect("Failed to compile gpu program")
}
};
($name: literal, $vert: literal, $frag: literal, $facade: expr) => { ($name: literal, $vert: literal, $frag: literal, $facade: expr) => {
{ {
use ::glium::Program; use ::glium::Program;