Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Acquiring an ID3D11DeviceContext

I'm trying to port a library that does some of its own Direct3D rendering. I can't figure out any way to retrieve a Direct3DDevice or Direct3DDeviceContext from Unreal itself, however. Is there any way to accomplish this? From what I'm looking at now, it seems like I can maybe-theoretically retrieve the RHI via GDynamicRHI. But even once I have the RHI, it seems like FD3D11DynamicRHI is locked-down as private, and there's no way I can retrieve it on its own, to say nothing of extracting the ID3D11Device from it.

Does UE4 make it impossible for addon libraries to make direct rendering calls? Will I have to modify the UE4 source code to accomplish this?

(Which will be something of a problem, because I want to be able to distribute a version of this that can be connected to UE4 without needing source changes!)

Product Version: Not Selected
more ▼

asked Jun 15 '14 at 07:56 PM in Rendering

avatar image

220 13 20 159

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Currently I don't believe there is any way to get the native device through RHI. Have a look at the following PR. With these changes you will be able to get access to the native device from anywhere. If the changes are approved. Otherwise you could implement the changes yourself (Although I know it goes against what you want, distributing a version without modifying the engine, but could be a temporary workaround)

Pull Request for Native Device access

more ▼

answered Jun 16 '14 at 07:38 AM

avatar image

1.5k 50 9 59

avatar image ZorbaTHut Jun 16 '14 at 10:21 AM

Yep, that looks like roughly the answer I was expecting. If the CoherentUI team can't do it, I sure can't do it :) Many thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question