Trait objc2_metal::MTLRenderCommandEncoder
source · pub unsafe trait MTLRenderCommandEncoder: MTLCommandEncoder + IsRetainable {
Show 129 methods
// Provided methods
fn setRenderPipelineState(
&self,
pipeline_state: &ProtocolObject<dyn MTLRenderPipelineState>
)
where Self: Sized + Message { ... }
unsafe fn setVertexBytes_length_atIndex(
&self,
bytes: NonNull<c_void>,
length: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexBuffer_offset_atIndex(
&self,
buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexBufferOffset_atIndex(
&self,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexBuffers_offsets_withRange(
&self,
buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>,
offsets: NonNull<NSUInteger>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setVertexBuffer_offset_attributeStride_atIndex(
&self,
buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger,
stride: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexBuffers_offsets_attributeStrides_withRange(
&self,
buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>,
offsets: NonNull<NSUInteger>,
strides: NonNull<NSUInteger>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setVertexBufferOffset_attributeStride_atIndex(
&self,
offset: NSUInteger,
stride: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexBytes_length_attributeStride_atIndex(
&self,
bytes: NonNull<c_void>,
length: NSUInteger,
stride: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexTexture_atIndex(
&self,
texture: Option<&ProtocolObject<dyn MTLTexture>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexTextures_withRange(
&self,
textures: NonNull<*const ProtocolObject<dyn MTLTexture>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setVertexSamplerState_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexSamplerStates_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setVertexSamplerState_lodMinClamp_lodMaxClamp_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamp: c_float,
lod_max_clamp: c_float,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexSamplerStates_lodMinClamps_lodMaxClamps_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamps: NonNull<c_float>,
lod_max_clamps: NonNull<c_float>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setVertexVisibleFunctionTable_atBufferIndex(
&self,
function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexVisibleFunctionTables_withBufferRange(
&self,
function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setVertexIntersectionFunctionTable_atBufferIndex(
&self,
intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setVertexIntersectionFunctionTables_withBufferRange(
&self,
intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setVertexAccelerationStructure_atBufferIndex(
&self,
acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
fn setViewport(&self, viewport: MTLViewport)
where Self: Sized + Message { ... }
unsafe fn setViewports_count(
&self,
viewports: NonNull<MTLViewport>,
count: NSUInteger
)
where Self: Sized + Message { ... }
fn setFrontFacingWinding(&self, front_facing_winding: MTLWinding)
where Self: Sized + Message { ... }
unsafe fn setVertexAmplificationCount_viewMappings(
&self,
count: NSUInteger,
view_mappings: *mut MTLVertexAmplificationViewMapping
)
where Self: Sized + Message { ... }
fn setCullMode(&self, cull_mode: MTLCullMode)
where Self: Sized + Message { ... }
fn setDepthClipMode(&self, depth_clip_mode: MTLDepthClipMode)
where Self: Sized + Message { ... }
fn setDepthBias_slopeScale_clamp(
&self,
depth_bias: c_float,
slope_scale: c_float,
clamp: c_float
)
where Self: Sized + Message { ... }
fn setScissorRect(&self, rect: MTLScissorRect)
where Self: Sized + Message { ... }
unsafe fn setScissorRects_count(
&self,
scissor_rects: NonNull<MTLScissorRect>,
count: NSUInteger
)
where Self: Sized + Message { ... }
fn setTriangleFillMode(&self, fill_mode: MTLTriangleFillMode)
where Self: Sized + Message { ... }
unsafe fn setFragmentBytes_length_atIndex(
&self,
bytes: NonNull<c_void>,
length: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentBuffer_offset_atIndex(
&self,
buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentBufferOffset_atIndex(
&self,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentBuffers_offsets_withRange(
&self,
buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>,
offsets: NonNull<NSUInteger>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setFragmentTexture_atIndex(
&self,
texture: Option<&ProtocolObject<dyn MTLTexture>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentTextures_withRange(
&self,
textures: NonNull<*const ProtocolObject<dyn MTLTexture>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setFragmentSamplerState_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentSamplerStates_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setFragmentSamplerState_lodMinClamp_lodMaxClamp_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamp: c_float,
lod_max_clamp: c_float,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentSamplerStates_lodMinClamps_lodMaxClamps_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamps: NonNull<c_float>,
lod_max_clamps: NonNull<c_float>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setFragmentVisibleFunctionTable_atBufferIndex(
&self,
function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentVisibleFunctionTables_withBufferRange(
&self,
function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setFragmentIntersectionFunctionTable_atBufferIndex(
&self,
intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setFragmentIntersectionFunctionTables_withBufferRange(
&self,
intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setFragmentAccelerationStructure_atBufferIndex(
&self,
acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
fn setBlendColorRed_green_blue_alpha(
&self,
red: c_float,
green: c_float,
blue: c_float,
alpha: c_float
)
where Self: Sized + Message { ... }
fn setDepthStencilState(
&self,
depth_stencil_state: Option<&ProtocolObject<dyn MTLDepthStencilState>>
)
where Self: Sized + Message { ... }
fn setStencilReferenceValue(&self, reference_value: u32)
where Self: Sized + Message { ... }
fn setStencilFrontReferenceValue_backReferenceValue(
&self,
front_reference_value: u32,
back_reference_value: u32
)
where Self: Sized + Message { ... }
fn setVisibilityResultMode_offset(
&self,
mode: MTLVisibilityResultMode,
offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setColorStoreAction_atIndex(
&self,
store_action: MTLStoreAction,
color_attachment_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setDepthStoreAction(&self, store_action: MTLStoreAction)
where Self: Sized + Message { ... }
unsafe fn setStencilStoreAction(&self, store_action: MTLStoreAction)
where Self: Sized + Message { ... }
unsafe fn setColorStoreActionOptions_atIndex(
&self,
store_action_options: MTLStoreActionOptions,
color_attachment_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setDepthStoreActionOptions(
&self,
store_action_options: MTLStoreActionOptions
)
where Self: Sized + Message { ... }
unsafe fn setStencilStoreActionOptions(
&self,
store_action_options: MTLStoreActionOptions
)
where Self: Sized + Message { ... }
unsafe fn setObjectBytes_length_atIndex(
&self,
bytes: NonNull<c_void>,
length: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setObjectBuffer_offset_atIndex(
&self,
buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setObjectBufferOffset_atIndex(
&self,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setObjectBuffers_offsets_withRange(
&self,
buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>,
offsets: NonNull<NSUInteger>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setObjectTexture_atIndex(
&self,
texture: Option<&ProtocolObject<dyn MTLTexture>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setObjectTextures_withRange(
&self,
textures: NonNull<*const ProtocolObject<dyn MTLTexture>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setObjectSamplerState_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setObjectSamplerStates_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setObjectSamplerState_lodMinClamp_lodMaxClamp_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamp: c_float,
lod_max_clamp: c_float,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setObjectSamplerStates_lodMinClamps_lodMaxClamps_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamps: NonNull<c_float>,
lod_max_clamps: NonNull<c_float>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setObjectThreadgroupMemoryLength_atIndex(
&self,
length: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setMeshBytes_length_atIndex(
&self,
bytes: NonNull<c_void>,
length: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setMeshBuffer_offset_atIndex(
&self,
buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setMeshBufferOffset_atIndex(
&self,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setMeshBuffers_offsets_withRange(
&self,
buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>,
offsets: NonNull<NSUInteger>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setMeshTexture_atIndex(
&self,
texture: Option<&ProtocolObject<dyn MTLTexture>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setMeshTextures_withRange(
&self,
textures: NonNull<*const ProtocolObject<dyn MTLTexture>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setMeshSamplerState_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setMeshSamplerStates_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setMeshSamplerState_lodMinClamp_lodMaxClamp_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamp: c_float,
lod_max_clamp: c_float,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setMeshSamplerStates_lodMinClamps_lodMaxClamps_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamps: NonNull<c_float>,
lod_max_clamps: NonNull<c_float>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn drawMeshThreadgroups_threadsPerObjectThreadgroup_threadsPerMeshThreadgroup(
&self,
threadgroups_per_grid: MTLSize,
threads_per_object_threadgroup: MTLSize,
threads_per_mesh_threadgroup: MTLSize
)
where Self: Sized + Message { ... }
unsafe fn drawMeshThreads_threadsPerObjectThreadgroup_threadsPerMeshThreadgroup(
&self,
threads_per_grid: MTLSize,
threads_per_object_threadgroup: MTLSize,
threads_per_mesh_threadgroup: MTLSize
)
where Self: Sized + Message { ... }
unsafe fn drawMeshThreadgroupsWithIndirectBuffer_indirectBufferOffset_threadsPerObjectThreadgroup_threadsPerMeshThreadgroup(
&self,
indirect_buffer: &ProtocolObject<dyn MTLBuffer>,
indirect_buffer_offset: NSUInteger,
threads_per_object_threadgroup: MTLSize,
threads_per_mesh_threadgroup: MTLSize
)
where Self: Sized + Message { ... }
unsafe fn drawPrimitives_vertexStart_vertexCount_instanceCount(
&self,
primitive_type: MTLPrimitiveType,
vertex_start: NSUInteger,
vertex_count: NSUInteger,
instance_count: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawPrimitives_vertexStart_vertexCount(
&self,
primitive_type: MTLPrimitiveType,
vertex_start: NSUInteger,
vertex_count: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawIndexedPrimitives_indexCount_indexType_indexBuffer_indexBufferOffset_instanceCount(
&self,
primitive_type: MTLPrimitiveType,
index_count: NSUInteger,
index_type: MTLIndexType,
index_buffer: &ProtocolObject<dyn MTLBuffer>,
index_buffer_offset: NSUInteger,
instance_count: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawIndexedPrimitives_indexCount_indexType_indexBuffer_indexBufferOffset(
&self,
primitive_type: MTLPrimitiveType,
index_count: NSUInteger,
index_type: MTLIndexType,
index_buffer: &ProtocolObject<dyn MTLBuffer>,
index_buffer_offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawPrimitives_vertexStart_vertexCount_instanceCount_baseInstance(
&self,
primitive_type: MTLPrimitiveType,
vertex_start: NSUInteger,
vertex_count: NSUInteger,
instance_count: NSUInteger,
base_instance: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawIndexedPrimitives_indexCount_indexType_indexBuffer_indexBufferOffset_instanceCount_baseVertex_baseInstance(
&self,
primitive_type: MTLPrimitiveType,
index_count: NSUInteger,
index_type: MTLIndexType,
index_buffer: &ProtocolObject<dyn MTLBuffer>,
index_buffer_offset: NSUInteger,
instance_count: NSUInteger,
base_vertex: NSInteger,
base_instance: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawPrimitives_indirectBuffer_indirectBufferOffset(
&self,
primitive_type: MTLPrimitiveType,
indirect_buffer: &ProtocolObject<dyn MTLBuffer>,
indirect_buffer_offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawIndexedPrimitives_indexType_indexBuffer_indexBufferOffset_indirectBuffer_indirectBufferOffset(
&self,
primitive_type: MTLPrimitiveType,
index_type: MTLIndexType,
index_buffer: &ProtocolObject<dyn MTLBuffer>,
index_buffer_offset: NSUInteger,
indirect_buffer: &ProtocolObject<dyn MTLBuffer>,
indirect_buffer_offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn textureBarrier(&self)
where Self: Sized + Message { ... }
fn updateFence_afterStages(
&self,
fence: &ProtocolObject<dyn MTLFence>,
stages: MTLRenderStages
)
where Self: Sized + Message { ... }
fn waitForFence_beforeStages(
&self,
fence: &ProtocolObject<dyn MTLFence>,
stages: MTLRenderStages
)
where Self: Sized + Message { ... }
unsafe fn setTessellationFactorBuffer_offset_instanceStride(
&self,
buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger,
instance_stride: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTessellationFactorScale(&self, scale: c_float)
where Self: Sized + Message { ... }
unsafe fn drawPatches_patchStart_patchCount_patchIndexBuffer_patchIndexBufferOffset_instanceCount_baseInstance(
&self,
number_of_patch_control_points: NSUInteger,
patch_start: NSUInteger,
patch_count: NSUInteger,
patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
patch_index_buffer_offset: NSUInteger,
instance_count: NSUInteger,
base_instance: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawPatches_patchIndexBuffer_patchIndexBufferOffset_indirectBuffer_indirectBufferOffset(
&self,
number_of_patch_control_points: NSUInteger,
patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
patch_index_buffer_offset: NSUInteger,
indirect_buffer: &ProtocolObject<dyn MTLBuffer>,
indirect_buffer_offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawIndexedPatches_patchStart_patchCount_patchIndexBuffer_patchIndexBufferOffset_controlPointIndexBuffer_controlPointIndexBufferOffset_instanceCount_baseInstance(
&self,
number_of_patch_control_points: NSUInteger,
patch_start: NSUInteger,
patch_count: NSUInteger,
patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
patch_index_buffer_offset: NSUInteger,
control_point_index_buffer: &ProtocolObject<dyn MTLBuffer>,
control_point_index_buffer_offset: NSUInteger,
instance_count: NSUInteger,
base_instance: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn drawIndexedPatches_patchIndexBuffer_patchIndexBufferOffset_controlPointIndexBuffer_controlPointIndexBufferOffset_indirectBuffer_indirectBufferOffset(
&self,
number_of_patch_control_points: NSUInteger,
patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
patch_index_buffer_offset: NSUInteger,
control_point_index_buffer: &ProtocolObject<dyn MTLBuffer>,
control_point_index_buffer_offset: NSUInteger,
indirect_buffer: &ProtocolObject<dyn MTLBuffer>,
indirect_buffer_offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn tileWidth(&self) -> NSUInteger
where Self: Sized + Message { ... }
unsafe fn tileHeight(&self) -> NSUInteger
where Self: Sized + Message { ... }
unsafe fn setTileBytes_length_atIndex(
&self,
bytes: NonNull<c_void>,
length: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileBuffer_offset_atIndex(
&self,
buffer: Option<&ProtocolObject<dyn MTLBuffer>>,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileBufferOffset_atIndex(
&self,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileBuffers_offsets_withRange(
&self,
buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>,
offsets: NonNull<NSUInteger>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setTileTexture_atIndex(
&self,
texture: Option<&ProtocolObject<dyn MTLTexture>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileTextures_withRange(
&self,
textures: NonNull<*const ProtocolObject<dyn MTLTexture>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setTileSamplerState_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileSamplerStates_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setTileSamplerState_lodMinClamp_lodMaxClamp_atIndex(
&self,
sampler: Option<&ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamp: c_float,
lod_max_clamp: c_float,
index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileSamplerStates_lodMinClamps_lodMaxClamps_withRange(
&self,
samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>,
lod_min_clamps: NonNull<c_float>,
lod_max_clamps: NonNull<c_float>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setTileVisibleFunctionTable_atBufferIndex(
&self,
function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileVisibleFunctionTables_withBufferRange(
&self,
function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setTileIntersectionFunctionTable_atBufferIndex(
&self,
intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn setTileIntersectionFunctionTables_withBufferRange(
&self,
intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>,
range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn setTileAccelerationStructure_atBufferIndex(
&self,
acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>,
buffer_index: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn dispatchThreadsPerTile(&self, threads_per_tile: MTLSize)
where Self: Sized + Message { ... }
unsafe fn setThreadgroupMemoryLength_offset_atIndex(
&self,
length: NSUInteger,
offset: NSUInteger,
index: NSUInteger
)
where Self: Sized + Message { ... }
fn useResource_usage(
&self,
resource: &ProtocolObject<dyn MTLResource>,
usage: MTLResourceUsage
)
where Self: Sized + Message { ... }
unsafe fn useResources_count_usage(
&self,
resources: NonNull<NonNull<ProtocolObject<dyn MTLResource>>>,
count: NSUInteger,
usage: MTLResourceUsage
)
where Self: Sized + Message { ... }
fn useResource_usage_stages(
&self,
resource: &ProtocolObject<dyn MTLResource>,
usage: MTLResourceUsage,
stages: MTLRenderStages
)
where Self: Sized + Message { ... }
unsafe fn useResources_count_usage_stages(
&self,
resources: NonNull<NonNull<ProtocolObject<dyn MTLResource>>>,
count: NSUInteger,
usage: MTLResourceUsage,
stages: MTLRenderStages
)
where Self: Sized + Message { ... }
fn useHeap(&self, heap: &ProtocolObject<dyn MTLHeap>)
where Self: Sized + Message { ... }
unsafe fn useHeaps_count(
&self,
heaps: NonNull<NonNull<ProtocolObject<dyn MTLHeap>>>,
count: NSUInteger
)
where Self: Sized + Message { ... }
fn useHeap_stages(
&self,
heap: &ProtocolObject<dyn MTLHeap>,
stages: MTLRenderStages
)
where Self: Sized + Message { ... }
unsafe fn useHeaps_count_stages(
&self,
heaps: NonNull<NonNull<ProtocolObject<dyn MTLHeap>>>,
count: NSUInteger,
stages: MTLRenderStages
)
where Self: Sized + Message { ... }
unsafe fn executeCommandsInBuffer_withRange(
&self,
indirect_command_buffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>,
execution_range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn executeCommandsInBuffer_indirectBuffer_indirectBufferOffset(
&self,
indirect_commandbuffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>,
indirect_range_buffer: &ProtocolObject<dyn MTLBuffer>,
indirect_buffer_offset: NSUInteger
)
where Self: Sized + Message { ... }
unsafe fn memoryBarrierWithScope_afterStages_beforeStages(
&self,
scope: MTLBarrierScope,
after: MTLRenderStages,
before: MTLRenderStages
)
where Self: Sized + Message { ... }
unsafe fn memoryBarrierWithResources_count_afterStages_beforeStages(
&self,
resources: NonNull<NonNull<ProtocolObject<dyn MTLResource>>>,
count: NSUInteger,
after: MTLRenderStages,
before: MTLRenderStages
)
where Self: Sized + Message { ... }
unsafe fn sampleCountersInBuffer_atSampleIndex_withBarrier(
&self,
sample_buffer: &ProtocolObject<dyn MTLCounterSampleBuffer>,
sample_index: NSUInteger,
barrier: bool
)
where Self: Sized + Message { ... }
}Available on crate features
MTLCommandEncoder and MTLRenderCommandEncoder only.Provided Methods§
fn setRenderPipelineState( &self, pipeline_state: &ProtocolObject<dyn MTLRenderPipelineState> )
Available on crate feature
MTLRenderPipeline only.unsafe fn setVertexBytes_length_atIndex( &self, bytes: NonNull<c_void>, length: NSUInteger, index: NSUInteger )
unsafe fn setVertexBuffer_offset_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, index: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setVertexBufferOffset_atIndex( &self, offset: NSUInteger, index: NSUInteger )
unsafe fn setVertexBuffers_offsets_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, range: NSRange )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setVertexBuffer_offset_attributeStride_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, stride: NSUInteger, index: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setVertexBuffers_offsets_attributeStrides_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, strides: NonNull<NSUInteger>, range: NSRange )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setVertexBufferOffset_attributeStride_atIndex( &self, offset: NSUInteger, stride: NSUInteger, index: NSUInteger )
unsafe fn setVertexBytes_length_attributeStride_atIndex( &self, bytes: NonNull<c_void>, length: NSUInteger, stride: NSUInteger, index: NSUInteger )
unsafe fn setVertexTexture_atIndex( &self, texture: Option<&ProtocolObject<dyn MTLTexture>>, index: NSUInteger )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setVertexTextures_withRange( &self, textures: NonNull<*const ProtocolObject<dyn MTLTexture>>, range: NSRange )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setVertexSamplerState_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setVertexSamplerStates_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setVertexSamplerState_lodMinClamp_lodMaxClamp_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, lod_min_clamp: c_float, lod_max_clamp: c_float, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setVertexSamplerStates_lodMinClamps_lodMaxClamps_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, lod_min_clamps: NonNull<c_float>, lod_max_clamps: NonNull<c_float>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setVertexVisibleFunctionTable_atBufferIndex( &self, function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>, buffer_index: NSUInteger )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setVertexVisibleFunctionTables_withBufferRange( &self, function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>, range: NSRange )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setVertexIntersectionFunctionTable_atBufferIndex( &self, intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>, buffer_index: NSUInteger )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.unsafe fn setVertexIntersectionFunctionTables_withBufferRange( &self, intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>, range: NSRange )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.unsafe fn setVertexAccelerationStructure_atBufferIndex( &self, acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>, buffer_index: NSUInteger )
Available on crate features
MTLAccelerationStructure and MTLResource only.fn setViewport(&self, viewport: MTLViewport)
unsafe fn setViewports_count( &self, viewports: NonNull<MTLViewport>, count: NSUInteger )
fn setFrontFacingWinding(&self, front_facing_winding: MTLWinding)
unsafe fn setVertexAmplificationCount_viewMappings( &self, count: NSUInteger, view_mappings: *mut MTLVertexAmplificationViewMapping )
fn setCullMode(&self, cull_mode: MTLCullMode)
fn setDepthClipMode(&self, depth_clip_mode: MTLDepthClipMode)
fn setDepthBias_slopeScale_clamp( &self, depth_bias: c_float, slope_scale: c_float, clamp: c_float )
fn setScissorRect(&self, rect: MTLScissorRect)
unsafe fn setScissorRects_count( &self, scissor_rects: NonNull<MTLScissorRect>, count: NSUInteger )
fn setTriangleFillMode(&self, fill_mode: MTLTriangleFillMode)
unsafe fn setFragmentBytes_length_atIndex( &self, bytes: NonNull<c_void>, length: NSUInteger, index: NSUInteger )
unsafe fn setFragmentBuffer_offset_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, index: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setFragmentBufferOffset_atIndex( &self, offset: NSUInteger, index: NSUInteger )
unsafe fn setFragmentBuffers_offsets_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, range: NSRange )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setFragmentTexture_atIndex( &self, texture: Option<&ProtocolObject<dyn MTLTexture>>, index: NSUInteger )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setFragmentTextures_withRange( &self, textures: NonNull<*const ProtocolObject<dyn MTLTexture>>, range: NSRange )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setFragmentSamplerState_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setFragmentSamplerStates_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setFragmentSamplerState_lodMinClamp_lodMaxClamp_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, lod_min_clamp: c_float, lod_max_clamp: c_float, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setFragmentSamplerStates_lodMinClamps_lodMaxClamps_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, lod_min_clamps: NonNull<c_float>, lod_max_clamps: NonNull<c_float>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setFragmentVisibleFunctionTable_atBufferIndex( &self, function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>, buffer_index: NSUInteger )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setFragmentVisibleFunctionTables_withBufferRange( &self, function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>, range: NSRange )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setFragmentIntersectionFunctionTable_atBufferIndex( &self, intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>, buffer_index: NSUInteger )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.unsafe fn setFragmentIntersectionFunctionTables_withBufferRange( &self, intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>, range: NSRange )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.unsafe fn setFragmentAccelerationStructure_atBufferIndex( &self, acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>, buffer_index: NSUInteger )
Available on crate features
MTLAccelerationStructure and MTLResource only.fn setBlendColorRed_green_blue_alpha( &self, red: c_float, green: c_float, blue: c_float, alpha: c_float )
fn setDepthStencilState( &self, depth_stencil_state: Option<&ProtocolObject<dyn MTLDepthStencilState>> )
Available on crate feature
MTLDepthStencil only.fn setStencilReferenceValue(&self, reference_value: u32)
fn setStencilFrontReferenceValue_backReferenceValue( &self, front_reference_value: u32, back_reference_value: u32 )
fn setVisibilityResultMode_offset( &self, mode: MTLVisibilityResultMode, offset: NSUInteger )
unsafe fn setColorStoreAction_atIndex( &self, store_action: MTLStoreAction, color_attachment_index: NSUInteger )
Available on crate feature
MTLRenderPass only.unsafe fn setDepthStoreAction(&self, store_action: MTLStoreAction)
Available on crate feature
MTLRenderPass only.unsafe fn setStencilStoreAction(&self, store_action: MTLStoreAction)
Available on crate feature
MTLRenderPass only.unsafe fn setColorStoreActionOptions_atIndex( &self, store_action_options: MTLStoreActionOptions, color_attachment_index: NSUInteger )
Available on crate feature
MTLRenderPass only.unsafe fn setDepthStoreActionOptions( &self, store_action_options: MTLStoreActionOptions )
Available on crate feature
MTLRenderPass only.unsafe fn setStencilStoreActionOptions( &self, store_action_options: MTLStoreActionOptions )
Available on crate feature
MTLRenderPass only.unsafe fn setObjectBytes_length_atIndex( &self, bytes: NonNull<c_void>, length: NSUInteger, index: NSUInteger )
unsafe fn setObjectBuffer_offset_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, index: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setObjectBufferOffset_atIndex( &self, offset: NSUInteger, index: NSUInteger )
unsafe fn setObjectBuffers_offsets_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, range: NSRange )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setObjectTexture_atIndex( &self, texture: Option<&ProtocolObject<dyn MTLTexture>>, index: NSUInteger )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setObjectTextures_withRange( &self, textures: NonNull<*const ProtocolObject<dyn MTLTexture>>, range: NSRange )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setObjectSamplerState_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setObjectSamplerStates_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setObjectSamplerState_lodMinClamp_lodMaxClamp_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, lod_min_clamp: c_float, lod_max_clamp: c_float, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setObjectSamplerStates_lodMinClamps_lodMaxClamps_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, lod_min_clamps: NonNull<c_float>, lod_max_clamps: NonNull<c_float>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setObjectThreadgroupMemoryLength_atIndex( &self, length: NSUInteger, index: NSUInteger )
unsafe fn setMeshBytes_length_atIndex( &self, bytes: NonNull<c_void>, length: NSUInteger, index: NSUInteger )
unsafe fn setMeshBuffer_offset_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, index: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setMeshBufferOffset_atIndex( &self, offset: NSUInteger, index: NSUInteger )
unsafe fn setMeshBuffers_offsets_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, range: NSRange )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setMeshTexture_atIndex( &self, texture: Option<&ProtocolObject<dyn MTLTexture>>, index: NSUInteger )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setMeshTextures_withRange( &self, textures: NonNull<*const ProtocolObject<dyn MTLTexture>>, range: NSRange )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setMeshSamplerState_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setMeshSamplerStates_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setMeshSamplerState_lodMinClamp_lodMaxClamp_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, lod_min_clamp: c_float, lod_max_clamp: c_float, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setMeshSamplerStates_lodMinClamps_lodMaxClamps_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, lod_min_clamps: NonNull<c_float>, lod_max_clamps: NonNull<c_float>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn drawMeshThreadgroups_threadsPerObjectThreadgroup_threadsPerMeshThreadgroup( &self, threadgroups_per_grid: MTLSize, threads_per_object_threadgroup: MTLSize, threads_per_mesh_threadgroup: MTLSize )
Available on crate feature
MTLTypes only.unsafe fn drawMeshThreads_threadsPerObjectThreadgroup_threadsPerMeshThreadgroup( &self, threads_per_grid: MTLSize, threads_per_object_threadgroup: MTLSize, threads_per_mesh_threadgroup: MTLSize )
Available on crate feature
MTLTypes only.unsafe fn drawMeshThreadgroupsWithIndirectBuffer_indirectBufferOffset_threadsPerObjectThreadgroup_threadsPerMeshThreadgroup( &self, indirect_buffer: &ProtocolObject<dyn MTLBuffer>, indirect_buffer_offset: NSUInteger, threads_per_object_threadgroup: MTLSize, threads_per_mesh_threadgroup: MTLSize )
Available on crate features
MTLBuffer and MTLResource and MTLTypes only.unsafe fn drawPrimitives_vertexStart_vertexCount_instanceCount( &self, primitive_type: MTLPrimitiveType, vertex_start: NSUInteger, vertex_count: NSUInteger, instance_count: NSUInteger )
unsafe fn drawPrimitives_vertexStart_vertexCount( &self, primitive_type: MTLPrimitiveType, vertex_start: NSUInteger, vertex_count: NSUInteger )
unsafe fn drawIndexedPrimitives_indexCount_indexType_indexBuffer_indexBufferOffset_instanceCount( &self, primitive_type: MTLPrimitiveType, index_count: NSUInteger, index_type: MTLIndexType, index_buffer: &ProtocolObject<dyn MTLBuffer>, index_buffer_offset: NSUInteger, instance_count: NSUInteger )
Available on crate features
MTLBuffer and MTLResource and MTLStageInputOutputDescriptor only.unsafe fn drawIndexedPrimitives_indexCount_indexType_indexBuffer_indexBufferOffset( &self, primitive_type: MTLPrimitiveType, index_count: NSUInteger, index_type: MTLIndexType, index_buffer: &ProtocolObject<dyn MTLBuffer>, index_buffer_offset: NSUInteger )
Available on crate features
MTLBuffer and MTLResource and MTLStageInputOutputDescriptor only.unsafe fn drawPrimitives_vertexStart_vertexCount_instanceCount_baseInstance( &self, primitive_type: MTLPrimitiveType, vertex_start: NSUInteger, vertex_count: NSUInteger, instance_count: NSUInteger, base_instance: NSUInteger )
unsafe fn drawIndexedPrimitives_indexCount_indexType_indexBuffer_indexBufferOffset_instanceCount_baseVertex_baseInstance( &self, primitive_type: MTLPrimitiveType, index_count: NSUInteger, index_type: MTLIndexType, index_buffer: &ProtocolObject<dyn MTLBuffer>, index_buffer_offset: NSUInteger, instance_count: NSUInteger, base_vertex: NSInteger, base_instance: NSUInteger )
Available on crate features
MTLBuffer and MTLResource and MTLStageInputOutputDescriptor only.unsafe fn drawPrimitives_indirectBuffer_indirectBufferOffset( &self, primitive_type: MTLPrimitiveType, indirect_buffer: &ProtocolObject<dyn MTLBuffer>, indirect_buffer_offset: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn drawIndexedPrimitives_indexType_indexBuffer_indexBufferOffset_indirectBuffer_indirectBufferOffset( &self, primitive_type: MTLPrimitiveType, index_type: MTLIndexType, index_buffer: &ProtocolObject<dyn MTLBuffer>, index_buffer_offset: NSUInteger, indirect_buffer: &ProtocolObject<dyn MTLBuffer>, indirect_buffer_offset: NSUInteger )
Available on crate features
MTLBuffer and MTLResource and MTLStageInputOutputDescriptor only.unsafe fn textureBarrier(&self)
👎Deprecated
fn updateFence_afterStages( &self, fence: &ProtocolObject<dyn MTLFence>, stages: MTLRenderStages )
Available on crate feature
MTLFence only.fn waitForFence_beforeStages( &self, fence: &ProtocolObject<dyn MTLFence>, stages: MTLRenderStages )
Available on crate feature
MTLFence only.unsafe fn setTessellationFactorBuffer_offset_instanceStride( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, instance_stride: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setTessellationFactorScale(&self, scale: c_float)
unsafe fn drawPatches_patchStart_patchCount_patchIndexBuffer_patchIndexBufferOffset_instanceCount_baseInstance( &self, number_of_patch_control_points: NSUInteger, patch_start: NSUInteger, patch_count: NSUInteger, patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>, patch_index_buffer_offset: NSUInteger, instance_count: NSUInteger, base_instance: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn drawPatches_patchIndexBuffer_patchIndexBufferOffset_indirectBuffer_indirectBufferOffset( &self, number_of_patch_control_points: NSUInteger, patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>, patch_index_buffer_offset: NSUInteger, indirect_buffer: &ProtocolObject<dyn MTLBuffer>, indirect_buffer_offset: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn drawIndexedPatches_patchStart_patchCount_patchIndexBuffer_patchIndexBufferOffset_controlPointIndexBuffer_controlPointIndexBufferOffset_instanceCount_baseInstance( &self, number_of_patch_control_points: NSUInteger, patch_start: NSUInteger, patch_count: NSUInteger, patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>, patch_index_buffer_offset: NSUInteger, control_point_index_buffer: &ProtocolObject<dyn MTLBuffer>, control_point_index_buffer_offset: NSUInteger, instance_count: NSUInteger, base_instance: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn drawIndexedPatches_patchIndexBuffer_patchIndexBufferOffset_controlPointIndexBuffer_controlPointIndexBufferOffset_indirectBuffer_indirectBufferOffset( &self, number_of_patch_control_points: NSUInteger, patch_index_buffer: Option<&ProtocolObject<dyn MTLBuffer>>, patch_index_buffer_offset: NSUInteger, control_point_index_buffer: &ProtocolObject<dyn MTLBuffer>, control_point_index_buffer_offset: NSUInteger, indirect_buffer: &ProtocolObject<dyn MTLBuffer>, indirect_buffer_offset: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn tileWidth(&self) -> NSUInteger
unsafe fn tileHeight(&self) -> NSUInteger
unsafe fn setTileBytes_length_atIndex( &self, bytes: NonNull<c_void>, length: NSUInteger, index: NSUInteger )
unsafe fn setTileBuffer_offset_atIndex( &self, buffer: Option<&ProtocolObject<dyn MTLBuffer>>, offset: NSUInteger, index: NSUInteger )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setTileBufferOffset_atIndex( &self, offset: NSUInteger, index: NSUInteger )
unsafe fn setTileBuffers_offsets_withRange( &self, buffers: NonNull<*const ProtocolObject<dyn MTLBuffer>>, offsets: NonNull<NSUInteger>, range: NSRange )
Available on crate features
MTLBuffer and MTLResource only.unsafe fn setTileTexture_atIndex( &self, texture: Option<&ProtocolObject<dyn MTLTexture>>, index: NSUInteger )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setTileTextures_withRange( &self, textures: NonNull<*const ProtocolObject<dyn MTLTexture>>, range: NSRange )
Available on crate features
MTLResource and MTLTexture only.unsafe fn setTileSamplerState_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setTileSamplerStates_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setTileSamplerState_lodMinClamp_lodMaxClamp_atIndex( &self, sampler: Option<&ProtocolObject<dyn MTLSamplerState>>, lod_min_clamp: c_float, lod_max_clamp: c_float, index: NSUInteger )
Available on crate feature
MTLSampler only.unsafe fn setTileSamplerStates_lodMinClamps_lodMaxClamps_withRange( &self, samplers: NonNull<*const ProtocolObject<dyn MTLSamplerState>>, lod_min_clamps: NonNull<c_float>, lod_max_clamps: NonNull<c_float>, range: NSRange )
Available on crate feature
MTLSampler only.unsafe fn setTileVisibleFunctionTable_atBufferIndex( &self, function_table: Option<&ProtocolObject<dyn MTLVisibleFunctionTable>>, buffer_index: NSUInteger )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setTileVisibleFunctionTables_withBufferRange( &self, function_tables: NonNull<*const ProtocolObject<dyn MTLVisibleFunctionTable>>, range: NSRange )
Available on crate features
MTLResource and MTLVisibleFunctionTable only.unsafe fn setTileIntersectionFunctionTable_atBufferIndex( &self, intersection_function_table: Option<&ProtocolObject<dyn MTLIntersectionFunctionTable>>, buffer_index: NSUInteger )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.unsafe fn setTileIntersectionFunctionTables_withBufferRange( &self, intersection_function_tables: NonNull<*const ProtocolObject<dyn MTLIntersectionFunctionTable>>, range: NSRange )
Available on crate features
MTLIntersectionFunctionTable and MTLResource only.unsafe fn setTileAccelerationStructure_atBufferIndex( &self, acceleration_structure: Option<&ProtocolObject<dyn MTLAccelerationStructure>>, buffer_index: NSUInteger )
Available on crate features
MTLAccelerationStructure and MTLResource only.unsafe fn dispatchThreadsPerTile(&self, threads_per_tile: MTLSize)
Available on crate feature
MTLTypes only.unsafe fn setThreadgroupMemoryLength_offset_atIndex( &self, length: NSUInteger, offset: NSUInteger, index: NSUInteger )
fn useResource_usage( &self, resource: &ProtocolObject<dyn MTLResource>, usage: MTLResourceUsage )
👎Deprecated
Available on crate feature
MTLResource only.unsafe fn useResources_count_usage( &self, resources: NonNull<NonNull<ProtocolObject<dyn MTLResource>>>, count: NSUInteger, usage: MTLResourceUsage )
👎Deprecated
Available on crate feature
MTLResource only.fn useResource_usage_stages( &self, resource: &ProtocolObject<dyn MTLResource>, usage: MTLResourceUsage, stages: MTLRenderStages )
Available on crate feature
MTLResource only.unsafe fn useResources_count_usage_stages( &self, resources: NonNull<NonNull<ProtocolObject<dyn MTLResource>>>, count: NSUInteger, usage: MTLResourceUsage, stages: MTLRenderStages )
Available on crate feature
MTLResource only.fn useHeap(&self, heap: &ProtocolObject<dyn MTLHeap>)
👎Deprecated
Available on crate feature
MTLHeap only.unsafe fn useHeaps_count( &self, heaps: NonNull<NonNull<ProtocolObject<dyn MTLHeap>>>, count: NSUInteger )
👎Deprecated
Available on crate feature
MTLHeap only.fn useHeap_stages( &self, heap: &ProtocolObject<dyn MTLHeap>, stages: MTLRenderStages )
Available on crate feature
MTLHeap only.unsafe fn useHeaps_count_stages( &self, heaps: NonNull<NonNull<ProtocolObject<dyn MTLHeap>>>, count: NSUInteger, stages: MTLRenderStages )
Available on crate feature
MTLHeap only.unsafe fn executeCommandsInBuffer_withRange( &self, indirect_command_buffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>, execution_range: NSRange )
Available on crate features
MTLIndirectCommandBuffer and MTLResource only.unsafe fn executeCommandsInBuffer_indirectBuffer_indirectBufferOffset( &self, indirect_commandbuffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>, indirect_range_buffer: &ProtocolObject<dyn MTLBuffer>, indirect_buffer_offset: NSUInteger )
Available on crate features
MTLBuffer and MTLIndirectCommandBuffer and MTLResource only.unsafe fn memoryBarrierWithScope_afterStages_beforeStages( &self, scope: MTLBarrierScope, after: MTLRenderStages, before: MTLRenderStages )
unsafe fn memoryBarrierWithResources_count_afterStages_beforeStages( &self, resources: NonNull<NonNull<ProtocolObject<dyn MTLResource>>>, count: NSUInteger, after: MTLRenderStages, before: MTLRenderStages )
Available on crate feature
MTLResource only.unsafe fn sampleCountersInBuffer_atSampleIndex_withBarrier( &self, sample_buffer: &ProtocolObject<dyn MTLCounterSampleBuffer>, sample_index: NSUInteger, barrier: bool )
Available on crate feature
MTLCounters only.