Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DACH
Ray tracing X-ray Projection Simulator
Commits
241ddf7d
Commit
241ddf7d
authored
May 25, 2021
by
Johannes Maul
Browse files
Update of querypool desctruction into clean up
parent
53a49fdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Raytracing/HeadlessRaytracingWithMex/HeadlessRaytracingWithMex/Source/nv_ray_tracing_basic.cpp
View file @
241ddf7d
...
...
@@ -238,6 +238,7 @@ public:
void
cleanUp
()
{
vkDestroyQueryPool
(
device
,
queryPool
,
VK_NULL_HANDLE
);
vkDestroyPipeline
(
device
,
pipeline
,
nullptr
);
...
...
@@ -275,7 +276,7 @@ public:
faces4thFieldBuffer_buffer
.
destroy
();
primitives_buffer
.
destroy
();
distances_buffer
.
destroy
();
attenuationValues_buffer
.
destroy
();
attenuationValues_buffer
.
destroy
();
#ifdef debug
debug_buffer
.
destroy
();
debug_bufferMiss
.
destroy
();
...
...
@@ -1143,8 +1144,7 @@ public:
if
(
result
==
VK_SUCCESS
)
tmpTimestampTime
=
static_cast
<
double
>
(
timingRes
[
1
]
-
timingRes
[
0
])
/
(
1000
*
1000
);
//convert nano to milli (nano -> mikro -> milli)
vkResetQueryPool
(
device
,
queryPool
,
0
,
2
);
vkDestroyQueryPool
(
device
,
queryPool
,
VK_NULL_HANDLE
);
vkResetQueryPool
(
device
,
queryPool
,
0
,
2
);
//timeStamp end
times
.
push_back
(
tmpTimestampTime
);
//7
...
...
@@ -1474,13 +1474,13 @@ public:
if
(
!
prepared
)
return
;
#ifdef profile
sw
.
Start
();
//8 (-
1
07)
sw
.
Start
();
//8 (-
2
07)
#endif
draw
();
draw
();
#ifdef profile
sw
.
Stop
();
times
.
push_back
(
sw
.
ElapsedMilliseconds
());
#endif
sw
.
Stop
();
times
.
push_back
(
sw
.
ElapsedMilliseconds
());
#endif
#ifdef profile
sw
.
Start
();
//9
...
...
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