Helper object for IGraphicsContext implementations that stores the timestamped source file list of a shader effect.
sealed class
|
ShaderEffectSourceInfo
|
extends
|
SerializableBase
|
Serialization information about this type.
public
static
readonly
field
|
SerialId
|
||
type
|
ISerialTypeInfo
|
Path to shader effect source file.
public
property
|
FilePath
{
get
}
|
||
type
|
Path
|
||
value
|
The file path. |
Length of shader effect source file, in bytes.
public
property
|
Length
{
get
}
|
||
type
|
int64
|
||
value
|
The file length. |
See also:
IFile.GetLengthReturns the serial type of this object.
public
property
|
SerialType
{
get
}
|
||
type
|
ISerialTypeInfo
|
||
value
|
|
The serial type. | |
inherited
|
SerializableBase.SerialType
|
Returns the serial data version.
public
virtual
property
|
SerialVersion
{
get
}
|
||
type
|
int32
|
||
value
|
|
The serial data version tag. | |
inherited
|
SerializableBase.SerialVersion
|
Remarks:
An ISerializable implementation is required to support all versions up to the one returned by SerialVersion.
See also:
ISerializable.SerializeTimestamp of shader effect source file.
public
property
|
Timestamp
{
get
}
|
||
type
|
int64
|
||
value
|
The file timestamp. |
See also:
IFile.GetTimestampCreates a new instance of ShaderEffectSourceInfo.
public
constructor
|
ShaderEffectSourceInfo
(Path resolver,
Path filePath)
|
||
params
|
resolver
|
[not-null]
|
The relative path resolver to use. |
filePath
|
[not-null]
|
File path to the shader effect source file. |
Initializes the state of this object from the given data stream.
public
override
method
|
Deserialize
(int32 serialVersion,
ISerializer data)
|
||
type
|
ISerializable
|
||
params
|
serialVersion
|
[>=1]
|
The serial data version. |
data
|
[not-null]
|
The serial data stream. | |
returns
|
|
The
deserialized
object.
This
will
typically
be
this ,
but
in
some
circumstances,
another
instance
may
be
returned
(e.g.
singletons).
|
|
overrides
|
SerializableBase.Deserialize
|
Remarks:
The Deserialize method will be called immediately after the object has been instantiated via its default constructor.
The provided serialVersion number is guaranteed to be equal to or less than the SerialVersion returned by this object (i.e. ISerializable object must provide backwards compatibility).
See also:
ISerializable.SerializeValidates this shader effect source file.
public
method
|
HasChanged
(Path resolver)
|
||
type
|
bool
|
||
params
|
resolver
|
[not-null]
|
The path resolver to use. |
returns
|
true
if
the
file
exists
and
has
changed,
false
otherwise. |
Validates the given shader effect source files.
public
static
method
|
HasChanged
(Path resolver,
ShaderEffectSourceInfo[] infos)
|
||
type
|
bool
|
||
params
|
resolver
|
[not-null]
|
The path resolver to use. |
infos
|
[not-null]
|
The shader effect source files. | |
returns
|
true
if
at
least
one
shader
effect
source
file
exists
and
has
changed,
false
otherwise.
|
Serializes the current state of this object to the given data stream.
public
override
method
|
Serialize
(ISerializer data)
|
||
params
|
data
|
[not-null]
|
The serial data stream. |
overrides
|
SerializableBase.Serialize
|
See also:
ISerializable.Deserialize