Skip to content

Commit 647c4d0

Browse files
committed
Fix “spirv-tools/libspirv.h”: No such file or directory.
1 parent 85992f4 commit 647c4d0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Tests/DiligentCoreTest/src/ShaderTools/SPIRVShaderResourcesTest.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#include "SPIRVShaderResources.hpp"
2828
#include "GLSLangUtils.hpp"
29-
#include "SPIRVTools.hpp"
3029
#include "DXCompiler.hpp"
3130
#include "DefaultShaderSourceStreamFactory.h"
3231
#include "RefCntAutoPtr.hpp"
@@ -38,6 +37,15 @@
3837
#include <vector>
3938

4039
#include "TestingEnvironment.hpp"
40+
41+
// Forward declaration for ConvertUBOToPushConstants from SPIRVTools.hpp
42+
// We cannot include SPIRVTools.hpp directly because it depends on spirv-tools headers
43+
namespace Diligent
44+
{
45+
std::vector<uint32_t> ConvertUBOToPushConstants(const std::vector<uint32_t>& SPIRV,
46+
const std::string& BlockName);
47+
}
48+
4149
#include "gtest/gtest.h"
4250

4351
using namespace Diligent;

0 commit comments

Comments
 (0)