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);

파라미터

rayGenFunctionNameThe function name of this RayTracingShader's raygeneration shader.
widthThe number of rays cast per row of dispatch.
heightThe number of rays cast per height of dispatch.
depthThe number of layers cast, where each layer consists of a number of rays given by width * height.
cameraThe camera from which the rays should be cast.

설명

Dispatches this RayTracingShader.

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