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 28cfb89
Show file tree
Hide file tree
Showing 7 changed files with 548 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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 Expand Up @@ -219,7 +220,7 @@ set(SRC main.cpp
project(demos)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
list(APPEND warning_flags -Werror -Wno-unused-result -Wno-nullability-completeness)
string(REPLACE ";" " " warning_flags "${warning_flags}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warning_flags}")
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
2 changes: 1 addition & 1 deletion util/test/demos/vk/vk_headers.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
#include "3rdparty/volk/volk.h"

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

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

0 comments on commit 28cfb89

Please sign in to comment.