Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bulk Load Demo sample not compatible with Visual C++ platform toolset v143

オープン
#56 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
cpp
領域
build-system

調査の方向性

まず Shaders/ColorSpaceUtility.hlsli と issue に示されている v143 のビルドエラーを確認し、次に BulkLoadDemo ソリューションと、その Core、Model、BulkLoadDemo、MiniArchive プロジェクトを調査します。Visual Studio のプラットフォーム ツールセット v143 と Windows SDK 10.0 を使用して Bulk Load Demo を再ビルドします。報告されているシェーダーエラーなしでソリューションをビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
897
フォーク
111
平均マージ
13時間 58分
マージ済み PR(30日)
12

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/DirectStorage のほかの issue

microsoft/DirectStorage の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。