Skip to content

Commit

Permalink
gles: implement dispatch_indirect
Browse files Browse the repository at this point in the history
  • Loading branch information
EriKWDev authored and kvark committed Jan 11, 2025
1 parent e571dbd commit 1f620a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions blade-graphics/src/gles/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,17 @@ impl crate::traits::PipelineEncoder for super::PipelineEncoder<'_> {

#[hidden_trait::expose]
impl crate::traits::ComputePipelineEncoder for super::PipelineEncoder<'_> {
type BufferPiece = crate::BufferPiece;

fn dispatch(&mut self, groups: [u32; 3]) {
self.commands.push(super::Command::Dispatch(groups));
}

fn dispatch_indirect(&mut self, indirect_buf: crate::BufferPiece) {
self.commands.push(super::Command::DispatchIndirect {
indirect_buf: indirect_buf.into(),
});
}
}

#[hidden_trait::expose]
Expand Down

0 comments on commit 1f620a3

Please sign in to comment.