WTMetalRenderingMode Class Reference

Inherits from NSObject
Declared in WTMetalRenderingMode.h

Overview

Base object for internal and external rendering modes for Metal rendering.

– metalView

Method that returns a pre configured Metal View object that can be added to the view hierarchy.

This method is only relevant when using the Wikitude Native SDK with Internal renderering and will return nil otherwise.

- (nullable WTMetalView *)metalView

Return Value

WTMetalView A weak pointer to a Metal view.

Discussion

Please note that the returned pointer is of type weak and the view should either be added to the view hierarchy within the scope of the calling method or retained (assigned to a strong property) until the view was added to the view hierarchy.

Declared In

WTMetalRenderingMode.h