Version: 2020.1
言語: 日本語
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingShader.Dispatch

マニュアルに切り替える
public void Dispatch (string rayGenFunctionName, int width, int height, int depth, Camera camera);

パラメーター

rayGenFunctionName The function name of this RayTracingShader's raygeneration shader.
width The number of rays cast per row of dispatch.
height The number of rays cast per height of dispatch.
depth The number of layers cast, where each layer consists of a number of rays given by width * height.
camera An optional parameter used to setup camera related shader parameters (e.g. unity_WorldToCamera, unity_CameraToWorld, unity_CameraProjection, etc.). These values are visible globally in all ray tracing shader types.

説明

Dispatches this RayTracingShader.

Calls the raygeneration shader for the given dimensions, and recurse as necessary up to the specified RayTracingShader.maxRecursionDepth.

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