cobin/metal/
mtl_compute_pipeline_state.rs1use crate::{
2 PrivateMarker,
3 obj::Object,
4 runtime::NSUInteger
5};
6
7pub struct MTLComputePipelineState(PrivateMarker);
8
9impl Object for MTLComputePipelineState {}
10unsafe impl objc::Message for MTLComputePipelineState {}
11
12impl MTLComputePipelineState {
13 pub unsafe fn thread_execution_width(&self) -> NSUInteger {
14 msg_send![self, threadExecutionWidth]
15 }
16
17 pub unsafe fn max_total_threads_per_threadgroup(&self) -> NSUInteger {
18 msg_send![self, maxTotalThreadsPerThreadgroup]
19 }
20}