/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/RendererVulkan/Resources/SharedTextureVulkan.h
27 строк
1 KB
Sanakan8472
Shared texture support and other side-effects of linux editor development (#1035)
16 сен 2023, 15:00
Не верифицирован
16 сен 2023, 15:00
f0cf6af
Код
Авторство
О чём код?
#pragma once #include <RendererVulkan/Resources/TextureVulkan.h> class ezGALSharedTextureVulkan : public ezGALTextureVulkan, public ezGALSharedTexture { using SUPER = ezGALTextureVulkan; protected: friend class ezGALDeviceVulkan; friend class ezMemoryUtils; ezGALSharedTextureVulkan(const ezGALTextureCreationDescription& Description, ezEnum<ezGALSharedTextureType> sharedType, ezGALPlatformSharedHandle hSharedHandle); ~ezGALSharedTextureVulkan(); virtual ezResult InitPlatform(ezGALDevice* pDevice, ezArrayPtr<ezGALSystemMemoryDescription> pInitialData) override; virtual ezResult DeInitPlatform(ezGALDevice* pDevice) override; virtual ezGALPlatformSharedHandle GetSharedHandle() const override; virtual void WaitSemaphoreGPU(ezUInt64 uiValue) const override; virtual void SignalSemaphoreGPU(ezUInt64 uiValue) const override; protected: ezEnum<ezGALSharedTextureType> m_SharedType = ezGALSharedTextureType::None; ezGALPlatformSharedHandle m_hSharedHandle; vk::Semaphore m_SharedSemaphore; };