ドキュメント

Unity Engine

Unity Engine

Build

Builds acceleration structures on the GPU. Allocates any GPU memory required for storing acceleration structure data.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

Build()

Builds acceleration structures on the GPU. Allocates any GPU memory required for storing acceleration structure data.
public void Build()

Remarks

To ensure that the acceleration structure is up to date, call this method before using the acceleration structure in ray tracing shaders (for example before a RayTracingShader.Dispatch call) or when using inline ray tracing.

Build(Vector3)

Builds acceleration structures on the GPU. Allocates any GPU memory required for storing acceleration structure data.
public void Build(Vector3 relativeOrigin)

Parameters

relativeOrigin

Remarks

To ensure that the acceleration structure is up to date, call this method before using the acceleration structure in ray tracing shaders (for example before a RayTracingShader.Dispatch call) or when using inline ray tracing.

Build(BuildSettings)

Builds acceleration structures on the GPU. Allocates any GPU memory required for storing acceleration structure data.
public void Build(RayTracingAccelerationStructure.BuildSettings buildSettings)

Parameters

buildSettings

Remarks

To ensure that the acceleration structure is up to date, call this method before using the acceleration structure in ray tracing shaders (for example before a RayTracingShader.Dispatch call) or when using inline ray tracing.