Skip to content

Commit

Permalink
Preliminary Vulkan AS/RQ test
Browse files Browse the repository at this point in the history
This test renders a small triangle that casts a shadow from a point light, onto a larger triangle.  The test runner then checks that various pixels in the final output are the correct colour.

There is also an arbitrary AS copy in the render loop just to hit more API coverage when manually capturing, but the test runner doesn't check its output.

Core test work originally done by [email protected]
  • Loading branch information
cmannett85-arm committed Nov 21, 2024
1 parent 497f7c3 commit 9c55693
Show file tree
Hide file tree
Showing 7 changed files with 552 additions and 1 deletion.
1 change: 1 addition & 0 deletions util/test/demos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ set(VULKAN_SRC
vk/vk_pixel_history.cpp
vk/vk_postponed.cpp
vk/vk_query_pool.cpp
vk/vk_ray_query.cpp
vk/vk_read_before_overwrite.cpp
vk/vk_resource_lifetimes.cpp
vk/vk_robustness2.cpp
Expand Down
1 change: 1 addition & 0 deletions util/test/demos/demos.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@
<ClCompile Include="vk\vk_multi_thread_windows.cpp" />
<ClCompile Include="vk\vk_postponed.cpp" />
<ClCompile Include="vk\vk_query_pool.cpp" />
<ClCompile Include="vk\vk_ray_query.cpp" />
<ClCompile Include="vk\vk_read_before_overwrite.cpp" />
<ClCompile Include="vk\vk_robustness2.cpp" />
<ClCompile Include="vk\vk_separate_depth_stencil_layouts.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions util/test/demos/demos.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@
<ClCompile Include="d3d12\d3d12_rtas_zoo.cpp">
<Filter>D3D12\demos</Filter>
</ClCompile>
<ClCompile Include="vk\vk_ray_query.cpp">
<Filter>Vulkan\demos</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="D3D11">
Expand Down
6 changes: 5 additions & 1 deletion util/test/demos/vk/vk_headers.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@
// then include volk
#include "3rdparty/volk/volk.h"

#if defined(__linux__) && defined(__GLIBCXX__) && defined(_GLIBCXX_HAVE_ALIGNED_ALLOC)
#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) aligned_alloc(alignment, size)
#endif

// avoid warning about unused variables
#define VMA_DEBUG_LOG_FORMAT(format, ...) (void)(__VA_ARGS__);
#define VMA_DEBUG_LOG_FORMAT(format, ...) (void)(#__VA_ARGS__)

// finally VMA
#include "3rdparty/VulkanMemoryAllocator/vk_mem_alloc.h"
Loading

0 comments on commit 9c55693

Please sign in to comment.