/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/RendererCore/Debug/DebugRendererContext.h
41 строка
1 KB
Jan Krassnigg
Fixed several public header includes (#1753)
03 янв 2026, 21:23
Не верифицирован
03 янв 2026, 21:23
1a4bcb1
Код
Авторство
О чём код?
#pragma once #include <Foundation/Algorithm/HashingUtils.h> #include <RendererCore/RendererCoreDLL.h> class ezWorld; class ezViewHandle; /// \brief Value used by containers for indices to indicate an invalid index. #ifndef ezInvalidIndex # define ezInvalidIndex 0xFFFFFFFF #endif /// \brief Used in ezDebugRenderer to determine where debug geometry should be rendered class EZ_RENDERERCORE_DLL ezDebugRendererContext { public: ezDebugRendererContext() = default; /// \brief If this constructor is used, the geometry is rendered in all views for that scene. ezDebugRendererContext(const ezWorld* pWorld); /// \brief If this constructor is used, the geometry is only rendered in this view. ezDebugRendererContext(const ezViewHandle& hView); EZ_ALWAYS_INLINE bool operator==(const ezDebugRendererContext& other) const { return m_uiId == other.m_uiId; } private: friend struct ezHashHelper<ezDebugRendererContext>; ezUInt32 m_uiId = ezInvalidIndex; }; template <> struct ezHashHelper<ezDebugRendererContext> { EZ_ALWAYS_INLINE static ezUInt32 Hash(ezDebugRendererContext value) { return ezHashHelper<ezUInt32>::Hash(value.m_uiId); } EZ_ALWAYS_INLINE static bool Equal(ezDebugRendererContext a, ezDebugRendererContext b) { return a == b; } };