Base interface for classes that encapsulate a GPU shader effect.
interface
|
IShaderEffect
|
extends
|
IDisposable
|
||
base of
|
ShaderEffect
|
Returns the lifecycle state of this object.
property
|
LifecycleState
{
get
}
|
||
type
|
LifecycleState
|
||
value
|
The lifecycle state. | ||
inherited
|
ILifecycleState.LifecycleState
|
The name of this shader effect.
property
|
Name
{
get
}
|
||
type
|
string
|
||
value
|
|
The effect name. |
Returns the names of all shader effect parameters.
property
|
ParameterNames
{
get
}
|
||
type
|
string[]
|
||
value
|
|
The list of shader effect parameter names. |
See also:
ParameterReturns the names of all shader effect techniques.
property
|
TechniqueNames
{
get
}
|
||
type
|
string[]
|
||
value
|
|
The list of shader effect technique names. |
See also:
TechniqueAcquires a strong reference to this disposable object.
[OwnerReturn, ThreadSafe]
|
||||
method
|
AcquireTry
()
|
|||
type
|
IDisposable
|
|||
returns
|
this
if
a
new
strong
reference
has
been
acquired,
null
if
this
object
is
already
being
disposed.
|
|||
inherited
|
IDisposable.AcquireTry
|
Remarks:
The object will not be actually disposed by calls to Dispose when there is at least one strong reference left. Code that calls the AcquireTry method is responsible for calling the Dispose method accordingly.
This method is not intended to be used in performance-critical code. It should only be used to high-level resource management.
Applies all changes that have been made to the parameters of this shader effect during an active render pass.
method
|
ApplyChanges
()
|
Remarks:
The ApplyChanges only needs to be called between calls to BeginPass and EndPass.
Releases all resources held by this object if there are no more strong references to it, decrements the reference counter by one otherwise.
[Dispose, OwnerThis, ThreadSafe]
|
||||
method
|
Dispose
()
|
|||
inherited
|
IDisposable.Dispose
|
Remarks:
The Dispose method silently returns if the object has already been disposed.
Checks if a parameter of the given name exists.
[Pure]
|
||||
method
|
HasParameter
(string name)
|
|||
type
|
bool
|
|||
params
|
name
|
[not-empty]
|
The shader effect parameter name. | |
returns
|
true
if
the
parameter
exists,
false
if
not. |
Checks if a technique of the given name exists.
[Pure]
|
||||
method
|
HasTechnique
(string name)
|
|||
type
|
bool
|
|||
params
|
name
|
[not-empty]
|
The shader effect technique name. | |
returns
|
true
if
the
parameter
exists,
false
if
not. |
Returns a parameter of this shader effect by its name.
[Pure]
|
||||
method
|
Parameter
(string name)
|
|||
type
|
IShaderParameter
|
|||
params
|
name
|
[not-empty]
|
The shader effect parameter name. | |
returns
|
|
The shader parameter. |
See also:
HasParameterExceptions:
Returns the index of the given rendering technique.
[Pure]
|
||||
method
|
Technique
(string name)
|
|||
type
|
IShaderTechnique
|
|||
params
|
name
|
[not-empty]
|
Name of rendering technique. | |
returns
|
|
The render technique index. |
See also:
HasTechniqueExceptions: