Advertisement

How to create IDxcBlob ?

Started by May 23, 2019 06:26 PM
2 comments, last by ADDMX 5 years, 8 months ago

Silly question - how to create IDxcBlob ?

I have result from IDxcCompiler loaded from disk (say std::vector<uint8>) - how can I create IDxcBlob from it to for example explore content of those data using IDxcContainerReflection

(IDxcContainerReflection::Load accepts only IDxcBlob)

You can create your own class that implements the interface of IDxcBlob around the data you loaded. The interface isn't hard: it's IUnknown (which probably won't even be used by the reflection layer), plus a getter for data and size.

Advertisement

OK, fine for me, I'v asked because the old compiler api has D3DCreateBlob, so I thought there will be something similar in new API

Thanks!

This topic is closed to new replies.

Advertisement