public AddField ( string name, ITypeHLSL type ) : void | ||
name | string | |
type | ITypeHLSL | |
return | void |
public void AddField(
string name,
ITypeHLSL type)
{
_fields.Add(new Field { Name = name, Type = type });
}
private ITypeHLSL MakePseudoArrayElemTypeImpl( TupleTypeHLSL type, EmitValHLSL count ) { int fieldCount = type.GetFieldCount(); TupleTypeHLSL result = new TupleTypeHLSL(type.Name); for (int ff = 0; ff < fieldCount; ++ff) { result.AddField( type.GetFieldName(ff), MakePseudoArrayElemType( type.GetFieldType(ff), count)); } return result; }