FShaderCompileThreadRunnableBase

Windows
MacOS
Linux

Inheritance Hierarchy

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

int32

 

MaxPriorityIndex

Protected variable

int32

 

MinPriorityIndex

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

 

SetPriorityRange

(
    EShaderCompileJobPriority MinPriori...,
    EShaderCompileJobPriority MaxPriori...
)

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss