FShaderCompileThreadRunnableBase

Windows
MacOS
Linux

Inheritance Hierarchy

FRunnable

FShaderCompileThreadRunnableBase

FShaderCompileThreadRunnable

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/ShaderCompiler.h

Include

#include "ShaderCompiler.h"

Syntax

class FShaderCompileThreadRunnableBase : public FRunnable

Variables

Name Description

Protected variable

TAtomic< bool >

 

bForceFinish

Protected variable

bool

 

bTerminatedByError

True if the thread has been terminated by an unhandled exception.

Protected variable

FString

 

ErrorMessage

If the thread has been terminated by an unhandled exception, this contains the error message.

Protected variable

FShaderCompilin...

 

Manager

The manager for this thread

Protected variable

FRunnableThread...

 

Thread

The runnable thread

Constructors

Name Description

Public function

FShaderCompileThreadRunnableBase

(
    FShaderCompilingManager* InMan...
)

Destructors

Functions

Name Description

Public function Const

void

 

CheckHealth()

Checks the thread's health, and passes on any errors that have occured.

Public function

int32

 

CompilingLoop()

Main work loop.

Public function

void

 

StartThread()

Public function Const

void

 

WaitForCompletion()

Overridden from FRunnable

Name Description

Public function Virtual

uint32

 

Run()

Entry point for the shader compiling thread.

Public function Virtual

void

 

Stop()

Stops the runnable object.

This is called if a thread is requested to terminate early.

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