One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSRayIntersector

class · iOS 12.0+ · Deprecated in iOS 17.0 · SDK 27.1

class MPSRayIntersector

Members (34)

method · iOS 12.0+ · Deprecated in iOS 17.0

copy

TypeScript
copy(device?: (SDKHandle) | null): MPSRayIntersector
Swift declaration
func copy(with zone: NSZone? = nil, device: (any MTLDevice)?) -> Self
method · iOS 12.0+ · Deprecated in iOS 17.0

encodeIntersection

TypeScript
encodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetIntersectionBufferIntersectionBufferOffsetRayCountAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayCount: number, accelerationStructure: MPSAccelerationStructure): void
Swift declaration
func encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayBuffer: any MTLBuffer, rayBufferOffset: Int, intersectionBuffer: any MTLBuffer, intersectionBufferOffset: Int, rayCount: Int, accelerationStructure: MPSAccelerationStructure)
method · iOS 12.0+ · Deprecated in iOS 17.0

encodeIntersection

TypeScript
encodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetIntersectionBufferIntersectionBufferOffsetRayCountBufferRayCountBufferOffsetAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayCountBuffer: SDKHandle, rayCountBufferOffset: number, accelerationStructure: MPSAccelerationStructure): void
Swift declaration
func encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayBuffer: any MTLBuffer, rayBufferOffset: Int, intersectionBuffer: any MTLBuffer, intersectionBufferOffset: Int, rayCountBuffer: any MTLBuffer, rayCountBufferOffset: Int, accelerationStructure: MPSAccelerationStructure)
method · iOS 13.0+ · Deprecated in iOS 17.0

encodeIntersection

TypeScript
encodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetRayIndexBufferRayIndexBufferOffsetIntersectionBufferIntersectionBufferOffsetRayIndexCountAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, rayIndexBuffer: SDKHandle, rayIndexBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayIndexCount: number, accelerationStructure: MPSAccelerationStructure): void
Swift declaration
func 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)
method · iOS 13.0+ · Deprecated in iOS 17.0

encodeIntersection

TypeScript
encodeIntersectionCommandBufferIntersectionTypeRayBufferRayBufferOffsetRayIndexBufferRayIndexBufferOffsetIntersectionBufferIntersectionBufferOffsetRayIndexCountBufferRayIndexCountBufferOffsetAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayBuffer: SDKHandle, rayBufferOffset: number, rayIndexBuffer: SDKHandle, rayIndexBufferOffset: number, intersectionBuffer: SDKHandle, intersectionBufferOffset: number, rayIndexCountBuffer: SDKHandle, rayIndexCountBufferOffset: number, accelerationStructure: MPSAccelerationStructure): void
Swift declaration
func 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)
method · iOS 13.0+ · Deprecated in iOS 17.0

encodeIntersection

TypeScript
encodeIntersectionCommandBufferIntersectionTypeRayTextureIntersectionTextureAccelerationStructure(commandBuffer: SDKHandle, intersectionType: MPSIntersectionType, rayTexture: SDKHandle, intersectionTexture: SDKHandle, accelerationStructure: MPSAccelerationStructure): void
Swift declaration
func encodeIntersection(commandBuffer: any MTLCommandBuffer, intersectionType: MPSIntersectionType, rayTexture: any MTLTexture, intersectionTexture: any MTLTexture, accelerationStructure: MPSAccelerationStructure)
method · iOS 12.0+ · Deprecated in iOS 17.0

encode

TypeScript
encode(coder: _Foundation_NSCoder): void
Swift declaration
func encode(with coder: NSCoder)
init · iOS 12.0+ · Deprecated in iOS 17.0

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSRayIntersector) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 12.0+ · Deprecated in iOS 17.0

init

TypeScript
static initDevice(device: SDKHandle): MPSRayIntersector
Swift declaration
init(device: any MTLDevice)
method · iOS 12.0+ · Deprecated in iOS 17.0

recommendedMinimumRayBatchSize

TypeScript
recommendedMinimumRayBatchSize(rayCount: number): number
Swift declaration
func recommendedMinimumRayBatchSize(rayCount: Int) -> Int
get · iOS 12.0+ · Deprecated in iOS 17.0

boundingBoxIntersectionTestType

