Class DxgiSwapChainExtensions
Swap chain extensions.
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public static class DxgiSwapChainExtensions
Methods
| Edit this page View SourceGetTexture2D(DxgiSwapChain, uint)
Accesses one of the swap-chain's back buffers, viewed as a 2D texture.
Declaration
public static D3D11Texture2D GetTexture2D(this DxgiSwapChain swapChain, uint buffer)
Parameters
Type | Name | Description |
---|---|---|
DxgiSwapChain | swapChain | The swap chain. |
uint | buffer | A zero-based buffer index. |
Returns
Type | Description |
---|---|
D3D11Texture2D | A 2D texture. |
GetTexture2D(DxgiSwapChain1, uint)
Accesses one of the swap-chain's back buffers, viewed as a 2D texture.
Declaration
public static D3D11Texture2D GetTexture2D(this DxgiSwapChain1 swapChain, uint buffer)
Parameters
Type | Name | Description |
---|---|---|
DxgiSwapChain1 | swapChain | The swap chain. |
uint | buffer | A zero-based buffer index. |
Returns
Type | Description |
---|---|
D3D11Texture2D | A 2D texture. |
GetTexture2D(DxgiSwapChain2, uint)
Accesses one of the swap-chain's back buffers, viewed as a 2D texture.
Declaration
public static D3D11Texture2D GetTexture2D(this DxgiSwapChain2 swapChain, uint buffer)
Parameters
Type | Name | Description |
---|---|---|
DxgiSwapChain2 | swapChain | The swap chain. |
uint | buffer | A zero-based buffer index. |
Returns
Type | Description |
---|---|
D3D11Texture2D | A 2D texture. |
GetTexture2D(DxgiSwapChain3, uint)
Accesses one of the swap-chain's back buffers, viewed as a 2D texture.
Declaration
public static D3D11Texture2D GetTexture2D(this DxgiSwapChain3 swapChain, uint buffer)
Parameters
Type | Name | Description |
---|---|---|
DxgiSwapChain3 | swapChain | The swap chain. |
uint | buffer | A zero-based buffer index. |
Returns
Type | Description |
---|---|
D3D11Texture2D | A 2D texture. |