Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
190fb95d
Commit
190fb95d
authored
Mar 25, 2019
by
Florian Oetke
Browse files
fixed async++ and vulkan stuff
parent
ff4f70de
Pipeline
#2671
passed with stage
in 9 minutes and 51 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
asyncplusplus
@
55e438e5
Compare
df0df2d8
...
55e438e5
Subproject commit
df0df2d889a78cc594aad8bbbdeb6240e7605b88
Subproject commit
55e438e5e0c6052299951e86b96fa8fdd9c6f130
src/mirrage/graphic/src/context.cpp
View file @
190fb95d
...
...
@@ -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"
});
}
...
...
src/mirrage/renderer/src/pass/tone_mapping_pass.cpp
View file @
190fb95d
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment