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

RayTracingShader.SetBuffer

切换到手册
public void SetBuffer (string resourceName, ComputeBuffer buffer);
public void SetBuffer (int nameID, ComputeBuffer buffer);

参数

resourceName设置的资源的名称。
nameID如 Shader.PropertyToID 给定的资源的 ID。
buffer将指定本地资源绑定到的 ComputeBuffer。

描述

将 ComputeBuffer 绑定到 RayTracingShader 的本地 ComputeBuffer 资源。