Name
cgD3D10SetSamplerStateParameter - Sets a sampler state object to a Cg sampler parameter.
Synopsis
#include <Cg/cgD3D10.h>
void cgD3D10SetSamplerStateParameter( CGparameter param,
ID3D10SamplerState * samplerState );
Parameters
- param
-
The sampler parameter whose state is to be set.
- samplerState
-
The D3D sampler state to set.
Return Values
None.
Description
cgD3D10SetSamplerStateParameter sets the sampler state associated with a sampler parameter.
NULL means default sampler state.
Examples
ID3D10SamplerState * sstate = NULL;
Device->CreateSamplerState( &samplerDesc, &sstate );
cgD3D10SetSamplerStateParameter( myCgSamplerParam, sstate );
Errors
CG_INVALID_PARAMETER_ERROR is generated if param is invalid.
History
cgD3D10SetSamplerStateParameter was introduced in Cg 2.1.
See Also
cgD3D10SetTextureSamplerStateParameter
|