Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity2023.1以降でUnityScriptableRenderContext.DrawRenderers()がObsolete警告を出すのに対応 #2288

Conversation

saturday06
Copy link
Contributor

代わりにCommandBuffer.DrawRendererList()を使うようにしました。

これに渡す引数を生成するScriptableRenderContext.CreateRendererList()メソッドには、2種類のオーバーロードが存在します。

  1. ScriptableRenderContext.CreateRendererList(Rendering.RendererUtils.RendererListDesc desc);
  2. ScriptableRenderContext.CreateRendererList(Rendering.RendererListParams param)

このPRでは 2 を選択しました。1 はUnity 2021.3にも存在するという利点がありますが、 引数の組み立てが複雑だと感じたため避けました。

…を出すのに対応

代わりにCommandBuffer.DrawRendererList()を使うようにしました。

これに渡す引数を生成するScriptableRenderContext.CreateRendererList()メソッドには、2種類のオーバーロードが存在します。

1. ScriptableRenderContext.CreateRendererList(Rendering.RendererUtils.RendererListDesc desc);
2. ScriptableRenderContext.CreateRendererList(Rendering.RendererListParams param)

このPRでは `2` を選択しました。`1` はUnity 2021.3にも存在するという利点がありますが、
引数の組み立てが複雑だと感じたため避けました。
Copy link
Contributor

@ousttrue ousttrue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ousttrue ousttrue merged commit d1f58b6 into vrm-c:master May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants