ドキュメント

Unity Engine

Unity Engine

BeginTrace()

Start tracing shader variants and graphics states encountered at runtime.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public bool BeginTrace()

Returns

Type

Description

boolReturns true if tracing successfully started, false otherwise.

Remarks

Graphics states will only be traced when SystemInfo.supportsParallelPSOCreation is true.

Examples

using UnityEngine;using UnityEngine.Experimental.Rendering;public class BeginTraceExample : MonoBehaviour{ public GraphicsStateCollection graphicsStateCollection; void Start() { graphicsStateCollection = new GraphicsStateCollection(); graphicsStateCollection.BeginTrace(); } void OnDestroy() { graphicsStateCollection.EndTrace(); }}