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

GetFieldType() public method

public GetFieldType ( int ii ) : ITypeHLSL
ii int
return ITypeHLSL
        public ITypeHLSL GetFieldType(int ii)
        {
            return _fields[ii].Type;
        }

Usage Example

 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::GetFieldType