summary refs log tree commit diff
path: root/src/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics')
-rw-r--r--src/graphics/render.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/graphics/render.rs b/src/graphics/render.rs
index 0b4a12a..7318574 100644
--- a/src/graphics/render.rs
+++ b/src/graphics/render.rs
@@ -1,5 +1,6 @@
 #![deny(unsafe_code)]
 use crate::error::*;
+use crate::assets::asset;
 use crate::graphics::{ Permanent, ForReinit, WindowDressing, Model, Texture };
 use crate::shader_data::{ Vertex, UniformBlock, VertexPushBlock };
 
@@ -260,10 +261,8 @@ fn init_pipeline(device: &Device,
                  render_pass: &vk::RenderPass)
     -> Result<(vk::PipelineLayout, vk::Pipeline)>
 {
-  let vertex_binary = include_bytes!(
-          concat!(env!("OUT_DIR"), "/shader.vert.spv"));
-  let fragment_binary = include_bytes!(
-          concat!(env!("OUT_DIR"), "/shader.frag.spv"));
+  let vertex_binary = asset("shaders/shader.vert.spv")?;
+  let fragment_binary = asset("shaders/shader.frag.spv")?;
 
   let vertex_module = Permanent::load_spirv_shader_module(
           device, vertex_binary)?;