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