public static GetAutoConstantDefinition ( int idx, AutoConstantDefinition &def ) : bool | ||
idx | int | The auto constant index |
def | AutoConstantDefinition | |
return | bool |
public static bool GetAutoConstantDefinition( int idx, out AutoConstantDefinition def )
{
def = new AutoConstantDefinition();
if ( idx < AutoConstantDictionary.Length )
{
// verify index is equal to acType
// if they are not equal then the dictionary was not setup properly
Debug.Assert( (AutoConstantType)idx == AutoConstantDictionary[ idx ].AutoConstantType );
def = AutoConstantDictionary[ idx ];
return true;
}
else
return false;
}
GpuProgramParameters::GetAutoConstantDefinition ( string name, AutoConstantDefinition &def ) : bool |