Skip to content

Commit 9bbe74b

Browse files
committed
Add ComputePassDescriptorRef::set_dispatch_type
1 parent 0e1918b commit 9bbe74b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/computepass.rs

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ impl ComputePassDescriptorRef {
2121
) -> &ComputePassSampleBufferAttachmentDescriptorArrayRef {
2222
unsafe { msg_send![self, sampleBufferAttachments] }
2323
}
24+
25+
pub fn set_dispatch_type(&self, ty: MTLDispatchType) {
26+
unsafe { msg_send![self, setDispatchType: ty] }
27+
}
2428
}
2529

2630
/// See <https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptorarray>

0 commit comments

Comments
 (0)