From a908d04ed720299454e820050c125d9ab3fea8de Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 24 Sep 2024 21:05:29 -0700 Subject: [PATCH] Add ComputePassDescriptorRef::set_dispatch_type --- src/computepass.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/computepass.rs b/src/computepass.rs index 50774d6..bb21a72 100644 --- a/src/computepass.rs +++ b/src/computepass.rs @@ -21,6 +21,10 @@ impl ComputePassDescriptorRef { ) -> &ComputePassSampleBufferAttachmentDescriptorArrayRef { unsafe { msg_send![self, sampleBufferAttachments] } } + + pub fn set_dispatch_type(&self, ty: MTLDispatchType) { + unsafe { msg_send![self, setDispatchType: ty] } + } } /// See