private ConstantValue(ConstantSpec spec, ulong value) { Spec = spec; Name = spec.Name.Substring("VK_".Length); Type = ValueType.Long; ValueInt = value; }
private ConstantValue(ConstantSpec spec, float value) { Spec = spec; Name = spec.Name.Substring("VK_".Length); Type = ValueType.Float; ValueFloat = value; }
// Try process public static bool TryProcess(ConstantSpec spec, out ConstantValue?value) { value = null; // Parse value if (spec.Value[^ 1] == 'f')