Skip to content

Commit 31f052c

Browse files
committed
format code
1 parent 8ab351e commit 31f052c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tools/gfx/renderer-shared.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1178,8 +1178,8 @@ Result ShaderProgramBase::compileShaders(RendererBase* device)
11781178
{
11791179
ComPtr<slang::IBlob> diagnosticsBlob;
11801180
auto result = precompileService->getPrecompiledTargetCode(
1181-
compileTarget,
1182-
downstreamIR.writeRef(),
1181+
compileTarget,
1182+
downstreamIR.writeRef(),
11831183
diagnosticsBlob.writeRef());
11841184
if (result == SLANG_OK)
11851185
{

tools/gfx/vulkan/vk-shader-program.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// vk-shader-program.cpp
22
#include "vk-shader-program.h"
33

4+
#include "external/spirv-tools/include/spirv-tools/linker.hpp"
45
#include "vk-device.h"
56
#include "vk-util.h"
67

7-
#include "external/spirv-tools/include/spirv-tools/linker.hpp"
8-
98
namespace gfx
109
{
1110

@@ -71,14 +70,14 @@ VkPipelineShaderStageCreateInfo ShaderProgramImpl::compileEntryPoint(
7170
return shaderStageCreateInfo;
7271
}
7372

74-
static ComPtr<ISlangBlob> LinkUsingSPIRVTools(List<ComPtr<ISlangBlob> > kernelCodes)
73+
static ComPtr<ISlangBlob> LinkUsingSPIRVTools(List<ComPtr<ISlangBlob>> kernelCodes)
7574
{
7675
spvtools::Context context(SPV_ENV_UNIVERSAL_1_5);
7776
spvtools::LinkerOptions options;
7877
spvtools::MessageConsumer consumer = [](spv_message_level_t level,
79-
const char* source,
80-
const spv_position_t& position,
81-
const char* message)
78+
const char* source,
79+
const spv_position_t& position,
80+
const char* message)
8281
{
8382
printf("SPIRV-TOOLS: %s\n", message);
8483
printf("SPIRV-TOOLS: %s\n", source);
@@ -108,7 +107,8 @@ static ComPtr<ISlangBlob> LinkUsingSPIRVTools(List<ComPtr<ISlangBlob> > kernelCo
108107

109108
// Replace kernel code with linked binary
110109
// Creates a new blob with the linked binary
111-
linkedKernelCode = RawBlob::create(linked_binary.data(), linked_binary.size() * sizeof(uint32_t));
110+
linkedKernelCode =
111+
RawBlob::create(linked_binary.data(), linked_binary.size() * sizeof(uint32_t));
112112

113113
return linkedKernelCode;
114114
}

0 commit comments

Comments
 (0)