SetAccelerationStructure
Sets the value for RayTracingAccelerationStructure property of this RayTracingShader.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetAccelerationStructure(int, RayTracingAccelerationStructure)
Sets the value for RayTracingAccelerationStructure property of this RayTracingShader.
public void SetAccelerationStructure(int nameID, RayTracingAccelerationStructure accelerationStructure)
Parameters
The ID of the RayTracingAccelerationStructure as given by Shader.PropertyToID.
The value to set the RayTracingAccelerationStructure to.
Remarks
The RayTracingAccelerationStructure you specify as an argument is globally visible in all ray tracing shader types (e.g. closest hit, any hit, miss, etc.).
SetAccelerationStructure(string, RayTracingAccelerationStructure)
Sets the value for RayTracingAccelerationStructure property of this RayTracingShader.
public void SetAccelerationStructure(string name, RayTracingAccelerationStructure accelerationStructure)
Parameters
The name of the RayTracingAccelerationStructure being set.
The value to set the RayTracingAccelerationStructure to.
Remarks
The RayTracingAccelerationStructure you specify as an argument is globally visible in all ray tracing shader types (e.g. closest hit, any hit, miss, etc.).