Skip to content

Commit c527502

Browse files
committed
add crucial headers
1 parent d7d1936 commit c527502

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/dxc/Support/dxcapi.use.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ class DxcDllSupport {
137137

138138
bool IsEnabled() const { return m_dll != nullptr; }
139139

140+
bool GetCreateInstanceProcs(DxcCreateInstanceProc *pCreateFn,
141+
DxcCreateInstance2Proc *pCreateFn2) const {
142+
if (pCreateFn == nullptr || pCreateFn2 == nullptr ||
143+
m_createFn == nullptr)
144+
return false;
145+
*pCreateFn = m_createFn;
146+
*pCreateFn2 = m_createFn2;
147+
return true;
148+
}
149+
140150
void virtual Cleanup() {
141151
if (m_dll != nullptr) {
142152
m_createFn = nullptr;

0 commit comments

Comments
 (0)