Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

D3D11 Header Files out parameters problem

$
0
0

I have a small code like this:

 

var

  rtv_in, rtv_out: ID3D11RenderTargetView;

  dsv_in, dsv_out: ID3D11DepthStencilView;

begin

  //... some code here to setup rtv_in and dsv_in;

  TCustomDX11Context.SharedContext.OMSetRenderTargetViews(1, rtv_in, dsv_in);

  TCustomDX11Context.SharedContext.OMGetRenderTargetView(1, rtv_out, dsv_out);  

 

after this line rtv_out and dsv_out returns nil. But if I use some other DirectX translation (other than Winapi.D3D11) with some changes (like using PID3D11RenderTargetView instead and etc); it works fine.

 

Am I using this wrong or is there a problem in the API translation?

 


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>