Exemple #1
0
        public static string ToStr(this EnvironmentVersion version)
        {
            StringBuilder builder = new StringBuilder();

            if (version == null)
            {
                builder.AppendLine(string.Format("EnvironmentVersion=null"));
            }
            else
            {
                builder.AppendLine(version.BuiltWithVersion.ToStr("EnvironmentVersion.BuiltWithVersion"));

                builder.AppendLine(version.HostVersion.ToStr("EnvironmentVersion.HostVersion"));
            }

            return(builder.ToString());
        }
Exemple #2
0
 internal static extern void shaderc_compile_options_set_target_env(IntPtr options, TargetEnvironment target, EnvironmentVersion version);