mirror of
https://github.com/lisk77/comet.git
synced 2025-12-12 09:08:49 +00:00
19 lines
463 B
Rust
19 lines
463 B
Rust
use crate::render_context::RenderContext;
|
|
|
|
pub struct RenderPass {
|
|
pub name: String,
|
|
pub execute: Box<
|
|
dyn Fn(&mut RenderContext, &mut wgpu::CommandEncoder, &wgpu::TextureView) + Send + Sync,
|
|
>,
|
|
}
|
|
|
|
impl RenderPass {
|
|
pub fn new(
|
|
name: String,
|
|
execute: Box<
|
|
dyn Fn(&mut RenderContext, &mut wgpu::CommandEncoder, &wgpu::TextureView) + Send + Sync,
|
|
>,
|
|
) -> Self {
|
|
Self { name, execute }
|
|
}
|
|
}
|