Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Set the value of an arbitrary parameter or annotation, including simple types, structs, arrays, strings, shaders and textures.
Syntax
HRESULT SetValue(
[in] D3DXHANDLE hParameter,
[in] LPCVOID pData,
[in] UINT Bytes
);
Parameters
-
hParameter [in]
-
Type: D3DXHANDLE
Unique identifier. See Handles (Direct3D 9).
-
pData [in]
-
Type: LPCVOID
Pointer to a buffer containing data.
-
Bytes [in]
-
Type: UINT
[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 value
Type: HRESULT
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.
Remarks
This method can be used in place of nearly all the effect set API calls.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also