This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingShader.SetBuffer

Declaration

public void SetBuffer(string resourceName, ComputeBuffer buffer);

Declaration

public void SetBuffer(int nameID, ComputeBuffer buffer);

Parameters

resourceName The name of the resource being set.
nameID The ID of the resource as given by Shader.PropertyToID.
buffer The ComputeBuffer to bind the named local resource to.

Description

Binds a ComputeBuffer to a local ComputeBuffer resource of this RayTracingShader.