Skip to content

Commit 87f7893

Browse files
cursoragenttimfox
andcommitted
Vulkan: extract cubemap IBL prefilter to vk_cubemap_prefilter.c
Move filterDef helpers, prefilter renderpass/FB/pipeline, create/destroy, vk_clear_cube_color, readback/SH extraction, and vk_generate_cubemaps out of vk.c. Wrap translation unit in VK_CUBEMAP. Update MSVC and ARCHITECTURE.md. Co-authored-by: Tim Fox <timfox@outlook.com>
1 parent 610ea05 commit 87f7893

5 files changed

Lines changed: 747 additions & 726 deletions

File tree

docs/ARCHITECTURE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ src/
5959
│ │ ├── vk_shutdown.c vk_shutdown, wait-idle, release_resources (split from vk.c)
6060
│ │ ├── vk_postfx_passes.c Bloom, SSAO/HBAO, OIT, SSR passes (split from vk.c)
6161
│ │ ├── vk_clear_attachments.c In-pass color/depth clear + dynamic color write mask (split from vk.c)
62+
│ │ ├── vk_cubemap_prefilter.c IBL cubemap prefilter, SH extraction, vk_generate_cubemaps (split from vk.c)
6263
│ │ ├── vk_fluidsim.c/h Fluid simulation module
6364
│ │ ├── vk_postfx.c/h PostFX (SSR, atmosphere, wind)
6465
│ │ ├── 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
@@ -277,6 +277,7 @@
277277
<ClCompile Include="..\..\..\renderers\vulkan\vk_shutdown.c" />
278278
<ClCompile Include="..\..\..\renderers\vulkan\vk_postfx_passes.c" />
279279
<ClCompile Include="..\..\..\renderers\vulkan\vk_clear_attachments.c" />
280+
<ClCompile Include="..\..\..\renderers\vulkan\vk_cubemap_prefilter.c" />
280281
<ClCompile Include="..\..\..\renderers\vulkan\vk_device.c" />
281282
<ClCompile Include="..\..\..\renderers\vulkan\vk_flashlight.c" />
282283
<ClCompile Include="..\..\..\renderers\vulkan\vk_flares.c" />

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@
154154
<ClCompile Include="..\..\renderers\vulkan\vk_clear_attachments.c">
155155
<Filter>Source Files</Filter>
156156
</ClCompile>
157+
<ClCompile Include="..\..\renderers\vulkan\vk_cubemap_prefilter.c">
158+
<Filter>Source Files</Filter>
159+
</ClCompile>
157160
<ClCompile Include="..\..\renderers\vulkan\vk_attachments.c">
158161
<Filter>Source Files</Filter>
159162
</ClCompile>

0 commit comments

Comments
 (0)