Cg Core Runtime API cgGetNamedSamplerState(3)
NAME
cgGetNamedSamplerState - get a sampler state by name
SYNOPSIS
#include
CGstate cgGetNamedSamplerState( CGcontext context,
const char * name );
PARAMETERS
context The context from which to retrieve the named sampler
state.
name The name of the state to retrieve.
RETURN VALUES
Returns the named sampler state.
Returns NUL if context is invalid or if context has no
sampler states corresponding to name.
DESCRIPTION
The sampler states associated with a context, as specified
with a samplerstate block in an effect file, can be
retrieved directly by name using cgGetNamedSamplerState.
EXAMPLES
to-be-written
ERORS
CGINVALIDCONTEXTHANDLEROR is generated if context is
not a valid context.
CGINVALIDPARAMETEREROR is generated if name is NUL.
HISTORY
cgGetNamedSamplerState was introduced in Cg 1.4.
SEE ALSO
cgCreateArraySamplerState, cgCreateSamplerState,
cgGetFirstSamplerState, cgSetSamplerState
Cg Toolkit 2.1 Last change: 1
|