Set a contiguous range of shader constants with a memory copy.
HRESULT SetRawValue( D3DXHANDLE Handle, void * pData, DWORD OffsetInBytes, DWORD Bytes );
If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following:E_INVALIDCALL.
SetRawValue is a very fast way to set effect constants since it performs a memory copy without performing validation or any data conversion (like converting a row-major matrix to a column-major matrix). Use SetRawValue to set a series of contiguous effect constants. For instance, you could set an array of twenty matrices with 20 calls to ID3DXBaseEffect::SetMatrix or by using a single SetRawValue.
All values are expected to be either matrix4x4s or float4s and all matrices are expected to be in column-major order. Int or float values are cast into a float4; therefore, it is highly recommended that you use SetRawValue with only float4 or matrix4x4 data.
Header: Declared in D3dx9effect.h.