TypeScript
get boundingBoxIntersectionTestType(): MPSBoundingBoxIntersectionTestType
Swift declaration
var boundingBoxIntersectionTestType: MPSBoundingBoxIntersectionTestType { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

boundingBoxIntersectionTestType

TypeScript
set boundingBoxIntersectionTestType(value: MPSBoundingBoxIntersectionTestType)
Swift declaration
var boundingBoxIntersectionTestType: MPSBoundingBoxIntersectionTestType { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

cullMode

TypeScript
get cullMode(): _Metal_MTLCullMode
Swift declaration
var cullMode: MTLCullMode { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

cullMode

TypeScript
set cullMode(value: _Metal_MTLCullMode)
Swift declaration
var cullMode: MTLCullMode { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

frontFacingWinding

TypeScript
get frontFacingWinding(): _Metal_MTLWinding
Swift declaration
var frontFacingWinding: MTLWinding { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

frontFacingWinding

TypeScript
set frontFacingWinding(value: _Metal_MTLWinding)
Swift declaration
var frontFacingWinding: MTLWinding { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

intersectionDataType

TypeScript
get intersectionDataType(): MPSIntersectionDataType
Swift declaration
var intersectionDataType: MPSIntersectionDataType { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

intersectionDataType

TypeScript
set intersectionDataType(value: MPSIntersectionDataType)
Swift declaration
var intersectionDataType: MPSIntersectionDataType { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

intersectionStride

TypeScript
get intersectionStride(): number
Swift declaration
var intersectionStride: Int { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

intersectionStride

TypeScript
set intersectionStride(value: number)
Swift declaration
var intersectionStride: Int { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

rayDataType

TypeScript
get rayDataType(): MPSRayDataType
Swift declaration
var rayDataType: MPSRayDataType { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

rayDataType

TypeScript
set rayDataType(value: MPSRayDataType)
Swift declaration
var rayDataType: MPSRayDataType { get set }
get · iOS 13.0+ · Deprecated in iOS 17.0

rayIndexDataType

TypeScript
get rayIndexDataType(): MPSDataType
Swift declaration
var rayIndexDataType: MPSDataType { get set }
set · iOS 13.0+ · Deprecated in iOS 17.0

rayIndexDataType

TypeScript
set rayIndexDataType(value: MPSDataType)
Swift declaration
var rayIndexDataType: MPSDataType { get set }
get · iOS 13.0+ · Deprecated in iOS 17.0

rayMask

TypeScript
get rayMask(): number
Swift declaration
var rayMask: UInt32 { get set }
set · iOS 13.0+ · Deprecated in iOS 17.0

rayMask

TypeScript
set rayMask(value: number)
Swift declaration
var rayMask: UInt32 { get set }
get · iOS 13.0+ · Deprecated in iOS 17.0

rayMaskOperator

TypeScript
get rayMaskOperator(): MPSRayMaskOperator
Swift declaration
var rayMaskOperator: MPSRayMaskOperator { get set }
set · iOS 13.0+ · Deprecated in iOS 17.0

rayMaskOperator

TypeScript
set rayMaskOperator(value: MPSRayMaskOperator)
Swift declaration
var rayMaskOperator: MPSRayMaskOperator { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

rayMaskOptions

TypeScript
get rayMaskOptions(): MPSRayMaskOptions
Swift declaration
var rayMaskOptions: MPSRayMaskOptions { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

rayMaskOptions

TypeScript
set rayMaskOptions(value: MPSRayMaskOptions)
Swift declaration
var rayMaskOptions: MPSRayMaskOptions { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

rayStride

TypeScript
get rayStride(): number
Swift declaration
var rayStride: Int { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

rayStride

TypeScript
set rayStride(value: number)
Swift declaration
var rayStride: Int { get set }
get · iOS 12.0+ · Deprecated in iOS 17.0

triangleIntersectionTestType

TypeScript
get triangleIntersectionTestType(): MPSTriangleIntersectionTestType
Swift declaration
var triangleIntersectionTestType: MPSTriangleIntersectionTestType { get set }
set · iOS 12.0+ · Deprecated in iOS 17.0

triangleIntersectionTestType

TypeScript
set triangleIntersectionTestType(value: MPSTriangleIntersectionTestType)
Swift declaration
var triangleIntersectionTestType: MPSTriangleIntersectionTestType { get set }

Skipped declarations

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)

All MetalPerformanceShaders types →