Remove all generics in AsRecordable

This commit is contained in:
Florian RICHER 2025-06-09 16:26:14 +02:00
parent 883014998f
commit 50aabaa6ee
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
5 changed files with 36 additions and 30 deletions

View file

@ -1,7 +1,6 @@
use std::{collections::HashMap, error::Error, sync::Arc};
use std::{error::Error, sync::Arc};
use vulkano::{
buffer::Subbuffer,
command_buffer::{AutoCommandBufferBuilder, PrimaryAutoCommandBuffer},
descriptor_set::{
allocator::StandardDescriptorSetAllocator, layout::DescriptorSetLayoutCreateInfo,
@ -120,13 +119,13 @@ impl SimplePipeline {
}
}
impl AsRecordable<Vertex3D, Subbuffer<[u32]>, TransformRaw> for SimplePipeline {
impl AsRecordable for SimplePipeline {
fn record_bind_commands(
builder: &mut AutoCommandBufferBuilder<PrimaryAutoCommandBuffer>,
descriptor_set_allocator: &Arc<StandardDescriptorSetAllocator>,
pipeline: &Arc<GraphicsPipeline>,
mesh: &impl AsRenderableMesh<Vertex3D, Subbuffer<[u32]>>,
instances: &impl AsRenderableMeshInstance<TransformRaw>,
mesh: &impl AsRenderableMesh,
instances: &impl AsRenderableMeshInstance,
descriptor_sets: Vec<Arc<dyn AsDescriptorSet>>,
) -> Result<(), Box<dyn Error>> {
builder.bind_pipeline_graphics(pipeline.clone())?;