Navigation
API > API/Plugins > API/Plugins/AVCodecsCore
A representation of a physical computer device, be it a GPU or a CPU or an external device, that can hold device resource contexts (Vulkan, D3D, CUDA, etc).
| Name | FAVDevice |
| Type | class |
| Header File | /Engine/Plugins/Experimental/AVCodecs/AVCodecsCore/Source/AVCodecsCore/Public/AVDevice.h |
| Include Path | #include "AVDevice.h" |
Syntax
class FAVDevice
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAVDevice() |
AVDevice.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FAVDevice() |
AVDevice.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Contexts | TTypeMap< FAVContext > | Type-erased list of contexts on this device | AVDevice.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< TContext > const & GetContext() |
Get a typed context from this device, if it exists. | AVDevice.h | |
bool HasContext() |
Check if this device has a specific context. | AVDevice.h | |
void SetContext
(
TSharedPtr< TContext > const& NewContext |
Set a context by type on this device. | AVDevice.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FAVDevice > & GetHardwareDevice
(
int32 Index |
Get the global hardware device. | AVDevice.h | |
static TSharedRef< FAVDevice > & GetSoftwareDevice() |
Get the global software device. | AVDevice.h |