Skip to content

Commit 5cbab29

Browse files
committed
fix formatting
1 parent d7e235d commit 5cbab29

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Tests/DiligentCoreTest/src/ShaderTools/SPIRVShaderResourcesTest.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ std::vector<unsigned int> LoadSPIRVFromGLSL(const char* FilePath, SHADER_TYPE Sh
175175
return GLSLangUtils::GLSLtoSPIRV(Attribs);
176176
}
177177

178-
void TestSPIRVResourcesInternal(const char* FilePath,
179-
const std::vector<SPIRVShaderResourceRefAttribs>& RefResources,
180-
const std::vector<unsigned int>& SPIRV,
181-
SHADER_TYPE ShaderType = SHADER_TYPE_PIXEL,
182-
const char* CombinedSamplerSuffix = nullptr)
178+
void TestSPIRVResourcesInternal(const char* FilePath,
179+
const std::vector<SPIRVShaderResourceRefAttribs>& RefResources,
180+
const std::vector<unsigned int>& SPIRV,
181+
SHADER_TYPE ShaderType = SHADER_TYPE_PIXEL,
182+
const char* CombinedSamplerSuffix = nullptr)
183183
{
184184
ShaderDesc ShaderDesc;
185185
ShaderDesc.Name = "SPIRVResources test";
@@ -233,14 +233,13 @@ void TestSPIRVResources(const char* FilePa
233233
bool IsGLSL = false)
234234
{
235235
const auto& SPIRV = IsGLSL ? LoadSPIRVFromGLSL(FilePath, ShaderType) : LoadSPIRVFromHLSL(FilePath, ShaderType);
236-
ASSERT_FALSE(SPIRV.empty()) <<
237-
(IsGLSL ?
238-
"Failed to compile GLSL to SPIRV with glslang: " :
239-
"Failed to compile HLSL to SPIRV with glslang: "
240-
) << FilePath;
236+
ASSERT_FALSE(SPIRV.empty()) << (IsGLSL ?
237+
"Failed to compile GLSL to SPIRV with glslang: " :
238+
"Failed to compile HLSL to SPIRV with glslang: ")
239+
<< FilePath;
241240

242241
LOG_INFO_MESSAGE(IsGLSL ? "Testing with GLSL->SPIRV with glslang:\n" : "Testing with HLSL->SPIRV with glslang:\n", FilePath);
243-
242+
244243
TestSPIRVResourcesInternal(FilePath, RefResources, SPIRV, ShaderType, CombinedSamplerSuffix);
245244

246245
if (!IsGLSL)
@@ -250,7 +249,7 @@ void TestSPIRVResources(const char* FilePa
250249
ASSERT_FALSE(SPIRV_DXC.empty()) << "Failed to compile HLSL to SPIRV with DXC: " << FilePath;
251250

252251
LOG_INFO_MESSAGE("Testing with HLSL->SPIRV with DXC:\n", FilePath);
253-
252+
254253
TestSPIRVResourcesInternal(FilePath, RefResources, SPIRV_DXC, ShaderType, CombinedSamplerSuffix);
255254
}
256255
}

0 commit comments

Comments
 (0)