PrtBuffer.LockBuffer(Int32,Int32) Method (Microsoft.DirectX.Direct3D)
Locks a range of vertex or texel sample data and returns a GraphicsStream object containing the locked buffer memory.
Definition
Visual Basic Public Function LockBuffer( _
ByVal start As Integer, _
ByVal numberSamples As Integer _
) As GraphicsStreamC# public GraphicsStream LockBuffer(
int start,
int numberSamples
);C++ public:
GraphicsStream^ LockBuffer(
int start,
int numberSamples
);JScript 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
The method call is invalid. For example, a method's parameter might contain an invalid value.
Microsoft Direct3D could not allocate sufficient memory to complete the call.