SCNGeometrySource.FromData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FromData(NSData, NSString, IntPtr, Boolean, IntPtr, IntPtr, IntPtr, IntPtr) | |
| FromData(NSData, SCNGeometrySourceSemantics, IntPtr, Boolean, IntPtr, IntPtr, IntPtr, IntPtr) |
Creates a geometry source from raw data with the specified layout. |
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.