1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-19 06:47:44 +00:00

Fix build on MSVC

This commit is contained in:
Joshua Goins 2024-04-24 17:26:53 -04:00
parent fd9db73c00
commit 6bd2a68994

View file

@ -229,14 +229,14 @@ void GameRenderer::render(VkCommandBuffer commandBuffer, uint32_t imageIndex, Ca
} }
std::vector<uint32_t> subviewKeys = {physis_shpk_crc("Default"), physis_shpk_crc("SUB_VIEW_MAIN")}; std::vector<uint32_t> subviewKeys = {physis_shpk_crc("Default"), physis_shpk_crc("SUB_VIEW_MAIN")};
const u_int32_t selector = physis_shpk_build_selector_from_all_keys(systemKeys.data(), const uint32_t selector = physis_shpk_build_selector_from_all_keys(systemKeys.data(),
systemKeys.size(), systemKeys.size(),
sceneKeys.data(), sceneKeys.data(),
sceneKeys.size(), sceneKeys.size(),
materialKeys.data(), materialKeys.data(),
materialKeys.size(), materialKeys.size(),
subviewKeys.data(), subviewKeys.data(),
subviewKeys.size()); subviewKeys.size());
const physis_SHPKNode node = physis_shpk_get_node(&renderMaterial.shaderPackage, selector); const physis_SHPKNode node = physis_shpk_get_node(&renderMaterial.shaderPackage, selector);
// check if invalid // check if invalid
@ -280,14 +280,14 @@ void GameRenderer::render(VkCommandBuffer commandBuffer, uint32_t imageIndex, Ca
physis_shpk_crc("SUB_VIEW_MAIN"), physis_shpk_crc("SUB_VIEW_MAIN"),
}; };
const u_int32_t selector = physis_shpk_build_selector_from_all_keys(systemKeys.data(), const uint32_t selector = physis_shpk_build_selector_from_all_keys(systemKeys.data(),
systemKeys.size(), systemKeys.size(),
nullptr, nullptr,
0, 0,
nullptr, nullptr,
0, 0,
subviewKeys.data(), subviewKeys.data(),
subviewKeys.size()); subviewKeys.size());
const physis_SHPKNode node = physis_shpk_get_node(&createViewPositionShpk, selector); const physis_SHPKNode node = physis_shpk_get_node(&createViewPositionShpk, selector);
// check if invalid // check if invalid
@ -332,14 +332,14 @@ void GameRenderer::render(VkCommandBuffer commandBuffer, uint32_t imageIndex, Ca
physis_shpk_crc("SUB_VIEW_MAIN"), physis_shpk_crc("SUB_VIEW_MAIN"),
}; };
const u_int32_t selector = physis_shpk_build_selector_from_all_keys(systemKeys.data(), const uint32_t selector = physis_shpk_build_selector_from_all_keys(systemKeys.data(),
systemKeys.size(), systemKeys.size(),
sceneKeys.data(), sceneKeys.data(),
sceneKeys.size(), sceneKeys.size(),
nullptr, nullptr,
0, 0,
subviewKeys.data(), subviewKeys.data(),
subviewKeys.size()); subviewKeys.size());
const physis_SHPKNode node = physis_shpk_get_node(&directionalLightningShpk, selector); const physis_SHPKNode node = physis_shpk_get_node(&directionalLightningShpk, selector);
// check if invalid // check if invalid