ID3DXPRTBuffer::LockBuffer method

Locks a range of vertex or texel sample data and obtains a pointer to the location in buffer memory.

Syntax

HRESULT LockBuffer(
  [in]  UINT  Start,
  [in]  UINT  NumSamples,
  [out] FLOAT **ppData
);

Parameters

Start [in]

Type: UINT

Index of the sample of vertex or texel data.

NumSamples [in]

Type: UINT

Number of vertices (or texels) sampled.

ppData [out]

Type: FLOAT**

Pointer to the location in memory where the Start sample begins. The memory layout of the buffer data is:

float fData[NumberSamples][NumberChannels][NumberCoefficients]      

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned:

Remarks

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXPRTBuffer

ID3DXPRTBuffer::GetNumChannels

ID3DXPRTBuffer::GetNumCoeffs

ID3DXPRTBuffer::GetNumSamples