SceneKit · IOS API REFERENCE
SCNGeometrySource
class · SDK 27.1
class SCNGeometrySource
Members (13)
init · iOS 9.0+init
TypeScriptstatic initBufferVertexFormatSemanticVertexCountDataOffsetDataStride(buffer: SDKHandle, vertexFormat: _Metal_MTLVertexFormat, semantic: SCNGeometrySource_Semantic, vertexCount: number, offset: number, stride: number): SCNGeometrySource
Swift declarationconvenience init(buffer: any MTLBuffer, vertexFormat: MTLVertexFormat, semantic: SCNGeometrySource.Semantic, vertexCount: Int, dataOffset offset: Int, dataStride stride: Int)
initinit
TypeScriptstatic initDataSemanticVectorCountUsesFloatComponentsComponentsPerVectorBytesPerComponentDataOffsetDataStride(data: ArrayBuffer, semantic: SCNGeometrySource_Semantic, vectorCount: number, floatComponents: boolean, componentsPerVector: number, bytesPerComponent: number, offset: number, stride: number): SCNGeometrySource
Swift declarationconvenience init(data: Data, semantic: SCNGeometrySource.Semantic, vectorCount: Int, usesFloatComponents floatComponents: Bool, componentsPerVector: Int, bytesPerComponent: Int, dataOffset offset: Int, dataStride stride: Int)
getbytesPerComponent
TypeScriptget bytesPerComponent(): number
Swift declarationvar bytesPerComponent: Int { get }
getcomponentsPerVector
TypeScriptget componentsPerVector(): number
Swift declarationvar componentsPerVector: Int { get }
getdata
TypeScriptget data(): ArrayBuffer
Swift declarationvar data: Data { get }
getdataOffset
TypeScriptget dataOffset(): number
Swift declarationvar dataOffset: Int { get }
getdataStride
TypeScriptget dataStride(): number
Swift declarationvar dataStride: Int { get }
getusesFloatComponents
TypeScriptget usesFloatComponents(): boolean
Swift declarationvar usesFloatComponents: Bool { get }
getsemantic
TypeScriptget semantic(): SCNGeometrySource_Semantic
Swift declarationvar semantic: SCNGeometrySource.Semantic { get }
getvectorCount
TypeScriptget vectorCount(): number
Swift declarationvar vectorCount: Int { get }
init · iOS 8.0+init
TypeScriptstatic initTextureCoordinates(textureCoordinates: Array<{ x: number; y: number }>): SCNGeometrySource
Swift declaration@nonobjc convenience init(textureCoordinates: [CGPoint])
init · iOS 8.0+init
TypeScriptstatic initNormals(normals: Array<SCNVector3>): SCNGeometrySource
Swift declaration@nonobjc convenience init(normals: [SCNVector3])
init · iOS 8.0+init
TypeScriptstatic initVertices(vertices: Array<SCNVector3>): SCNGeometrySource
Swift declaration@nonobjc convenience init(vertices: [SCNVector3])
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
SCNGeometrySource.init()
inherited init: cannot prove legal (class declares 6 custom initializers)
All SceneKit types →