Skip to content

Commit

Permalink
Add ComputePassDescriptorRef::set_dispatch_type
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Sep 25, 2024
1 parent 0e1918b commit 9bbe74b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/computepass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://developer.apple.com/documentation/metal/mtlcomputepasssamplebufferattachmentdescriptorarray>
Expand Down

0 comments on commit 9bbe74b

Please sign in to comment.