This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine::ResourceExternalMemory Class

Header: #include <UnigineResourceExternalMemory.h>

This class is designed for interaction with the external memory objects.

ResourceExternalMemory Class

Перечисления (Enums)

TYPE#

ИмяОписание
TYPE_UNKNOWN = 0The resource type is unknown.
TYPE_TEXTURE = 1The resource type is texture.
TYPE_STRUCTURED_BUFFER = 2The resource type is structured buffer.
TYPE_MESH_DYNAMIC_VERTEX_BUFFER = 3The resource type is vertex buffer of mesh dynamic.
TYPE_MESH_DYNAMIC_INDEX_BUFFER = 4The resource type is index buffer of mesh dynamic.

Members


void* getWin32Handle ( ) const#

Returns the pointer to a variable that receives the NT HANDLE value to the resource to share. You can use this handle in calls to access the resource.

Return value

Win32 handle. If called under Linux, returns nullptr.

int getFdHandle ( ) const#

Returns the file descriptor referencing the payload of the device memory object.

Return value

Linux handle. If called under Windows, returns -1.

ResourceExternalMemory::TYPE getType ( ) const#

Returns the type of the object for which resource external memory is created.

Return value

The type of the object for which resource external memory is created.

unsigned long long getSize ( ) const#

Returns the size of video memory occupied by the resource.

Return value

Size of video memory occupied by the resource, in bytes.

void closeHandle ( ) #

Closes the handle. To avoid memory leaks, use this method when you no longer need the resource handle (for example, as soon as you imported the object to another graphics API).
Last update: 04.04.2024
Build: ()