ELayerFlags

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/IStereoLayers.h

Include

#include "IStereoLayers.h"

Syntax

enum ELayerFlags
{
    LAYER_FLAG_TEX_CONTINUOUS_UPDATE      = 0x00000001,
    LAYER_FLAG_TEX_NO_ALPHA_CHANNEL       = 0x00000002,
    LAYER_FLAG_QUAD_PRESERVE_TEX_RATIO    = 0x00000004,
    LAYER_FLAG_SUPPORT_DEPTH              = 0x00000008,
    LAYER_FLAG_TEX_EXTERNAL               = 0x00000010,
}

Values

Name

Description

LAYER_FLAG_TEX_CONTINUOUS_UPDATE

Internally copies the texture on every frame for video, etc.

LAYER_FLAG_TEX_NO_ALPHA_CHANNEL

Ignore the textures alpha channel, this makes the stereo layer opaque. Flag is ignored on Steam VR.

LAYER_FLAG_QUAD_PRESERVE_TEX_RATIO

Quad Y component will be calculated based on the texture dimensions.

LAYER_FLAG_SUPPORT_DEPTH

The layer will intersect with the scene's depth. Currently only supported on Oculus platforms.

LAYER_FLAG_TEX_EXTERNAL

Required on some platforms to enable rendering of external textures.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback