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 writing an render program with Vortice.windows, I use c# wpf as picture display and TqkLibrary.Wpf.Interop.DirectX.D3D11Image as wpf image source.
I create my device use following code,
The HLSL is very simple, 2D draw a CT and 3D draw cube, But I find I always draw the 3D result in 2D renderTargetView.
Yan can see the green cube in 2D window, it is in 3D window!
If I try use context.UnsetRenderTargets() to reset 3D canvas renderTargetView before set 3D renderTargetView, the cube will not display!
You can see the green cube don't display when I use context.UnsetRenderTargets() befere set renderTargetView in 3D canvas.
I try use context.UnsetRenderTargets() befere set renderTargetView in 2D canvas. The 2D render result display normal.
Why? Use same way to create RenderTargetView, Why renderTargetView who in 3D canvans is no effective when I set it?
I guess the reason is set renderTargetView no effective in 3D canvans, but I don't know where the bug it is. Can you help me find the bug?
The text was updated successfully, but these errors were encountered:
I am writing an render program with Vortice.windows, I use c# wpf as picture display and
TqkLibrary.Wpf.Interop.DirectX.D3D11Image
as wpf image source.I create my device use following code,
And all canvas and actor use the same device.
Then, I init my renderTarget in my canvas, I has two kinds of canvas, one is 2D and another is 3D
2D canvas is:
3D cavans is:
when init 2D and 3D canvas, I create some actor to draw 2D and 3D, they are will be used in 2d canvas and 3D canvas
2D actor code
And 3D actor code is
The HLSL is very simple, 2D draw a CT and 3D draw cube, But I find I always draw the 3D result in 2D renderTargetView.
Yan can see the green cube in 2D window, it is in 3D window!
If I try use
context.UnsetRenderTargets()
to reset 3D canvas renderTargetView before set 3D renderTargetView, the cube will not display!You can see the green cube don't display when I use
context.UnsetRenderTargets()
befere set renderTargetView in 3D canvas.I try use
context.UnsetRenderTargets()
befere set renderTargetView in 2D canvas. The 2D render result display normal.Why? Use same way to create RenderTargetView, Why renderTargetView who in 3D canvans is no effective when I set it?
I guess the reason is set renderTargetView no effective in 3D canvans, but I don't know where the bug it is. Can you help me find the bug?
The text was updated successfully, but these errors were encountered: