Files
UnrealEngine/Engine/Source/Runtime/Apple/MetalRHI/Private/MetalRHIVisionOSBridge.cpp
2025-05-18 13:04:45 +08:00

23 lines
683 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MetalRHIVisionOSBridge.h"
#if PLATFORM_VISIONOS
#include "MetalRHIPrivate.h"
#include "MetalDynamicRHI.h"
DEFINE_LOG_CATEGORY(LogMetalVisionOS);
void MetalRHIVisionOS::PresentImmersive(const MetalRHIVisionOS::PresentImmersiveParams* Params)
{
FMetalRHICommandContext* RHICommandContext = static_cast<FMetalRHICommandContext*>(RHIGetDefaultContext());
check(RHICommandContext);
check(RHICommandContext->CustomPresentViewport);
FMetalViewport* Viewport = ResourceCast(RHICommandContext->CustomPresentViewport);
check(Viewport);
Viewport->PresentImmersive(Params);
}
#endif // PLATFORM_VISIONOS