IMDLMeshBuffer Interface
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.
This interface represents the Objective-C protocol MDLMeshBuffer.
[Foundation.Protocol(Name="MDLMeshBuffer", WrapperType=typeof(ModelIO.MDLMeshBufferWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="FillData", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSData), typeof(System.UIntPtr) }, Selector="fillData:offset:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="map", IsProperty=true, IsRequired=true, IsStatic=false, Name="Map", PropertyType=typeof(ModelIO.MDLMeshBufferMap), Selector="map")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="length", IsProperty=true, IsRequired=true, IsStatic=false, Name="Length", PropertyType=typeof(System.UIntPtr), Selector="length")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="allocator", IsProperty=true, IsRequired=true, IsStatic=false, Name="Allocator", PropertyType=typeof(ModelIO.IMDLMeshBufferAllocator), Selector="allocator")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="zone", IsProperty=true, IsRequired=true, IsStatic=false, Name="Zone", PropertyType=typeof(ModelIO.IMDLMeshBufferZone), Selector="zone")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="type", IsProperty=true, IsRequired=true, IsStatic=false, Name="Type", PropertyType=typeof(ModelIO.MDLMeshBufferType), Selector="type")]
public interface IMDLMeshBuffer : Foundation.INSCopying, IDisposable
[<Foundation.Protocol(Name="MDLMeshBuffer", WrapperType=typeof(ModelIO.MDLMeshBufferWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="FillData", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Foundation.NSData), typeof(System.UIntPtr) }, Selector="fillData:offset:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="map", IsProperty=true, IsRequired=true, IsStatic=false, Name="Map", PropertyType=typeof(ModelIO.MDLMeshBufferMap), Selector="map")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="length", IsProperty=true, IsRequired=true, IsStatic=false, Name="Length", PropertyType=typeof(System.UIntPtr), Selector="length")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="allocator", IsProperty=true, IsRequired=true, IsStatic=false, Name="Allocator", PropertyType=typeof(ModelIO.IMDLMeshBufferAllocator), Selector="allocator")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.Strong, GetterSelector="zone", IsProperty=true, IsRequired=true, IsStatic=false, Name="Zone", PropertyType=typeof(ModelIO.IMDLMeshBufferZone), Selector="zone")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="type", IsProperty=true, IsRequired=true, IsStatic=false, Name="Type", PropertyType=typeof(ModelIO.MDLMeshBufferType), Selector="type")>]
type IMDLMeshBuffer = interface
interface INativeObject
interface IDisposable
interface INSCopying
- Derived
- Attributes
- Implements
Remarks
A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.
A class may also implement members from this interface to implement members from the protocol.
Properties
| Name | Description |
|---|---|
| Allocator |
Gets the allocator that is used to allocate memory for the mesh buffer. |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
| Length |
Gets the length of the buffer, in bytes. |
| Map |
Gets a mesh buffer map that provides read-only access to the data in the buffer. |
| Type |
Gets a value that indicates whether the buffer contains indices or vertices. |
| Zone |
Gets the memory pool that the buffer occupies. |
Methods
| Name | Description |
|---|---|
| Copy(NSZone) |
Performs a copy of the underlying Objective-C object. (Inherited from INSCopying) |
| FillData(NSData, UIntPtr) |
Writes |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |