IMDLMeshBufferAllocator.CreateBuffer 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
| CreateBuffer(NSData, MDLMeshBufferType) | Creates a new buffer from the specified data, of the specified type, in the default zone of the implementor. | 
| CreateBuffer(nuint, MDLMeshBufferType) | |
| CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType) | Creates a new buffer from the specified data, of the specified type, in the specified zone. | 
| CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType) | 
CreateBuffer(NSData, MDLMeshBufferType)
Creates a new buffer from the specified data, of the specified type, in the default zone of the implementor.
[Foundation.Export("newBufferWithData:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer(Foundation.NSData data, ModelIO.MDLMeshBufferType type);abstract member CreateBuffer : Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBufferParameters
- data
- NSData
- type
- MDLMeshBufferType
Returns
- Attributes
Applies to
CreateBuffer(nuint, MDLMeshBufferType)
[Foundation.Export("newBuffer:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer(nuint length, ModelIO.MDLMeshBufferType type);abstract member CreateBuffer : nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBufferParameters
- length
- System.System.UIntPtr System.unativeint
- type
- MDLMeshBufferType
Returns
- Attributes
Applies to
CreateBuffer(IMDLMeshBufferZone, NSData, MDLMeshBufferType)
Creates a new buffer from the specified data, of the specified type, in the specified zone.
[Foundation.Export("newBufferFromZone:data:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer(ModelIO.IMDLMeshBufferZone zone, Foundation.NSData data, ModelIO.MDLMeshBufferType type);abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * Foundation.NSData * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBufferParameters
- zone
- IMDLMeshBufferZone
- data
- NSData
- type
- MDLMeshBufferType
Returns
- Attributes
Applies to
CreateBuffer(IMDLMeshBufferZone, nuint, MDLMeshBufferType)
[Foundation.Export("newBufferFromZone:length:type:")]
[Foundation.Preserve(Conditional=true)]
public ModelIO.IMDLMeshBuffer CreateBuffer(ModelIO.IMDLMeshBufferZone zone, nuint length, ModelIO.MDLMeshBufferType type);abstract member CreateBuffer : ModelIO.IMDLMeshBufferZone * nuint * ModelIO.MDLMeshBufferType -> ModelIO.IMDLMeshBufferParameters
- zone
- IMDLMeshBufferZone
- length
- System.System.UIntPtr System.unativeint
- type
- MDLMeshBufferType
Returns
- Attributes