copy
TypeScriptcopy(device?: (SDKHandle) | null): MPSRayIntersectorSwift declarationfunc copy(with zone: NSZone? = nil, device: (any MTLDevice)?) -> Selfclass · iOS 12.0+ · Deprecated in iOS 17.0 · SDK 27.1
class MPSRayIntersectorcopy(device?: (SDKHandle) | null): MPSRayIntersectorSwift declarationfunc copy(with zone: NSZone? = nil, device: (any MTLDevice)?) -> SelfencodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetIntersectionBufferIntersectionBufferOffsetRayCountAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayCount: number, accelerationStructure: MPSAccelerationStructure): voidSwift declarationfunc encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayBuffer: any MTLBuffer, rayBufferOffset: Int, intersectionBuffer: any MTLBuffer, intersectionBufferOffset: Int, rayCount: Int, accelerationStructure: MPSAccelerationStructure)encodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetIntersectionBufferIntersectionBufferOffsetRayCountBufferRayCountBufferOffsetAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayCountBuffer: SDKHandle, rayCountBufferOffset: number, accelerationStructure: MPSAccelerationStructure): voidSwift declarationfunc encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayBuffer: any MTLBuffer, rayBufferOffset: Int, intersectionBuffer: any MTLBuffer, intersectionBufferOffset: Int, rayCountBuffer: any MTLBuffer, rayCountBufferOffset: Int, accelerationStructure: MPSAccelerationStructure)encodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetRayIndexBufferRayIndexBufferOffsetIntersectionBufferIntersectionBufferOffsetRayIndexCountAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, rayIndexBuffer: SDKHandle, rayIndexBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayIndexCount: number, accelerationStructure: MPSAccelerationStructure): voidSwift declarationfunc encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayBuffer: any MTLBuffer, rayBufferOffset: Int, rayIndexBuffer: any MTLBuffer, rayIndexBufferOffset: Int, intersectionBuffer: any MTLBuffer, intersectionBufferOffset: Int, rayIndexCount: Int, accelerationStructure: MPSAccelerationStructure)encodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetRayIndexBufferRayIndexBufferOffsetIntersectionBufferIntersectionBufferOffsetRayIndexCountBufferRayIndexCountBufferOffsetAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, rayIndexBuffer: SDKHandle, rayIndexBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayIndexCountBuffer: SDKHandle, rayIndexCountBufferOffset: number, accelerationStructure: MPSAccelerationStructure): voidSwift declarationfunc encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayBuffer: any MTLBuffer, rayBufferOffset: Int, rayIndexBuffer: any MTLBuffer, rayIndexBufferOffset: Int, intersectionBuffer: any MTLBuffer, intersectionBufferOffset: Int, rayIndexCountBuffer: any MTLBuffer, rayIndexCountBufferOffset: Int, accelerationStructure: MPSAccelerationStructure)encodeIntersectionCommandBufferIntersectionTypeRayTextureIntersectionTextureAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayTexture: SDKHandle, intersectionTexture: SDKHandle, accelerationStructure: MPSAccelerationStructure): voidSwift declarationfunc encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayTexture: any MTLTexture, intersectionTexture: any MTLTexture, accelerationStructure: MPSAccelerationStructure)encode(coder: _Foundation_NSCoder): voidSwift declarationfunc encode(with coder: NSCoder)static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSRayIntersector) | nullSwift declarationinit?(coder aDecoder: NSCoder, device: any MTLDevice)static initDevice(device: SDKHandle): MPSRayIntersectorSwift declarationinit(device: any MTLDevice)recommendedMinimumRayBatchSize(rayCount: number): numberSwift declarationfunc recommendedMinimumRayBatchSize(rayCount: Int) -> Intget boundingBoxIntersectionTestType(): MPSBoundingBoxIntersectionTestTypeSwift declarationvar boundingBoxIntersectionTestType: MPSBoundingBoxIntersectionTestType { get set }set boundingBoxIntersectionTestType(value: MPSBoundingBoxIntersectionTestType)Swift declarationvar boundingBoxIntersectionTestType: MPSBoundingBoxIntersectionTestType { get set }get cullMode(): _Metal_MTLCullModeSwift declarationvar cullMode: MTLCullMode { get set }set cullMode(value: _Metal_MTLCullMode)Swift declarationvar cullMode: MTLCullMode { get set }get frontFacingWinding(): _Metal_MTLWindingSwift declarationvar frontFacingWinding: MTLWinding { get set }set frontFacingWinding(value: _Metal_MTLWinding)Swift declarationvar frontFacingWinding: MTLWinding { get set }get intersectionDataType(): MPSIntersectionDataTypeSwift declarationvar intersectionDataType: MPSIntersectionDataType { get set }set intersectionDataType(value: MPSIntersectionDataType)Swift declarationvar intersectionDataType: MPSIntersectionDataType { get set }get intersectionStride(): numberSwift declarationvar intersectionStride: Int { get set }set intersectionStride(value: number)Swift declarationvar intersectionStride: Int { get set }get rayDataType(): MPSRayDataTypeSwift declarationvar rayDataType: MPSRayDataType { get set }set rayDataType(value: MPSRayDataType)Swift declarationvar rayDataType: MPSRayDataType { get set }get rayIndexDataType(): MPSDataTypeSwift declarationvar rayIndexDataType: MPSDataType { get set }set rayIndexDataType(value: MPSDataType)Swift declarationvar rayIndexDataType: MPSDataType { get set }get rayMask(): numberSwift declarationvar rayMask: UInt32 { get set }set rayMask(value: number)Swift declarationvar rayMask: UInt32 { get set }get rayMaskOperator(): MPSRayMaskOperatorSwift declarationvar rayMaskOperator: MPSRayMaskOperator { get set }set rayMaskOperator(value: MPSRayMaskOperator)Swift declarationvar rayMaskOperator: MPSRayMaskOperator { get set }get rayMaskOptions(): MPSRayMaskOptionsSwift declarationvar rayMaskOptions: MPSRayMaskOptions { get set }set rayMaskOptions(value: MPSRayMaskOptions)Swift declarationvar rayMaskOptions: MPSRayMaskOptions { get set }get rayStride(): numberSwift declarationvar rayStride: Int { get set }set rayStride(value: number)Swift declarationvar rayStride: Int { get set }get triangleIntersectionTestType(): MPSTriangleIntersectionTestTypeSwift declarationvar triangleIntersectionTestType: MPSTriangleIntersectionTestType { get set }set triangleIntersectionTestType(value: MPSTriangleIntersectionTestType)Swift declarationvar triangleIntersectionTestType: MPSTriangleIntersectionTestType { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSRayIntersector.init()
inherited init: cannot prove legal (class declares 1 custom initializer)