기술 자료

Unity Engine

Unity Engine

Build

Builds acceleration structures on the GPU. Allocates any GPU memory required for storing acceleration structure data.
읽는 시간 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.