Skip to content

Commit c3b0e54

Browse files
SamGondelmanfacebook-github-bot
authored andcommitted
Don't use designated initializers in QueryPool.cpp
Summary: This is a c++20 feature, but not all clients are on c++20. Differential Revision: D70933388
1 parent cf8ce89 commit c3b0e54

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

backends/vulkan/runtime/vk_api/QueryPool.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,16 @@ 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 =
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 = */
194194
{entry.global_workgroup_size.width,
195195
entry.global_workgroup_size.height,
196196
entry.global_workgroup_size.depth},
197-
.local_workgroup_size =
197+
/* .local_workgroup_size = */
198198
{entry.local_workgroup_size.width,
199199
entry.local_workgroup_size.height,
200200
entry.local_workgroup_size.depth},

0 commit comments

Comments
 (0)