(
&mut self,
device: &wgpu::Device,
encoder: &mut wgpu::CommandEncoder,
output_view: &wgpu::TextureView,
viewport: [u32; 2],
)
| 434 | format: wgpu::VertexFormat::Float32x4, |
| 435 | offset: 0, |
| 436 | shader_location: 0, |
| 437 | }, |
| 438 | wgpu::VertexAttribute { |
| 439 | format: wgpu::VertexFormat::Float32x2, |
| 440 | offset: 16, |
| 441 | shader_location: 1, |
| 442 | }, |
| 443 | wgpu::VertexAttribute { |
| 444 | format: wgpu::VertexFormat::Float32x2, |
| 445 | offset: 24, |
| 446 | shader_location: 2, |
| 447 | }, |
| 448 | wgpu::VertexAttribute { |
| 449 | format: wgpu::VertexFormat::Unorm8x4, |
| 450 | offset: 32, |
| 451 | shader_location: 3, |
| 452 | }, |
| 453 | wgpu::VertexAttribute { |
| 454 | format: wgpu::VertexFormat::Float32, |
| 455 | offset: 36, |
| 456 | shader_location: 4, |
| 457 | }, |
| 458 | ], |
| 459 | })], |
| 460 | compilation_options: wgpu::PipelineCompilationOptions::default(), |
| 461 | }, |
| 462 | fragment: Some(wgpu::FragmentState { |
| 463 | module: &shader, |
| 464 | entry_point: Some("fs_main_linear_framebuffer"), |
| 465 | targets: &[Some(wgpu::ColorTargetState { |
| 466 | format: supersample_format, |
| 467 | blend: Some(wgpu::BlendState { |
| 468 | color: wgpu::BlendComponent { |
| 469 | src_factor: wgpu::BlendFactor::One, |
| 470 | dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha, |
| 471 | operation: wgpu::BlendOperation::Add, |
| 472 | }, |
| 473 | alpha: wgpu::BlendComponent { |
| 474 | src_factor: wgpu::BlendFactor::One, |
| 475 | dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha, |
| 476 | operation: wgpu::BlendOperation::Add, |
| 477 | }, |
| 478 | }), |
| 479 | write_mask: wgpu::ColorWrites::ALL, |
| 480 | })], |
| 481 | compilation_options: wgpu::PipelineCompilationOptions::default(), |
| 482 | }), |
| 483 | primitive: wgpu::PrimitiveState { |
| 484 | topology: wgpu::PrimitiveTopology::TriangleList, |
| 485 | cull_mode: None, |
| 486 | ..Default::default() |
| 487 | }, |
| 488 | depth_stencil: None, |
| 489 | multisample: wgpu::MultisampleState::default(), |
| 490 | multiview_mask: None, |
| 491 | cache: None, |
| 492 | }, |
| 493 | ); |
no test coverage detected