Skip to content

Commit 7eaa2f5

Browse files
committed
merge fixes
1 parent 8f931b9 commit 7eaa2f5

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

include/nbl/asset/utils/CHLSLCompiler.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
#include "nbl/asset/utils/ISPIRVOptimizer.h"
99
#include "nbl/asset/utils/IShaderCompiler.h"
1010

11+
class IDxcUtils;
12+
class IDxcCompiler3;
13+
class DxcCompilationResult;
14+
1115
#include <wrl.h>
1216
#include <combaseapi.h>
13-
#include <dxc/dxc/include/dxc/dxcapi.h>
14-
15-
using Microsoft::WRL::ComPtr;
1617

1718
namespace nbl::asset
1819
{
@@ -49,8 +50,8 @@ class NBL_API2 CHLSLCompiler final : public IShaderCompiler
4950
void insertIntoStart(std::string& code, std::ostringstream&& ins) const override;
5051
protected:
5152

52-
ComPtr<IDxcUtils> m_dxcUtils;
53-
ComPtr<IDxcCompiler3> m_dxcCompiler;
53+
Microsoft::WRL::ComPtr<IDxcUtils> m_dxcUtils;
54+
Microsoft::WRL::ComPtr<IDxcCompiler3> m_dxcCompiler;
5455

5556
DxcCompilationResult dxcCompile(std::string& source, LPCWSTR* args, uint32_t argCount, const CHLSLCompiler::SOptions& options) const;
5657

src/nbl/asset/utils/CHLSLCompiler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include "nbl/asset/utils/CHLSLCompiler.h"
55
#include "nbl/asset/utils/shadercUtils.h"
66

7+
#include <dxc/dxcapi.h>
8+
79
#include <sstream>
810
#include <regex>
911
#include <iterator>
@@ -14,6 +16,7 @@
1416

1517
using namespace nbl;
1618
using namespace nbl::asset;
19+
using Microsoft::WRL::ComPtr;
1720

1821
CHLSLCompiler::CHLSLCompiler(core::smart_refctd_ptr<system::ISystem>&& system)
1922
: IShaderCompiler(std::move(system))

0 commit comments

Comments
 (0)