summaryrefslogtreecommitdiffstats
path: root/Graphics/HLSL2GLSLConverterLib
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-01-27 19:01:19 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-01-27 19:01:19 +0000
commit10cd33e0e314cc02ac9779130b8cf9cc38867b4b (patch)
tree128d77a72818216a081b81bfde0d5e8e92292339 /Graphics/HLSL2GLSLConverterLib
parentImplemented D3D11 engine C interface (mostly) (diff)
downloadDiligentCore-10cd33e0e314cc02ac9779130b8cf9cc38867b4b.tar.gz
DiligentCore-10cd33e0e314cc02ac9779130b8cf9cc38867b4b.zip
Reworked C interfaces to share declaration with c++
Diffstat (limited to 'Graphics/HLSL2GLSLConverterLib')
-rw-r--r--Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
index d8c0d8c2..2184de59 100644
--- a/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
+++ b/Graphics/HLSL2GLSLConverterLib/src/HLSL2GLSLConverterImpl.cpp
@@ -1057,7 +1057,7 @@ void HLSL2GLSLConverterImpl::ConversionStream::InsertIncludes(String& GLSLSource
if (!pIncludeDataStream)
LOG_ERROR_AND_THROW("Failed to open include file ", IncludeName);
RefCntAutoPtr<IDataBlob> pIncludeData(MakeNewRCObj<DataBlobImpl>()(0));
- pIncludeDataStream->Read(pIncludeData);
+ pIncludeDataStream->ReadBlob(pIncludeData);
// Get include text
auto IncludeText = reinterpret_cast<const Char*>(pIncludeData->GetDataPtr());
@@ -4587,7 +4587,7 @@ HLSL2GLSLConverterImpl::ConversionStream::ConversionStream(IReferenceCounters*
LOG_ERROR_AND_THROW("Failed to open shader source file ", InputFileName);
pFileData = MakeNewRCObj<DataBlobImpl>()(0);
- pSourceStream->Read(pFileData);
+ pSourceStream->ReadBlob(pFileData);
HLSLSource = reinterpret_cast<char*>(pFileData->GetDataPtr());
NumSymbols = pFileData->GetSize();
}