-
Notifications
You must be signed in to change notification settings - Fork 88
Description
When opening Bulk Load Demo in Visual Studio using platform toolset v143, Windows SDK version 10.0, user is informed that ..\Core\Core.vcxproj, ..\Model\Model.vcxproj, ..\BulkLoadDemo\BulkLoadDemo.vcxproj, and ..\MiniArchive\MiniArchive.vcxproj may be upgraded to target the latest Microsoft toolset. If the user chooses to do this, the solution 'BulkLoadDemo' will generate the following build errors:
2>In file included from Shaders\AdaptExposureCS.hlsl:19:
2>In file included from Shaders/ShaderUtility.hlsli:19:
2>Shaders/ColorSpaceUtility.hlsli(40,26): error G5A95C174: condition for short-circuiting ternary operator must be scalar, for non-scalar types use 'select'
2> return x < 0.0031308 ? 12.92 * x : 1.055 * pow(x, 1.0 / 2.4) - 0.055;
2> ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> select(x < 0.0031308, 12.92 * x, 1.0549999999999999 * pow(x, 1. / 2.3999999999999999) - 0.055)
2>Shaders/ColorSpaceUtility.hlsli(46,24): error G5A95C174: condition for short-circuiting ternary operator must be scalar, for non-scalar types use 'select'
2> return x < 0.04045 ? x / 12.92 : pow( (x + 0.055) / 1.055, 2.4 );
2> ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> select(x < 0.04045, x / 12.92, pow((x + 0.055) / 1.0549999999999999, 2.3999999999999999))
2>Shaders/ColorSpaceUtility.hlsli(52,26): error G5A95C174: condition for short-circuiting ternary operator must be scalar, for non-scalar types use 'select'
2> return x < 0.0031308 ? 12.92 * x : 1.13005 * sqrt(x - 0.00228) - 0.13448 * x + 0.005719;
2> ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> select(x < 0.0031308, 12.92 * x, 1.13005 * sqrt(x - 0.0022799999999999999) - 0.13447999999999999 * x + 0.0057190000000000001)
2>Shaders/ColorSpaceUtility.hlsli(57,24): error G5A95C174: condition for short-circuiting ternary operator must be scalar, for non-scalar types use 'select'
2> return x < 0.04045 ? x / 12.92 : -7.43605 * x - 31.24297 * sqrt(-0.53792 * x + 1.279924) + 35.34864;
2> ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> select(x < 0.04045, x / 12.92, -7.4360499999999998 * x - 31.24297 * sqrt(-0.53791999999999995 * x + 1.2799240000000001) + 35.348640000000003)
2>Shaders/ColorSpaceUtility.hlsli(65,23): error G5A95C174: condition for short-circuiting ternary operator must be scalar, for non-scalar types use 'select'
2> return x < 0.0181 ? 4.5 * x : 1.0993 * pow(x, 0.45) - 0.0993;
2> ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> select(x < 0.018100000000000002, 4.5 * x, 1.0992999999999999 * pow(x, 0.45000000000000001) - 0.099299999999999999)
2>Shaders/ColorSpaceUtility.hlsli(70,24): error G5A95C174: condition for short-circuiting ternary operator must be scalar, for non-scalar types use 'select'
2> return x < 0.08145 ? x / 4.5 : pow((x + 0.0993) / 1.0993, 1.0 / 0.45);
2> ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2> select(x < 0.081449999999999994, x / 4.5, pow((x + 0.099299999999999999) / 1.0992999999999999, 1. / 0.45000000000000001))
2>
2>Done building project "Core.vcxproj" -- FAILED.