Version: 2020.1
言語: 日本語

CommandBuffer.DispatchRays(RayTracingShader,string,int,int,int,Camera)

マニュアルに切り替える

パラメーター

raytracingShader RayTracingShader to execute.
rayGenShaderName Name of the ray generation shader.
rayGenShaderNameID Property name ID. Use Shader.PropertyToID to get this ID.
width The width of the ray generation shader thread grid.
height The height of the ray generation shader thread grid.
depth The depth of the ray generation shader thread grid.
camera The Camera to be used as environment to dispatch RayTracingShader.

説明

Add a command to execute a RayTracingShader.

When the command buffer executes, a RayTracingShader is dispatched and launches the threads of ray generation shader. Width, height and depth must be above zero and width*height*depth <= 2^30.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961