Set all the elements in a render target to one value.
public:
void ClearRenderTargetView(
ID3D11RenderTargetView *pRenderTargetView,
const FLOAT ColorRGBA[4]
)
pRenderTargetView
Type: ID3D11RenderTargetView *
[in] Pointer to the rendertarget.
ColorRGBA
Type: FLOAT
[in] A 4-component array that represents the color to fill the render target with.
Applications that wish to clear a render target to a specific integer value bit pattern should render a screen-aligned quad instead of using this method. The reason for this is because this method accepts as input a floating point value, which may not have the same bit pattern as the original integer.
The full extent of the resource view is always cleared. Viewport and scissor settings are not applied.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).
Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).