File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1178,8 +1178,8 @@ Result ShaderProgramBase::compileShaders(RendererBase* device)
1178
1178
{
1179
1179
ComPtr<slang::IBlob> diagnosticsBlob;
1180
1180
auto result = precompileService->getPrecompiledTargetCode (
1181
- compileTarget,
1182
- downstreamIR.writeRef (),
1181
+ compileTarget,
1182
+ downstreamIR.writeRef (),
1183
1183
diagnosticsBlob.writeRef ());
1184
1184
if (result == SLANG_OK)
1185
1185
{
Original file line number Diff line number Diff line change 1
1
// vk-shader-program.cpp
2
2
#include " vk-shader-program.h"
3
3
4
+ #include " external/spirv-tools/include/spirv-tools/linker.hpp"
4
5
#include " vk-device.h"
5
6
#include " vk-util.h"
6
7
7
- #include " external/spirv-tools/include/spirv-tools/linker.hpp"
8
-
9
8
namespace gfx
10
9
{
11
10
@@ -71,14 +70,14 @@ VkPipelineShaderStageCreateInfo ShaderProgramImpl::compileEntryPoint(
71
70
return shaderStageCreateInfo;
72
71
}
73
72
74
- static ComPtr<ISlangBlob> LinkUsingSPIRVTools (List<ComPtr<ISlangBlob> > kernelCodes)
73
+ static ComPtr<ISlangBlob> LinkUsingSPIRVTools (List<ComPtr<ISlangBlob>> kernelCodes)
75
74
{
76
75
spvtools::Context context (SPV_ENV_UNIVERSAL_1_5);
77
76
spvtools::LinkerOptions options;
78
77
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)
82
81
{
83
82
printf (" SPIRV-TOOLS: %s\n " , message);
84
83
printf (" SPIRV-TOOLS: %s\n " , source);
@@ -108,7 +107,8 @@ static ComPtr<ISlangBlob> LinkUsingSPIRVTools(List<ComPtr<ISlangBlob> > kernelCo
108
107
109
108
// Replace kernel code with linked binary
110
109
// 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 ));
112
112
113
113
return linkedKernelCode;
114
114
}
You can’t perform that action at this time.
0 commit comments