(0) exportieren Drucken
Alle erweitern
0 von 1 fanden dies hilfreich - Dieses Thema bewerten.

ID3D11Device::CreateRenderTargetView Method

Create a render-target view for accessing resource data.

Syntax

HRESULT CreateRenderTargetView(
  [in]   ID3D11Resource *pResource,
  [in]   const D3D11_RENDER_TARGET_VIEW_DESC *pDesc,
  [out]  ID3D11RenderTargetView **ppRTView
);

Parameter

pResource [in]

Typ: ID3D11Resource*

Pointer to a ID3D11Resource which represents a render target. This resource must have been created with the D3D11_BIND_RENDER_TARGET flag.

pDesc [in]

Typ: const D3D11_RENDER_TARGET_VIEW_DESC*

Pointer to a D3D11_RENDER_TARGET_VIEW_DESC which represents a render-target-view description. Set this parameter to NULL to create a view that accesses all of the subresources in mipmap level 0.

ppRTView [out]

Typ: ID3D11RenderTargetView**

Address of a pointer to an ID3D11RenderTargetView. Set this parameter to NULL to validate the other input parameters (the method will return S_FALSE if the other input parameters pass validation).

Rückgabewert

Typ: HRESULT

This method returns one of the following Direct3D 11 Return Codes.

Hinweise

A render-target view can be bound to the output-merger stage by calling ID3D11DeviceContext::OMSetRenderTargets.

Anforderungen

Header

D3D11.h

Bibliothek

D3D11.lib

Siehe auch

ID3D11Device

 

 

Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
Vielen Dank für Ihr Feedback.
Anzeigen:
© 2014 Microsoft. Alle Rechte vorbehalten.