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
e0975a53
Commit
e0975a53
authored
Mar 25, 2019
by
Florian Oetke
Browse files
fixed vulkan concurrent queue ownership for single-queue-family GPUs
parent
94e06586
Pipeline
#2649
passed with stage
in 9 minutes and 50 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/mirrage/renderer/src/pass/particle_pass.cpp
View file @
e0975a53
...
...
@@ -138,6 +138,9 @@ namespace mirrage::renderer {
auto
allowed_queues
=
std
::
array
<
uint32_t
,
2
>
{
renderer
.
compute_queue_family
(),
renderer
.
queue_family
()};
auto
queue_count
=
gsl
::
narrow
<
std
::
uint32_t
>
(
allowed_queues
.
size
());
if
(
allowed_queues
[
0
]
==
allowed_queues
[
1
])
queue_count
=
1
;
auto
size_bytes
=
vk
::
DeviceSize
(
capacity
)
*
vk
::
DeviceSize
(
sizeof
(
Particle_keyframe
))
+
vk
::
DeviceSize
(
sizeof
(
Type_uniforms
));
...
...
@@ -147,7 +150,7 @@ namespace mirrage::renderer {
size_bytes
,
vk
::
BufferUsageFlagBits
::
eTransferDst
|
vk
::
BufferUsageFlagBits
::
eStorageBuffer
,
vk
::
SharingMode
::
eConcurrent
,
gsl
::
narrow
<
std
::
uint32_t
>
(
allowed_queues
.
size
())
,
queue_count
,
allowed_queues
.
data
()};
buffer
=
renderer
.
device
().
create_buffer
(
create_info
,
true
,
graphic
::
Memory_lifetime
::
normal
);
...
...
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