Defines properties for modifying render state of a IShaderTechnique.
interface
|
IRenderState
|
base of
|
IShaderTechnique
|
Render state is always reset to the technique defaults when BeginPass is called. This means that modifying render state outside of BeginPass/EndPass will have no effect.
Manually enables or disables alpha-to-coverage, if supported.
method
|
AlphaToCoverage
(bool value)
|
||
type
|
bool
|
||
params
|
value
|
true
to
enable
alpha-to-coverage,
false
to
disable
it.
|
|
returns
|
true
if
alpha-to-coverage
has
been
enabled,
false
in
one
of
these
cases:
|
Remarks:
If a render API does not support setting the alpha-to-coverage state in the shader effect source, this method can be used to enable it from code.
See also:
IShaderTechnique.BeginPassThe cull mode to use for rendering primitives.
method
|
CullMode
(int32 mode)
|
||
params
|
mode
|
The
cull
mode:
<
0 :
invert
cull
mode
of
technique.
>
0 :
keep
cull
mode
of
technique.
=
0 :
disable
culling.
|
See also:
IShaderTechnique.BeginPass