Ticket #27091

DirectXの機能サポートを確認する(インデックスバッファ)

Open Date: 2012-01-09 23:57 Last Update: 2012-01-15 11:21

Reporter:
Owner:
Status:
Closed
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

一部のグラフィックカードは、DirectXの一部機能であるインデックスバッファを用いたレンダリングをサポートしていない。 (DirectX9に対応していても、すべての機能をサポートしているとは限らないため)

MIDITrailはインデックスバッファを用いてレンダリングしているため、PCがこの機能をサポートしていない場合、正常に画面が描画されない。

MIDITrail起動時に、PCがインデックスバッファをサポートしているか確認し、サポートしていなければ警告メッセージを表示する。

Ticket History (3/3 Histories)

2012-01-09 23:57 Updated by: yknk
  • New Ticket "DirectXの機能サポートを確認する(インデックスバッファ)" created
2012-01-10 00:02 Updated by: yknk
  • Resolution Update from None to Fixed
Comment

対策

DXRenderer::IsSupportIndexBuffer

インデックスバッファサポートチェックメソッドを新規追加。 GetDeviceCapsを用いてデバイス情報を取得し、MaxVertexIndexを参照する。 MaxVertexIndexが0x0000FFFFより大きければ、インデックスバッファによるレンダリングをサポートありと判断する。

MIDITrailApp::Initialize

レンダラチェックメソッド_CheckRendererを呼び出す。

MIDITrailApp::_CheckRenderer

レンダラチェックメソッドを新規追加。 インデックスバッファをサポートしていない場合は警告メッセージを表示する。 "This PC does not support some features of DirectX. Therefore, MIDITrail will not work correctly."

2012-01-15 11:21 Updated by: yknk
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2012-01-15 11:21
Comment

警告メッセージを分かりやすい文章に変更する。

"This PC does not have sufficient graphics capabilities. Therefore, MIDITrail will not work correctly."

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login