RVTDocs.com

EffectInstance.MatchesFormat

Method
Description:
Tests whether the effect instance is appropriate for the given vertex format.
Remarks:
The vertex format may define vertex data that are not used by the effect instance. However, the effect instance can not reference vertex data that do not exist in the vertex format.
Syntax
public bool MatchesFormat(
	VertexFormat vertexFormat
)
Parameters
Parameter Type Description
vertexFormat VertexFormat A vertex format.
Return Value
Type Description
Boolean True if the effect instance is valid for use with the specified vertex format.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null