# DX10View_InitViewport DirectX 10 Callback Reference

        RTSHADER_API HRESULT DX10View_InitViewport
        (
            int     x,
            int     y,
            int     width,
            int     height
        );

Instructs DX10View_Initialize how to create and initialize the render target (tagDX10ViewGlobals::m_pRenderTargetView) using the specified parameters.

Parameters:

  | x | X coordinate for viewport location
  | y | Y coordinate for viewport location
  | width | Width of the viewport
  | height | Height of the viewport

See also:
  tagDX10ViewGlobals, DirectX10 Callbacks

Since:
  7.0