Remove all generics in AsRecordable
This commit is contained in:
parent
883014998f
commit
50aabaa6ee
5 changed files with 36 additions and 30 deletions
|
@ -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())?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue