LoginSignup
5
8

More than 5 years have passed since last update.

【Unity】compute shaderをMacのGame Viewで使う場合

Last updated at Posted at 2017-11-09

Macで、Unityを使う場合、Game ViewのグラフィックスAPIは、デフォルトで、openGL4.1を、選択されるようです。
macで、compute shaderを、Game Viewで、使うには、以下の、「-force-metal」オプションを使い、Game ViewのグラフィックスAPIを、Metalを使うように設定し、Editorを起動させます。

[unityを格納しているところまでのパス]/Unity.app/Contents/MacOS/Unity -force-metal

で、Editorを、起動。

設定されると、以下のEditorの箇所に、Metalと表示されれば、設定完了です。
スクリーンショット 2017-11-09 11.11.35.png

追記

2017のEditorだと、「File > Build Settings > Setting for PC, Mac, Linux Standalone > Other Settings」の項目で、Metal Editor Supportというチェック項目が追加されていました、ここをチェックすると、Metalに切り替わりました。

スクリーンショット 2018-02-08 23.46.16.png

5
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
8