Experimental: this API is experimental and might be changed or removed in the future.

RayTracingShader.SetAccelerationStructure

切换到手册
public void SetAccelerationStructure (string name, Experimental.Rendering.RayTracingAccelerationStructure accelerationStructure);

参数

name设置的 RayTracingAccelerationStructure 的名称。
nameID如 Shader.PropertyToID 给定的 RayTracingAccelerationStructure 的 ID。
accelerationStructure将 RayTracingAccelerationStructure 设置成的值。

描述

为 RayTracingShader 的 RayTracingAccelerationStructure 属性设置此值。