![]() |
![]() |
![]() |
SwapChain.GetBackBuffer Method |
Language: |
Retrieves a back buffer from the swap chain of a device.
Visual Basic .NET Public Function GetBackBuffer( _
ByVal backBuffer As Integer, _
ByVal typeBuffer As BackBufferType _
) As SurfaceC# public Surface GetBackBuffer(
int backBuffer,
BackBufferType typeBuffer
);Managed C++ public: Surface* GetBackBuffer(
int backBuffer,
BackBufferType typeBuffer
);JScript .NET public function GetBackBuffer(
backBuffer : int,
typeBuffer : BackBufferType
) : Surface;
backBuffer System.Int32. Index of the back buffer object to return. See Remarks. typeBuffer Microsoft.DirectX.Direct3D.BackBufferType. Because stereo view is not supported in Microsoft® DirectX® 9.0, the only valid value for this parameter is Mono.
Microsoft.DirectX.Direct3D.Surface . A Surface object that represents the returned back buffer surface.
Back buffers are numbered from 0 to the total number of back buffers - 1. A value of 0 returns the first back buffer, not the front buffer. The front buffer is not accessible through this method.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center