Commit 190fb95d authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed async++ and vulkan stuff

parent ff4f70de
Pipeline #2671 passed with stage
in 9 minutes and 51 seconds
Subproject commit df0df2d889a78cc594aad8bbbdeb6240e7605b88
Subproject commit 55e438e5e0c6052299951e86b96fa8fdd9c6f130
......@@ -273,9 +273,11 @@ namespace mirrage::graphic {
required_extensions.push_back(VK_EXT_DEBUG_UTILS_EXTENSION_NAME);
if(debug) {
_enabled_layers = check_layers({"VK_LAYER_LUNARG_standard_validation",
_enabled_layers = check_layers({"VK_LAYER_LUNARG_image",
"VK_LAYER_LUNARG_parameter_validation",
"VK_LAYER_LUNARG_core_validation",
"VK_LAYER_LUNARG_swapchain",
"VK_LAYER_GOOGLE_unique_objects",
"VK_LAYER_GOOGLE_threading"});
}
......
......@@ -379,8 +379,8 @@ namespace mirrage::renderer {
{
auto _ = _renderer.profiler().push("Foveal rescale");
auto foveal_mip_level =
compute_foveal_mip_level(gsl::narrow<float>(_src.height()), _renderer.global_uniforms().proj_planes.w);
auto foveal_mip_level = compute_foveal_mip_level(gsl::narrow<float>(_src.height()),
_renderer.global_uniforms().proj_planes.w);
_last_max_histogram_size = _src.height(foveal_mip_level) * _src.width(foveal_mip_level);
if(foveal_mip_level > 0) {
graphic::generate_mipmaps(command_buffer,
......@@ -590,10 +590,14 @@ namespace mirrage::renderer {
return current_score;
}
void Tone_mapping_pass_factory::configure_device(vk::PhysicalDevice,
void Tone_mapping_pass_factory::configure_device(vk::PhysicalDevice pd,
util::maybe<std::uint32_t>,
graphic::Device_create_info& create_info)
{
auto features = pd.getFeatures();
MIRRAGE_INVARIANT(features.shaderStorageImageExtendedFormats,
"Unsupported extension: shaderStorageImageExtendedFormats");
create_info.features.shaderStorageImageExtendedFormats = true;
}
} // namespace mirrage::renderer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment