Skip to content

Commit fdf619e

Browse files
cursoragenttimfox
andcommitted
Vulkan: extract framebuffer create/destroy to vk_framebuffers.c
- Move vk_create_framebuffers and vk_destroy_framebuffers out of vk.c - OIT path uses vk_get_main_rasterization_samples() instead of file-local vkSamples - MSVC vcxproj + filters; document in ARCHITECTURE.md Co-authored-by: Tim Fox <timfox@outlook.com>
1 parent 28996ad commit fdf619e

6 files changed

Lines changed: 528 additions & 503 deletions

File tree

docs/ARCHITECTURE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ src/
4444
│ │ ├── vk_procs.c/h `qvk*` Vulkan entry points (storage + declarations)
4545
│ │ ├── vk_shader_modules.c/h SPIR-V `VkShaderModule` creation + `vk_create_shader_modules`
4646
│ │ ├── vk_pipelines_persistent.c/h Long-lived pipelines (skybox, fog, debug tools)
47+
│ │ ├── vk_framebuffers.c/h VkFramebuffer create/destroy (split from vk.c)
4748
│ │ ├── vk_fluidsim.c/h Fluid simulation module
4849
│ │ ├── vk_postfx.c/h PostFX (SSR, atmosphere, wind)
4950
│ │ ├── vk_flashlight.c/h Projected texture system

src/platform/win32/msvc2017/vulkan.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@
265265
<ClCompile Include="..\..\..\renderers\vulkan\vk_device.c" />
266266
<ClCompile Include="..\..\..\renderers\vulkan\vk_flashlight.c" />
267267
<ClCompile Include="..\..\..\renderers\vulkan\vk_flares.c" />
268+
<ClCompile Include="..\..\..\renderers\vulkan\vk_framebuffers.c" />
268269
<ClCompile Include="..\..\..\renderers\vulkan\vk_frame_end.c" />
269270
<ClCompile Include="..\..\..\renderers\vulkan\vk_geometry.c" />
270271
<ClCompile Include="..\..\..\renderers\vulkan\vk_gltf.c" />

src/platform/win32/msvc2017/vulkan.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@
118118
<ClCompile Include="..\..\renderers\vulkan\vk_pipelines_persistent.c">
119119
<Filter>Source Files</Filter>
120120
</ClCompile>
121+
<ClCompile Include="..\..\renderers\vulkan\vk_framebuffers.c">
122+
<Filter>Source Files</Filter>
123+
</ClCompile>
121124
<ClCompile Include="..\..\renderers\common\tr_noise.c">
122125
<Filter>Source Files</Filter>
123126
</ClCompile>

0 commit comments

Comments
 (0)