/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/RendererDX11/State/StateDX11.h
93 строки
2 KB
Ingrater
clang-tidy modernize use default member init (#950)
19 май 2023, 13:25
Не верифицирован
19 май 2023, 13:25
c714416
Код
Авторство
О чём код?
#pragma once #include <RendererFoundation/State/State.h> struct ID3D11BlendState; struct ID3D11DepthStencilState; struct ID3D11RasterizerState; struct ID3D11RasterizerState2; struct ID3D11SamplerState; class EZ_RENDERERDX11_DLL ezGALBlendStateDX11 : public ezGALBlendState { public: EZ_ALWAYS_INLINE ID3D11BlendState* GetDXBlendState() const; protected: friend class ezGALDeviceDX11; friend class ezMemoryUtils; ezGALBlendStateDX11(const ezGALBlendStateCreationDescription& Description); ~ezGALBlendStateDX11(); virtual ezResult InitPlatform(ezGALDevice* pDevice) override; virtual ezResult DeInitPlatform(ezGALDevice* pDevice) override; ID3D11BlendState* m_pDXBlendState = nullptr; }; class EZ_RENDERERDX11_DLL ezGALDepthStencilStateDX11 : public ezGALDepthStencilState { public: EZ_ALWAYS_INLINE ID3D11DepthStencilState* GetDXDepthStencilState() const; protected: friend class ezGALDeviceDX11; friend class ezMemoryUtils; ezGALDepthStencilStateDX11(const ezGALDepthStencilStateCreationDescription& Description); ~ezGALDepthStencilStateDX11(); virtual ezResult InitPlatform(ezGALDevice* pDevice) override; virtual ezResult DeInitPlatform(ezGALDevice* pDevice) override; ID3D11DepthStencilState* m_pDXDepthStencilState = nullptr; }; class EZ_RENDERERDX11_DLL ezGALRasterizerStateDX11 : public ezGALRasterizerState { public: EZ_ALWAYS_INLINE ID3D11RasterizerState* GetDXRasterizerState() const; protected: friend class ezGALDeviceDX11; friend class ezMemoryUtils; ezGALRasterizerStateDX11(const ezGALRasterizerStateCreationDescription& Description); ~ezGALRasterizerStateDX11(); virtual ezResult InitPlatform(ezGALDevice* pDevice) override; virtual ezResult DeInitPlatform(ezGALDevice* pDevice) override; ID3D11RasterizerState* m_pDXRasterizerState = nullptr; }; class EZ_RENDERERDX11_DLL ezGALSamplerStateDX11 : public ezGALSamplerState { public: EZ_ALWAYS_INLINE ID3D11SamplerState* GetDXSamplerState() const; protected: friend class ezGALDeviceDX11; friend class ezMemoryUtils; ezGALSamplerStateDX11(const ezGALSamplerStateCreationDescription& Description); ~ezGALSamplerStateDX11(); virtual ezResult InitPlatform(ezGALDevice* pDevice) override; virtual ezResult DeInitPlatform(ezGALDevice* pDevice) override; ID3D11SamplerState* m_pDXSamplerState = nullptr; }; #include <RendererDX11/State/Implementation/StateDX11_inl.h>