move shaders to subfolder

This commit is contained in:
Piotrek committed 2021-04-13 09:31:15 +02:00
1 parent c2953a1443
commit 9aafeb80c2
6 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -60,12 +60,12 @@ impl App {
push_constant_ranges: &[],
});
let vert_state = wgpu::VertexState { //vert
module: &device.create_shader_module(&wgpu::include_spirv!(".bin\\shader.vert.spv")),
module: &device.create_shader_module(&wgpu::include_spirv!("shaders\\bin\\shader.vert.spv")),
entry_point: "main",
buffers: &[Vertex::desc()],
};
let frag_state = wgpu::FragmentState { // frag
module: &device.create_shader_module(&wgpu::include_spirv!(".bin\\shader.frag.spv")),
module: &device.create_shader_module(&wgpu::include_spirv!("shaders\\bin\\shader.frag.spv")),
entry_point: "main",
targets: &[wgpu::ColorTargetState {
format: swapchain_desc.format,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.