/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/RendererFoundation/Resources/Implementation/ProxyTexture.cpp
49 строк
1 KB
Sanakan8472
Resource View Refactor (#1589)
27 июн 2025, 09:33
Не верифицирован
27 июн 2025, 09:33
ae74d7e
Код
Авторство
О чём код?
#include <RendererFoundation/RendererFoundationPCH.h> #include <RendererFoundation/Resources/ProxyTexture.h> namespace { ezGALTextureCreationDescription MakeProxyDesc(const ezGALTextureCreationDescription& parentDesc) { ezGALTextureCreationDescription desc = parentDesc; desc.m_Type = ezGALTextureType::Texture2DProxy; return desc; } } // namespace ezGALProxyTexture::ezGALProxyTexture(ezGALTextureHandle hParentTexture, const ezGALTexture& parentTexture, ezUInt16 uiSlice) : ezGALTexture(MakeProxyDesc(parentTexture.GetDescription())) , m_hParentTexture(hParentTexture) , m_pParentTexture(&parentTexture) , m_uiSlice(uiSlice) { } ezGALProxyTexture::~ezGALProxyTexture() = default; const ezGALResourceBase* ezGALProxyTexture::GetParentResource() const { return m_pParentTexture; } ezResult ezGALProxyTexture::InitPlatform(ezGALDevice* pDevice, ezArrayPtr<ezGALSystemMemoryDescription> pInitialData) { EZ_IGNORE_UNUSED(pDevice); EZ_IGNORE_UNUSED(pInitialData); return EZ_SUCCESS; } ezResult ezGALProxyTexture::DeInitPlatform(ezGALDevice* pDevice) { EZ_IGNORE_UNUSED(pDevice); return EZ_SUCCESS; } void ezGALProxyTexture::SetDebugNamePlatform(const char* szName) const { EZ_IGNORE_UNUSED(szName); }