Split record_render_commands and bind_commands

This commit is contained in:
Florian RICHER 2025-06-08 16:42:22 +02:00
parent 078e9daba9
commit f91c0792b2
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
6 changed files with 83 additions and 85 deletions

View file

@ -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)?;