545: Remove bake.frag from shadow example r=kvark a=yutannihilation

Now that `fragment_stage` is a `Option`, I guess this is the case when we don't need fragment shader.

Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com>
This commit is contained in:
bors[bot]andHiroaki Yutani authored and GitHub committed 2020-08-31 16:05:56 +00:00
commit 6069a3f055
3 files changed
+1 -9

No files matched your search

-4
View File
@@ -1,4 +0,0 @@
#version 450
void main() {
}
Binary file not shown.
+1 -5
View File
@@ -471,7 +471,6 @@ impl framework::Example for Example {
// Create the render pipeline
let vs_module = device.create_shader_module(wgpu::include_spirv!("bake.vert.spv"));
let fs_module = device.create_shader_module(wgpu::include_spirv!("bake.frag.spv"));
let pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
label: Some("shadow"),
@@ -480,10 +479,7 @@ impl framework::Example for Example {
module: &vs_module,
entry_point: "main",
},
fragment_stage: Some(wgpu::ProgrammableStageDescriptor {
module: &fs_module,
entry_point: "main",
}),
fragment_stage: None,
rasterization_state: Some(wgpu::RasterizationStateDescriptor {
front_face: wgpu::FrontFace::Ccw,
cull_mode: wgpu::CullMode::Back,