Skip to content

Commit 73c96bf

Browse files
authored
Add inline GetBlobAsUtf16 methods for back-compat (#4490)
1 parent 6962799 commit 73c96bf

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

include/dxc/dxcapi.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,14 @@ struct IDxcLibrary : public IUnknown {
261261
// Renamed from GetBlobAsUtf16 to GetBlobAsWide
262262
virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide(
263263
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0;
264+
265+
#ifdef _WIN32
266+
// Alias to GetBlobAsWide on Win32
267+
inline HRESULT GetBlobAsUtf16(
268+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) {
269+
return this->GetBlobAsWide(pBlob, pBlobEncoding);
270+
}
271+
#endif
264272
};
265273

266274
// NOTE: IDxcResult replaces IDxcOperationResult
@@ -418,6 +426,14 @@ struct IDxcUtils : public IUnknown {
418426
virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide(
419427
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobWide **pBlobEncoding) = 0;
420428

429+
#ifdef _WIN32
430+
// Alias to GetBlobAsWide on Win32
431+
inline HRESULT GetBlobAsUtf16(
432+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobWide **pBlobEncoding) {
433+
return this->GetBlobAsWide(pBlob, pBlobEncoding);
434+
}
435+
#endif
436+
421437
virtual HRESULT STDMETHODCALLTYPE GetDxilContainerPart(
422438
_In_ const DxcBuffer *pShader,
423439
_In_ UINT32 DxcPart,

0 commit comments

Comments
 (0)