Version: 2020.3
언어: 한국어

PIX.EndGPUCapture

매뉴얼로 전환
public static void EndGPUCapture ();

설명

Ends the current GPU frame capture in PIX. If not running via PIX, or as a development build, then it has no effect.

using UnityEngine;
using UnityEngine.Rendering;

public class PixControl : MonoBehaviour { public int frameCaptureCount = 1;

int frameCount = 0; bool capturing = false;

void Awake() { if (PIX.IsAttached()) { PIX.BeginGPUCapture(); capturing = true; } }

void Update() { if (frameCount > frameCaptureCount && capturing) { PIX.EndGPUCapture(); capturing = false; }

frameCount++; } }