Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the VertexBuffer class.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)
'Declaration
Public Sub New ( _
device As Device, _
sizeOfBufferInBytes As Integer, _
usage As Usage, _
vertexFormat As VertexFormats, _
pool As Pool _
)
'Usage
Dim device As Device
Dim sizeOfBufferInBytes As Integer
Dim usage As Usage
Dim vertexFormat As VertexFormats
Dim pool As Pool
Dim instance As New VertexBuffer(device, _
sizeOfBufferInBytes, usage, vertexFormat, _
pool)
public VertexBuffer(
Device device,
int sizeOfBufferInBytes,
Usage usage,
VertexFormats vertexFormat,
Pool pool
)
public:
VertexBuffer(
Device^ device,
int sizeOfBufferInBytes,
Usage usage,
VertexFormats vertexFormat,
Pool pool
)
new :
device:Device *
sizeOfBufferInBytes:int *
usage:Usage *
vertexFormat:VertexFormats *
pool:Pool -> VertexBuffer
| Exception | Condition |
|---|---|
| InvalidCallException | The method call is invalid. For example, a method's parameter may contain an invalid value. |
| OutOfMemoryException | Direct3D could not allocate sufficient memory to complete the call. |
A Device supports rendering of primitives using vertex data stored in vertex buffer objects. Vertex buffers are created from a Device, and can only be used with the Device from which they were created.
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Supported in: 3.5, 2.0
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in