diff --git a/blade-graphics/src/gles/command.rs b/blade-graphics/src/gles/command.rs index 7a5f6fa..6c0ea20 100644 --- a/blade-graphics/src/gles/command.rs +++ b/blade-graphics/src/gles/command.rs @@ -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]