Skip to content

Commit 345f101

Browse files
committed
rename HLSLtoSPIRV -> LoadSPIRVFromHLSL
1 parent d13d135 commit 345f101

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/DiligentCoreTest/src/ShaderTools/SPIRVShaderResourcesTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct SPIRVShaderResourceRefAttribs
8888

8989
static_assert(sizeof(SPIRVShaderResourceRefAttribs) == sizeof(SPIRVShaderResourceAttribs), "Size of SPIRVShaderResourceRefAttribs struct must be equal to SPIRVShaderResourceAttribs");
9090

91-
std::vector<unsigned int> HLSLtoSPIRV(const char* FilePath, SHADER_TYPE ShaderType = SHADER_TYPE_PIXEL)
91+
std::vector<unsigned int> LoadSPIRVFromHLSL(const char* FilePath, SHADER_TYPE ShaderType = SHADER_TYPE_PIXEL)
9292
{
9393
std::vector<unsigned int> SPIRV;
9494

@@ -137,7 +137,7 @@ std::vector<unsigned int> HLSLtoSPIRV(const char* FilePath, SHADER_TYPE ShaderTy
137137
return SPIRV;
138138
}
139139

140-
std::vector<unsigned int> GLSLtoSPIRV(const char* FilePath, SHADER_TYPE ShaderType = SHADER_TYPE_PIXEL)
140+
std::vector<unsigned int> LoadSPIRVFromGLSL(const char* FilePath, SHADER_TYPE ShaderType = SHADER_TYPE_PIXEL)
141141
{
142142
std::vector<unsigned int> SPIRV;
143143

@@ -216,7 +216,7 @@ void TestSPIRVResources(const char* FilePa
216216
const char* CombinedSamplerSuffix = nullptr,
217217
bool IsGLSL = false)
218218
{
219-
const auto SPIRV = IsGLSL ? GLSLtoSPIRV(FilePath, ShaderType) : HLSLtoSPIRV(FilePath, ShaderType);
219+
const auto SPIRV = IsGLSL ? LoadSPIRVFromGLSL(FilePath, ShaderType) : LoadSPIRVFromHLSL(FilePath, ShaderType);
220220
ASSERT_FALSE(SPIRV.empty()) << "Failed to compile HLSL to SPIRV: " << FilePath;
221221

222222
ShaderDesc ShaderDesc;

0 commit comments

Comments
 (0)