Skip to content

Commit 336ba65

Browse files
committed
clang format
1 parent d162274 commit 336ba65

4 files changed

+19
-23
lines changed

framework/decode/vulkan_replay_dump_resources.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ GFXRECON_BEGIN_NAMESPACE(decode)
4646

4747
VulkanReplayDumpResourcesBase::VulkanReplayDumpResourcesBase(const VulkanReplayOptions& options,
4848
CommonObjectInfoTable* object_info_table) :
49-
QueueSubmit_indices_(options.QueueSubmit_Indices),
50-
recording_(false), dump_resources_before_(options.dump_resources_before), object_info_table_(object_info_table),
49+
QueueSubmit_indices_(options.QueueSubmit_Indices), recording_(false),
50+
dump_resources_before_(options.dump_resources_before), object_info_table_(object_info_table),
5151
output_json_per_command(options.dump_resources_json_per_command), user_delegate_(nullptr),
5252
active_delegate_(nullptr), default_delegate_(nullptr)
5353
{

framework/decode/vulkan_replay_dump_resources_compute_ray_tracing.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ DispatchTraceRaysDumpingContext::DispatchTraceRaysDumpingContext(const std::vect
5353
CommonObjectInfoTable& object_info_table,
5454
const VulkanReplayOptions& options,
5555
VulkanDumpResourcesDelegate& delegate) :
56-
original_command_buffer_info(nullptr),
57-
DR_command_buffer(VK_NULL_HANDLE), dispatch_indices(dispatch_indices),
56+
original_command_buffer_info(nullptr), DR_command_buffer(VK_NULL_HANDLE), dispatch_indices(dispatch_indices),
5857
trace_rays_indices(trace_rays_indices), bound_pipelines{ nullptr },
5958
dump_resources_before(options.dump_resources_before), device_table(nullptr), parent_device(VK_NULL_HANDLE),
6059
instance_table(nullptr), object_info_table(object_info_table), replay_device_phys_mem_props(nullptr),

framework/decode/vulkan_replay_dump_resources_delegate.cpp

+12-14
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,8 @@ DefaultVulkanDumpResourcesDelegate::GenerateBufferDescriptorFilename(const Vulka
358358
{
359359
std::stringstream filename;
360360

361-
filename << capture_filename_ << "_"
362-
<< "buffer_" << resource_info.buffer_info->capture_id << "_qs_" << resource_info.qs_index << "_bcb_"
363-
<< resource_info.bcb_index << "_rp_" << resource_info.rp << ".bin";
361+
filename << capture_filename_ << "_" << "buffer_" << resource_info.buffer_info->capture_id << "_qs_"
362+
<< resource_info.qs_index << "_bcb_" << resource_info.bcb_index << "_rp_" << resource_info.rp << ".bin";
364363

365364
std::filesystem::path filedirname(options_.dump_resources_output_dir);
366365
std::filesystem::path filebasename(filename.str());
@@ -380,9 +379,9 @@ std::string DefaultVulkanDumpResourcesDelegate::GenerateInlineUniformBufferDescr
380379
const VulkanDumpResourceInfo& resource_info) const
381380
{
382381
std::stringstream filename;
383-
filename << capture_filename_ << "_"
384-
<< "inlineUniformBlock_set_" << resource_info.set << "_binding_" << resource_info.binding << "_qs_"
385-
<< resource_info.qs_index << "_bcb_" << resource_info.bcb_index << ".bin";
382+
filename << capture_filename_ << "_" << "inlineUniformBlock_set_" << resource_info.set << "_binding_"
383+
<< resource_info.binding << "_qs_" << resource_info.qs_index << "_bcb_" << resource_info.bcb_index
384+
<< ".bin";
386385

387386
std::filesystem::path filedirname(options_.dump_resources_output_dir);
388387
std::filesystem::path filebasename(filename.str());
@@ -401,10 +400,9 @@ std::string
401400
DefaultVulkanDumpResourcesDelegate::GenerateVertexBufferFilename(const VulkanDumpResourceInfo& resource_info) const
402401
{
403402
std::stringstream filename;
404-
filename << capture_filename_ << "_"
405-
<< "vertexBuffers_"
406-
<< "qs_" << resource_info.qs_index << "_bcb_" << resource_info.bcb_index << "_dc_"
407-
<< resource_info.cmd_index << "_binding_" << resource_info.binding << ".bin";
403+
filename << capture_filename_ << "_" << "vertexBuffers_" << "qs_" << resource_info.qs_index << "_bcb_"
404+
<< resource_info.bcb_index << "_dc_" << resource_info.cmd_index << "_binding_" << resource_info.binding
405+
<< ".bin";
408406

409407
std::filesystem::path filedirname(options_.dump_resources_output_dir);
410408
std::filesystem::path filebasename(filename.str());
@@ -425,8 +423,7 @@ DefaultVulkanDumpResourcesDelegate::GenerateIndexBufferFilename(const VulkanDump
425423
std::stringstream filename;
426424
filename << capture_filename_ << "_";
427425
std::string index_type_name = IndexTypeToStr(resource_info.index_type);
428-
filename << "indexBuffer_"
429-
<< "qs_" << resource_info.qs_index << "_bcb_" << resource_info.bcb_index << "_dc_"
426+
filename << "indexBuffer_" << "qs_" << resource_info.qs_index << "_bcb_" << resource_info.bcb_index << "_dc_"
430427
<< resource_info.cmd_index << index_type_name << ".bin";
431428

432429
std::filesystem::path filedirname(options_.dump_resources_output_dir);
@@ -1275,7 +1272,7 @@ void DefaultVulkanDumpResourcesDelegate::GenerateOutputJsonDispatchInfo(const Vu
12751272
!options_.dump_resources_json_per_command ? current_block["dispatchCommands"] : dump_json_.GetData();
12761273

12771274
static uint64_t unique_json_entry = 0;
1278-
auto& dispatch_json_entry =
1275+
auto& dispatch_json_entry =
12791276
!options_.dump_resources_json_per_command ? dispatch_json_entries[unique_json_entry++] : dump_json_.GetData();
12801277

12811278
dispatch_json_entry["dispatchIndex"] = draw_call_info.cmd_index;
@@ -1740,7 +1737,8 @@ void DefaultVulkanDumpResourcesDelegate::GenerateOutputJsonTraceRaysIndex(const
17401737
}
17411738

17421739
static uint64_t unique_json_entry = 0;
1743-
auto& tr_entry = !options_.dump_resources_json_per_command ? tr_json_entries[unique_json_entry++] : dump_json_.GetData();
1740+
auto& tr_entry =
1741+
!options_.dump_resources_json_per_command ? tr_json_entries[unique_json_entry++] : dump_json_.GetData();
17441742

17451743
tr_entry["traceRaysIndex"] = draw_call_info.cmd_index;
17461744
tr_entry["beginCommandBufferIndex"] = draw_call_info.bcb_index;

framework/decode/vulkan_replay_dump_resources_draw_calls.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ DrawCallsDumpingContext::DrawCallsDumpingContext(const std::vector<uint64_t>&
5959
CommonObjectInfoTable& object_info_table,
6060
const VulkanReplayOptions& options,
6161
VulkanDumpResourcesDelegate& delegate) :
62-
original_command_buffer_info(nullptr),
63-
current_cb_index(0), dc_indices(dc_indices), RP_indices(rp_indices), active_renderpass(nullptr),
64-
active_framebuffer(nullptr), bound_pipelines{ nullptr }, current_renderpass(0), current_subpass(0),
65-
dump_resources_before(options.dump_resources_before), aux_command_buffer(VK_NULL_HANDLE), aux_fence(VK_NULL_HANDLE),
66-
device_table(nullptr), instance_table(nullptr), object_info_table(object_info_table),
62+
original_command_buffer_info(nullptr), current_cb_index(0), dc_indices(dc_indices), RP_indices(rp_indices),
63+
active_renderpass(nullptr), active_framebuffer(nullptr), bound_pipelines{ nullptr }, current_renderpass(0),
64+
current_subpass(0), dump_resources_before(options.dump_resources_before), aux_command_buffer(VK_NULL_HANDLE),
65+
aux_fence(VK_NULL_HANDLE), device_table(nullptr), instance_table(nullptr), object_info_table(object_info_table),
6766
replay_device_phys_mem_props(nullptr), delegate_(delegate), dump_depth(options.dump_resources_dump_depth),
6867
color_attachment_to_dump(options.dump_resources_color_attachment_index),
6968
dump_vertex_index_buffers(options.dump_resources_dump_vertex_index_buffer),

0 commit comments

Comments
 (0)