@@ -19,34 +19,35 @@ class DxcDllExtValidationLoader : public DllLoader {
19
19
return !DxilDllPath.empty () && !DxilExtValSupport.IsEnabled ();
20
20
}
21
21
22
- HRESULT CreateInstanceImpl (REFCLSID clsid, REFIID riid, IUnknown **pResult);
22
+ HRESULT CreateInstanceImpl (REFCLSID clsid, REFIID riid,
23
+ IUnknown **pResult) override ;
23
24
HRESULT CreateInstance2Impl (IMalloc *pMalloc, REFCLSID clsid, REFIID riid,
24
- IUnknown **pResult);
25
+ IUnknown **pResult) override ;
25
26
26
27
HRESULT Initialize () { return InitializeInternal (" DxcCreateInstance" ); }
27
28
28
29
/* Note, OverrideDll takes this dll argument and ignores it
29
30
to satisfy the IDllLoader interface. The parameter is ignored
30
31
because the relevant dlls are specific and known: dxcompiler.dll
31
32
and dxil.dll. This class is not designed to handle any other dlls */
32
- HRESULT OverrideDll (LPCSTR dll, LPCSTR entryPoint) {
33
+ HRESULT OverrideDll (LPCSTR dll, LPCSTR entryPoint) override {
33
34
return InitializeInternal (entryPoint);
34
35
}
35
36
36
- bool HasCreateWithMalloc () const {
37
+ bool HasCreateWithMalloc () const override {
37
38
assert (DxCompilerSupport.HasCreateWithMalloc () &&
38
39
DxilExtValSupport.HasCreateWithMalloc ());
39
40
return true ;
40
41
}
41
42
42
- bool IsEnabled () const { return DxCompilerSupport.IsEnabled (); }
43
+ bool IsEnabled () const override { return DxCompilerSupport.IsEnabled (); }
43
44
44
45
void Cleanup () override {
45
46
DxilExtValSupport.Cleanup ();
46
47
DxCompilerSupport.Cleanup ();
47
48
}
48
49
49
- HMODULE Detach () {
50
+ HMODULE Detach () override {
50
51
// Can't Detach and return a handle for DxilSupport. Cleanup() instead.
51
52
DxilExtValSupport.Cleanup ();
52
53
return DxCompilerSupport.Detach ();
0 commit comments