Split record_render_commands and bind_commands
This commit is contained in:
parent
078e9daba9
commit
f91c0792b2
6 changed files with 83 additions and 85 deletions
|
@ -206,17 +206,18 @@ impl Scene for MainScene {
|
|||
let transform_uniform =
|
||||
Transform::create_buffer(&app_context.memory_allocator, &state.instances)?;
|
||||
|
||||
SimplePipeline::record_render_commands(
|
||||
SimplePipeline::record_bind_commands(
|
||||
&mut builder,
|
||||
&app_context.descriptor_set_allocator,
|
||||
state.simple_pipeline.pipeline(),
|
||||
&state.square,
|
||||
&transform_uniform,
|
||||
&SimplePipelineRenderData {
|
||||
mesh: &state.square,
|
||||
mvp_uniform: &camera_uniform,
|
||||
texture: &state.texture,
|
||||
instances: &transform_uniform,
|
||||
},
|
||||
)?;
|
||||
SimplePipeline::record_draw_commands(&mut builder, &state.square, &transform_uniform)?;
|
||||
|
||||
RenderPassManager::end_rendering(&mut builder)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue