Spark.Emit.HLSL.TupleTypeHLSL.GetFieldName C# (CSharp) Method

GetFieldName() public method

public GetFieldName ( int ii ) : string
ii int
return string
        public string GetFieldName(int ii)
        {
            return _fields[ii].Name;
        }

Usage Example

コード例 #1
0
 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;
 }
All Usage Examples Of Spark.Emit.HLSL.TupleTypeHLSL::GetFieldName