Language

SCNGeometrySource.FromData Method

Definition

Overloads

FromData(NSData, NSString, IntPtr, Boolean, IntPtr, IntPtr, IntPtr, IntPtr)

[Foundation.Export("geometrySourceWithData:semantic:vectorCount:floatComponents:componentsPerVector:bytesPerComponent:dataOffset:dataStride:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SceneKit.SCNGeometrySource FromData(Foundation.NSData data, Foundation.NSString geometrySourceSemantic, IntPtr vectorCount, bool floatComponents, IntPtr componentsPerVector, IntPtr bytesPerComponent, IntPtr offset, IntPtr stride);
[<Foundation.Export("geometrySourceWithData:semantic:vectorCount:floatComponents:componentsPerVector:bytesPerComponent:dataOffset:dataStride:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromData : Foundation.NSData * Foundation.NSString * nativeint * bool * nativeint * nativeint * nativeint * nativeint -> SceneKit.SCNGeometrySource

Parameters

data
NSData
geometrySourceSemantic
NSString
vectorCount
IntPtr

nativeint

floatComponents
Boolean
componentsPerVector
IntPtr

nativeint

bytesPerComponent
IntPtr

nativeint

offset
IntPtr

nativeint

stride
IntPtr

nativeint

Returns

Attributes

Applies to

FromData(NSData, SCNGeometrySourceSemantics, IntPtr, Boolean, IntPtr, IntPtr, IntPtr, IntPtr)

Creates a geometry source from raw data with the specified layout.

public static SceneKit.SCNGeometrySource FromData(Foundation.NSData data, SceneKit.SCNGeometrySourceSemantics semantic, IntPtr vectorCount, bool floatComponents, IntPtr componentsPerVector, IntPtr bytesPerComponent, IntPtr offset, IntPtr stride);
static member FromData : Foundation.NSData * SceneKit.SCNGeometrySourceSemantics * nativeint * bool * nativeint * nativeint * nativeint * nativeint -> SceneKit.SCNGeometrySource

Parameters

data
NSData

The data buffer containing the geometry source values.

semantic
SCNGeometrySourceSemantics

The semantic type of the geometry source data.

vectorCount
IntPtr

nativeint

The number of vectors in the data.

floatComponents
Boolean

Whether the component values are floating-point.

componentsPerVector
IntPtr

nativeint

The number of scalar components in each vector.

bytesPerComponent
IntPtr

nativeint

The size, in bytes, of each component.

offset
IntPtr

nativeint

The offset, in bytes, from the beginning of the data to the first vector.

stride
IntPtr

nativeint

The number of bytes between vectors in the data.

Returns

Applies to