示例#1
0
 public static HLSLResult Result(string value, HLSLValueBaseType baseType, HLSLValueSubType sub = HLSLValueSubType.NONE)
 {
     return(new HLSLResult
     {
         Value = value,
         HLSLValueBaseType = baseType,
         HLSLValueSubType = sub
     });
 }
示例#2
0
        public bool CanConvert(HLSLValueBaseType from, HLSLValueBaseType to)
        {
            var pair = new HLSLValuePair
            {
                From = from,
                To   = to
            };

            return(CanConvert(pair));
        }