Skip to content

Commit 630d0cc

Browse files
authored
Don't use designated initializers in QueryPool.cpp
Differential Revision: D70933388 Pull Request resolved: #9116
1 parent 4f95fd0 commit 630d0cc

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

backends/vulkan/runtime/vk_api/QueryPool.cpp

+14-13
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,20 @@ std::vector<ShaderResult> QueryPool::get_shader_timestamp_data() {
185185
std::vector<ShaderResult> shader_result;
186186
for (ShaderDuration& entry : shader_durations_) {
187187
shader_result.push_back(ShaderResult{
188-
.kernel_name = entry.kernel_name,
189-
.dispatch_id = entry.dispatch_id,
190-
.start_time_ns = entry.start_time_ns,
191-
.end_time_ns = entry.end_time_ns,
192-
.metadata = ShaderMetadata{
193-
.global_workgroup_size =
194-
{entry.global_workgroup_size.width,
195-
entry.global_workgroup_size.height,
196-
entry.global_workgroup_size.depth},
197-
.local_workgroup_size =
198-
{entry.local_workgroup_size.width,
199-
entry.local_workgroup_size.height,
200-
entry.local_workgroup_size.depth},
188+
/* .kernel_name = */ entry.kernel_name,
189+
/* .dispatch_id = */ entry.dispatch_id,
190+
/* .start_time_ns = */ entry.start_time_ns,
191+
/* .end_time_ns = */ entry.end_time_ns,
192+
/* .metadata = */
193+
ShaderMetadata{
194+
/* .global_workgroup_size = */
195+
{entry.global_workgroup_size.width,
196+
entry.global_workgroup_size.height,
197+
entry.global_workgroup_size.depth},
198+
/* .local_workgroup_size = */
199+
{entry.local_workgroup_size.width,
200+
entry.local_workgroup_size.height,
201+
entry.local_workgroup_size.depth},
201202
}});
202203
}
203204
return shader_result;

0 commit comments

Comments
 (0)