文档

Unity Engine

Unity Engine

EndGPUCapture()

Ends the current GPU frame capture in PIX. If not running via PIX, or as a development build, then it has no effect.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static void EndGPUCapture()

Examples

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++; }}