Jump to content
  • Advertisement
Sign in to follow this  
ADDMX

DX12 How to create IDxcBlob ?

Recommended Posts

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)

Share this post


Link to post
Share on other sites
Advertisement

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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!