Share via


SCNGeometrySource.FromMetalBuffer Method

Definition

Overloads

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 data 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
vertexFormat
MTLVertexFormat
vertexCount
IntPtr

nativeint

offset
IntPtr

nativeint

stride
IntPtr

nativeint

Returns

Applies to