ID3DXBaseEffect::GetValue

Get the value of an arbitrary parameter or annotation, including simple types, structs, arrays, strings, shaders and textures. This method can be used in place of nearly all the Getxxx calls in ID3DXBaseEffect.

HRESULT GetValue(
  D3DXHANDLE hParameter,
  D3DXHANDLE hParameter,
  LPVOID pData,
  UINT Bytes
);

Parameters

hParameter
[in] Unique identifier. See Handles.
hParameter
[in] Unique identifier. See Handles.
pData
[out] Returns a buffer containing the value.
Bytes
[in] [in] Number of bytes in the buffer. Pass in D3DX_DEFAULT if you know your buffer is large enough to contain the entire parameter, and you want to skip size validation.

Return Values

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Requirements

Header: Declared in D3dx9shader.h.

See Also

ID3DXBaseEffect::SetValue