PrtBuffer.LockBufferSingleArray Method

Language:

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

Definition

Visual Basic Public Function LockBufferSingleArray( _
    ByVal start As Integer, _
    ByVal numberSamples As Integer _
) As Single()
C# public float[] LockBufferSingleArray(
    int start,
    int numberSamples
);
C++ public:
array<float>^ LockBufferSingleArray(
    int start,
    int numberSamples
);
JScript public function LockBufferSingleArray(
    start : int,
    numberSamples : int
) : float[];

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

System.Single[]
Returns a floating-point array 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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

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