You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am now using it with d3d11 sharedTexture In WPF d3dImage.
I have tested with the code below but it does not work.
(sharedTexture is a texture that can be shared by d3d9)
I tried the following method first, but the return value of overrideInternal() is 0.
bgfx::renderFrame();
bgfx::Init init;
(settings...)
bgfx::init(init); // success
CreateD3DDevice();
CreateSharedTexture();
// ret is 0
auto ret = bgfx::overrideInternal(m_bgfxTexture, (uintptr_t)m_sharedHandle);
Also, if bgfx::renderFrame() is not called first, an error occurs in overrideInternal.
In this case, the error occurs whether single-threaded or multithreaded (calling overrideInternal in a separate thread).
Is there any solution to this problem?
Or is it unsupported for sharedHandle in d3d11 (corresponding to d3d9)?
If this is not possible, we will honestly use d3d11 only.
Thanks for reading.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am now using it with d3d11 sharedTexture In WPF d3dImage.
I have tested with the code below but it does not work.
(sharedTexture is a texture that can be shared by d3d9)
I tried the following method first, but the return value of overrideInternal() is 0.
Also, if bgfx::renderFrame() is not called first, an error occurs in overrideInternal.
In this case, the error occurs whether single-threaded or multithreaded (calling overrideInternal in a separate thread).
Is there any solution to this problem?
Or is it unsupported for sharedHandle in d3d11 (corresponding to d3d9)?
If this is not possible, we will honestly use d3d11 only.
Thanks for reading.
Beta Was this translation helpful? Give feedback.
All reactions