From 3594268cf657f25ba28251fb38d1254d53b65955 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 12 Oct 2023 18:54:04 -0700 Subject: [PATCH] the macroer (we were so close to greatness) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2d39d3e..1f12b91 100644 --- a/src/main.rs +++ b/src/main.rs @@ -556,7 +556,7 @@ impl framework::Example for GlobalState { // Create the render pipeline let shader = device.create_shader_module(wgpu::ShaderModuleDescriptor { label: None, - source: wgpu::ShaderSource::Wgsl(Cow::Borrowed(include_str!("shader.wgsl"))), + source: wgpu::ShaderSource::SpirV(Cow::Borrowed(include_wgsl_to_spv!("shader.wgsl"))), }); //load textures