Microsoft DirectX 9.0 SDK Update (October 2004)

PrtBuffer.LockBuffer Method

Language:

Note: This documentation is preliminary and is subject to change.

Locks a range of vertex or texel sample data and returns a GraphicsStream object containing the locked buffer memory.

Definition

Visual Basic .NET Public Function LockBuffer( _
    ByVal start As Integer, _
    ByVal numberSamples As Integer _
) As GraphicsStream
C# public GraphicsStream LockBuffer(
    int start,
    int numberSamples
);
Managed C++ public: GraphicsStream* LockBuffer(
    int start,
    int numberSamples
);
JScript .NET public function LockBuffer(
    start : int,
    numberSamples : int
) : GraphicsStream;

Parameters

start System.Int32. Starting index of the sample of vertex or texel data.
numberSamples System.Int32. Number of vertices (or texels) sampled.

Return Value

Microsoft.DirectX.GraphicsStream . Returns a GraphicsStream object containing the locked buffer memory.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center