-
-
Save tomaka/1ab9e17792324e48c124a5b74bf178a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment