Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsafe impl<'a, Cb, V, Pv, Pl, Prp, S, Pc, O, O1, O2, O3, O4, O5> AddCommand<CmdDraw<V, Pv, Pl, Prp, S, Pc>> for Cb
- where Pl: PipelineLayoutRef,
- S: DescriptorSetsCollection,
- Cb: AddCommand<CmdBindVertexBuffers<V>, Out = O1>,
- O1: AddCommand<CmdPushConstants<Pc, Arc<GraphicsPipeline<Pv, Pl, Prp>>>, Out = O2>,
- O2: AddCommand<CmdBindDescriptorSets<S, Arc<GraphicsPipeline<Pv, Pl, Prp>>>, Out = O3>,
- O3: AddCommand<CmdSetState, Out = O4>,
- O4: AddCommand<CmdBindPipeline<Arc<GraphicsPipeline<Pv, Pl, Prp>>>, Out = O5>,
- O5: AddCommand<CmdDrawRaw, Out = O>
- {
- type Out = O;
- #[inline]
- fn add(self, command: CmdDraw<V, Pv, Pl, Prp, S, Pc>) -> O {
- self.add(command.vertex_buffers)
- .add(command.push_constants)
- .add(command.descriptor_sets)
- .add(command.set_state)
- .add(command.bind_pipeline)
- .add(command.draw_raw)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement