mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
feat(test): fixup test
This commit is contained in:
parent
405733d50e
commit
fd6f611dd0
2 changed files with 6 additions and 4 deletions
|
|
@ -19,8 +19,6 @@ add_executable(lsfg-vk-test ${SOURCES})
|
|||
set_target_properties(lsfg-vk-test PROPERTIES
|
||||
CXX_STANDARD 20
|
||||
CXX_STANDARD_REQUIRED ON)
|
||||
target_include_directories(lsfg-vk-test
|
||||
PRIVATE include)
|
||||
target_link_libraries(lsfg-vk-test PUBLIC
|
||||
lsfg-vk lsfg-vk-framegen
|
||||
vulkan)
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include "core/image.hpp"
|
||||
#include "core/instance.hpp"
|
||||
#include "extract/extract.hpp"
|
||||
#include "extract/trans.hpp"
|
||||
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include <renderdoc_app.h>
|
||||
|
|
@ -23,7 +24,6 @@ using namespace LSFG;
|
|||
|
||||
const VkExtent2D SRC_EXTENT = { 2560 , 1440 };
|
||||
const VkFormat SRC_FORMAT = VK_FORMAT_R8G8B8A8_UNORM;
|
||||
const std::string EMPTY_FILE = "test/empty.dds";
|
||||
const std::array<std::string, 2> SRC_FILES = {
|
||||
"test/f0.dds",
|
||||
"test/f1.dds"
|
||||
|
|
@ -87,7 +87,11 @@ namespace {
|
|||
initialize(
|
||||
0x1463ABAC,
|
||||
IS_HDR, FLOW_SCALE, MULTIPLIER - 3,
|
||||
Extract::getShader
|
||||
[](const std::string& name) -> std::vector<uint8_t> {
|
||||
auto dxbc = Extract::getShader(name);
|
||||
auto spirv = Extract::translateShader(dxbc);
|
||||
return spirv;
|
||||
}
|
||||
);
|
||||
return createContext(
|
||||
fds.at(0), fds.at(1), outFds,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue