
Renderer Resource Manager Rewrite: From Vulkan to NVRHI // Hazel Engine Stream (25.06.2025)
Context*
- Coldest day of the year in Melbourne at 7°C (very important note)
- Shows current Hazel state: red clear color working through new renderer
- Scene renderer successfully running clear passes, but main rendering disabled
- Goal: Get 2D rendering working first as stepping stone to 3D
*06:00 Resource Management Deep Dive*
- Core Problem: Need to bridge shader resources (textures, buffers) with render passes
- Resource Frequency Concept: Different update frequencies for different resource types:
- Per-object: Material textures (most frequent)
- Per-render-pass: Camera uniforms (medium frequency)
- Static: BRDF lookup tables (least frequent)
- Descriptor Set Strategy: Using sets 0-3 for different frequency levels
- Explains why render passes take inputs rather than individual draw calls handling everything
*30:00 Descriptor Set Manager Rewrite*
- Major Refactor: Converting from Vulkan-specific VkDescriptorSet to NVRHI binding sets
- Data Structure Changes:
- Replacing VK write descriptors with NVRHI binding set descriptions
- Converting vector storage to static arrays for better memory layout
- Moving from descriptor pools to direct binding set creation
- Validation System: Maintains shader-driven validation where shaders define required inputs
- Dynamic Resource Handling: System for resources that can change (frame buffers, resizable buffers)
*1:20:00 Shader Reflection System*
- Input Declaration Creation: Moving shader resource declarations from old system to new NVRHI-based approach
- Type Mapping: Converting between shader types (uniform buffers, textures, storage buffers) and NVRHI binding types
- Render Input Types: Establishing consistent type system across different graphics APIs
- Validation Logic: Ensuring render passes have all required inputs before rendering
*1:50:00 Architecture Cleanup*
- Class Hierarchy Simplification: Removing Vulkan-specific subclasses (VulkanRenderPass, VulkanComputePass)
- API Abstraction: Moving toward single render pass and compute pass classes that work with any backend
- Code Organization: Relocating platform-specific code to appropriate locations
*2:20:00 Debugging Session*
- Build and Test: First compilation and runtime testing of new system
- Resource Validation Working: Camera uniform buffer successfully being validated
- Binding Set Creation: System creating NVRHI binding sets from render pass specifications
- Shader Dimension Issues: Debugging problems with texture dimension detection (1D vs 2D vs Cube)
- Sampler Separation: Encountering issues with HLSL's separate texture/sampler model vs Vulkan's combined approach
















![[게임 개발 일지 110] 상호작용, 소환창 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/HEIS-fMYscs/hqdefault.jpg)
![[게임 개발 일지 112] 검사 파티 공격 모션 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/2dINfOQ2kfE/hqdefault.jpg)
![[게임 개발 일지 109] 던전 관리창 수정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/KV3qkO-dA6A/hqdefault.jpg)

























![[게임 개발 일지 124] 뱀파이어 수녀님 이동 메커니즘 상세 설명 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/tGj3ydtLHGA/hqdefault.jpg)


![던전에 총을 들고 오는 탱커? 이건 반칙 아닌가요? [게임 개발 일지 126] #게임 #1인개발 #indiedev](https://img.youtube.com/vi/RsRNGGwluto/hqdefault.jpg)


















![[게임 개발 일지 122] 뱀파이어 수녀님 스프라이트 시트 구성 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/C56YfTT1ZeQ/hqdefault.jpg)




















![[게임 개발 일지 126] 양 네크로맨서 전투 구현 과정 찐막 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/PkWJ7YDfCd0/hqdefault.jpg)














![[게임 개발 일지 116] 유령 강아지 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/SgjsVnw3vP4/hqdefault.jpg)











































![[게임 개발 일지 117] 그림자 고양이 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/3cKKibNQHdU/hqdefault.jpg)




















![[게임 개발 일지 120] 광원지 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/SeLc4Zp6cjc/hqdefault.jpg)









![[게임 개발 일지 115] 형광다람쥐 전투 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/8Z-k2N5Q3Ck/hqdefault.jpg)





























![[게임 개발 일지 125] 뱀파이어 수녀님 공격 메커니즘 구현 과정 상세 설명 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/o0zOC1CY46k/hqdefault.jpg)




























![[게임 개발 일지 123] 뱀파이어 수녀님 순찰 메커니즘 구현 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/OYNTwQ97bcw/hqdefault.jpg)




![창천사, 엘프검사 구현. 거점까지 직접 순찰하도록 수정. [게임 개발 일지 127] #게임 #1인개발 #indiedev](https://img.youtube.com/vi/8hhwAZcgkaY/hqdefault.jpg)





















































![[게임 개발 일지 118] 미믹 구현 과정 #게임 #1인개발 #indiedev](https://img.youtube.com/vi/WuVcQ6Ckoog/hqdefault.jpg)



![[게임 개발 일지 119] 보물창고 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/_qiSCs5ZiCg/hqdefault.jpg)















![[게임 개발 일지 121] 수원지 업그레이드! #게임 #1인개발 #indiedev](https://img.youtube.com/vi/Sgg87VfToQ0/hqdefault.jpg)




































































































