[rs] Switch msaa example samples to 4

This commit is contained in:
Dzmitry Malyshau 2019-07-29 19:59:39 -04:00
parent 3a8b78ae43
commit ff3ae67f3d
2 changed files with 5 additions and 1 deletions

View File

@ -34,3 +34,7 @@ env_logger = "0.6"
glsl-to-spirv = "0.1"
log = "0.4"
png = "0.15"
[patch.crates-io]
#gfx-hal = { path = "../gfx/src/hal" }
#gfx-backend-dx12 = { path = "../gfx/src/backend/dx12" }

View File

@ -101,7 +101,7 @@ impl Example {
impl framework::Example for Example {
fn init(sc_desc: &wgpu::SwapChainDescriptor, device: &mut wgpu::Device) -> Self {
println!("Press left/right arrow keys to change sample_count.");
let sample_count = 2;
let sample_count = 4;
let vs_bytes = framework::load_glsl(include_str!("shader.vert"), framework::ShaderStage::Vertex);
let fs_bytes = framework::load_glsl(include_str!("shader.frag"), framework::ShaderStage::Fragment);