@@ -128,6 +128,10 @@ Return the index of the current thread in its threadgroup.
128128    thread_execution_width()::UInt32 
129129
130130Return the execution width of the compute unit. 
131+ 
132+ This function has been deprecated as of Metal 3. 
133+ 
134+ Use [`threads_per_simdgroup`](@ref) instead. 
131135"""  
132136
133137@doc  """ 
@@ -155,72 +159,72 @@ end
155159
156160@doc_dim  """ 
157161    dispatch_threads_per_threadgroup_1d()::UInt32 
158-     dispatch_threads_per_threadgroup_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
159-     dispatch_threads_per_threadgroup_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
162+     dispatch_threads_per_threadgroup_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
163+     dispatch_threads_per_threadgroup_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
160164
161165Return the thread execution width specified at dispatch for a threadgroup. 
162166""" 
163167
164168@doc_dim  """ 
165169    grid_origin_1d()::UInt32 
166-     grid_origin_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
167-     grid_origin_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
170+     grid_origin_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
171+     grid_origin_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
168172
169173Return the origin offset of the grid for threads that read per-thread stage-in data. 
170174""" 
171175
172176@doc_dim  """ 
173177    grid_size_1d()::UInt32 
174-     grid_size_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
175-     grid_size_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
178+     grid_size_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
179+     grid_size_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
176180
177181Return maximum size of the grid for threads that read per-thread stage-in data. 
178182""" 
179183
180184@doc_dim  """ 
181185    thread_position_in_threadgroup_1d()::UInt32 
182-     thread_position_in_threadgroup_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
183-     thread_position_in_threadgroup_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
186+     thread_position_in_threadgroup_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
187+     thread_position_in_threadgroup_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
184188
185189Return the current thread's unique position within a threadgroup. 
186190""" 
187191
188192@doc_dim  """ 
189193    thread_position_in_grid_1d()::UInt32 
190-     thread_position_in_grid_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
191-     thread_position_in_grid_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
194+     thread_position_in_grid_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
195+     thread_position_in_grid_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
192196
193197Return the current thread's position in an N-dimensional grid of threads. 
194198""" 
195199
196200@doc_dim  """ 
197201    threadgroup_position_in_grid_1d()::UInt32 
198-     threadgroup_position_in_grid_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
199-     threadgroup_position_in_grid_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
202+     threadgroup_position_in_grid_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
203+     threadgroup_position_in_grid_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
200204
201205Return the current threadgroup's unique position within the grid. 
202206""" 
203207
204208@doc_dim  """ 
205209    threadgroups_per_grid_1d()::UInt32 
206-     threadgroups_per_grid_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
207-     threadgroups_per_grid_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
210+     threadgroups_per_grid_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
211+     threadgroups_per_grid_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
208212
209213Return the number of threadgroups per grid. 
210214""" 
211215
212216@doc_dim  """ 
213217    threads_per_grid_1d()::UInt32 
214-     threads_per_grid_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
215-     threads_per_grid_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
218+     threads_per_grid_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
219+     threads_per_grid_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
216220
217221Return the grid size. 
218222""" 
219223
220224@doc_dim  """ 
221225    threads_per_threadgroup_1d()::UInt32 
222-     threads_per_threadgroup_2d()::NamedTuple{(:x, :y), Tuple{ UInt32, UInt32} } 
223-     threads_per_threadgroup_3d()::NamedTuple{(:x, :y, :z), Tuple{ UInt32, UInt32, UInt32} } 
226+     threads_per_threadgroup_2d()::@ NamedTuple{x:: UInt32, y:: UInt32} 
227+     threads_per_threadgroup_3d()::@ NamedTuple{x:: UInt32, y:: UInt32, z:: UInt32} 
224228
225229Return the thread execution width of a threadgroup. 
226230""" 
0 commit comments