SCNGeometrySource.FromMetalBuffer 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 |
|---|---|
| FromMetalBuffer(IMTLBuffer, MTLVertexFormat, NSString, IntPtr, IntPtr, IntPtr) |
Factory method to create a new SCNGeometrySource from a data buffer. |
| FromMetalBuffer(IMTLBuffer, MTLVertexFormat, SCNGeometrySourceSemantics, IntPtr, IntPtr, IntPtr) |
Factory method to create a new SCNGeometrySource from a Metal buffer. |
FromMetalBuffer(IMTLBuffer, MTLVertexFormat, NSString, IntPtr, IntPtr, IntPtr)
Factory method to create a new SCNGeometrySource from a data buffer.
[Foundation.Export("geometrySourceWithBuffer:vertexFormat:semantic:vertexCount:dataOffset:dataStride:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SceneKit.SCNGeometrySource FromMetalBuffer(Metal.IMTLBuffer mtlBuffer, Metal.MTLVertexFormat vertexFormat, Foundation.NSString geometrySourceSemantic, IntPtr vertexCount, IntPtr offset, IntPtr stride);
[<Foundation.Export("geometrySourceWithBuffer:vertexFormat:semantic:vertexCount:dataOffset:dataStride:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromMetalBuffer : Metal.IMTLBuffer * Metal.MTLVertexFormat * Foundation.NSString * nativeint * nativeint * nativeint -> SceneKit.SCNGeometrySource
Parameters
- mtlBuffer
- IMTLBuffer
- vertexFormat
- MTLVertexFormat
- geometrySourceSemantic
- NSString
- vertexCount
-
IntPtr
nativeint
- offset
-
IntPtr
nativeint
- stride
-
IntPtr
nativeint
Returns
- Attributes
Applies to
FromMetalBuffer(IMTLBuffer, MTLVertexFormat, SCNGeometrySourceSemantics, IntPtr, IntPtr, IntPtr)
Factory method to create a new SCNGeometrySource from a Metal buffer.
public static SceneKit.SCNGeometrySource FromMetalBuffer(Metal.IMTLBuffer mtlBuffer, Metal.MTLVertexFormat vertexFormat, SceneKit.SCNGeometrySourceSemantics semantic, IntPtr vertexCount, IntPtr offset, IntPtr stride);
static member FromMetalBuffer : Metal.IMTLBuffer * Metal.MTLVertexFormat * SceneKit.SCNGeometrySourceSemantics * nativeint * nativeint * nativeint -> SceneKit.SCNGeometrySource
Parameters
- mtlBuffer
- IMTLBuffer
The Metal buffer containing the vertex data.
- vertexFormat
- MTLVertexFormat
The vertex format describing the data layout.
- semantic
- SCNGeometrySourceSemantics
The semantic type of the geometry source data.
- vertexCount
-
IntPtr
nativeint
The number of vertices in the buffer.
- offset
-
IntPtr
nativeint
The offset, in bytes, to the first vertex in the buffer.
- stride
-
IntPtr
nativeint
The number of bytes between vertices in the buffer.