SCNGeometrySource.FromMetalBuffer 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FromMetalBuffer(IMTLBuffer, MTLVertexFormat, NSString, nint, nint, nint)
工厂方法,用于从数据缓冲区创建新的 SCNGeometrySource 。
[Foundation.Export("geometrySourceWithBuffer:vertexFormat:semantic:vertexCount:dataOffset:dataStride:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static SceneKit.SCNGeometrySource FromMetalBuffer (Metal.IMTLBuffer mtlBuffer, Metal.MTLVertexFormat vertexFormat, Foundation.NSString geometrySourceSemantic, nint vertexCount, nint offset, nint stride);
static member FromMetalBuffer : Metal.IMTLBuffer * Metal.MTLVertexFormat * Foundation.NSString * nint * nint * nint -> SceneKit.SCNGeometrySource
参数
- mtlBuffer
- IMTLBuffer
- vertexFormat
- MTLVertexFormat
- geometrySourceSemantic
- NSString
- vertexCount
- System.System.IntPtr System.nativeint
- offset
- System.System.IntPtr System.nativeint
- stride
- System.System.IntPtr System.nativeint
返回
- 属性
适用于
FromMetalBuffer(IMTLBuffer, MTLVertexFormat, SCNGeometrySourceSemantics, nint, nint, nint)
工厂方法,用于从数据缓冲区创建新的 SCNGeometrySource 。
public static SceneKit.SCNGeometrySource FromMetalBuffer (Metal.IMTLBuffer mtlBuffer, Metal.MTLVertexFormat vertexFormat, SceneKit.SCNGeometrySourceSemantics semantic, nint vertexCount, nint offset, nint stride);
static member FromMetalBuffer : Metal.IMTLBuffer * Metal.MTLVertexFormat * SceneKit.SCNGeometrySourceSemantics * nint * nint * nint -> SceneKit.SCNGeometrySource
参数
- mtlBuffer
- IMTLBuffer
- vertexFormat
- MTLVertexFormat
- semantic
- SCNGeometrySourceSemantics
- vertexCount
- System.System.IntPtr System.nativeint
- offset
- System.System.IntPtr System.nativeint
- stride
- System.System.IntPtr System.nativeint