CD3DX12_VIEWPORT 結構
[某些資訊與發行前的產品有關,在正式發行前可能會大幅修改。 Microsoft 不會就此處提供的資訊提供任何明示或默示擔保。
協助程序結構,可讓您輕鬆初始化 D3D12_VIEWPORT 結構。
語法
struct CD3DX12_VIEWPORT : public D3D12_VIEWPORT{
CD3DX12_VIEWPORT();
explicit CD3DX12_VIEWPORT(const D3D12_VIEWPORT& o);
explicit CD3DX12_VIEWPORT(FLOAT topLeftX, FLOAT topLeftY, FLOAT width, FLOAT height, FLOAT minDepth = D3D12_MIN_DEPTH, FLOAT maxDepth = D3D12_MAX_DEPTH);
explicit CD3DX12_VIEWPORT(ID3D12Resource* pResource, UINT mipSlice = 0, FLOAT topLeftX = 0.0f, FLOAT topLeftY = 0.0f, FLOAT minDepth = D3D12_MIN_DEPTH, FLOAT maxDepth = D3D12_MAX_DEPTH);
~CD3DX12_VIEWPORT();
operator const D3D12_VIEWPORT&() const;
};
成員
-
CD3DX12_VIEWPORT()
-
建立CD3DX12_VIEWPORT的新未初始化實例。
-
explicit CD3DX12_VIEWPORT(const D3D12_VIEWPORT& o)
-
建立CD3DX12_VIEWPORT的新實例,初始化下列參數:
const D3D12_VIEWPORT& o
-
explicit CD3DX12_VIEWPORT(FLOAT topLeftX、FLOAT topLeftY、FLOAT width、FLOAT height、FLOAT minDepth = D3D12_MIN_DEPTH、FLOAT maxDepth = D3D12_MAX_DEPTH)
-
建立CD3DX12_VIEWPORT的新實例,初始化下列參數:
FLOAT topLeftX
FLOAT topLeftY
FLOAT 寬度
FLOAT 高度
FLOAT minDepth = D3D12_MIN_DEPTH
FLOAT maxDepth = D3D12_MAX_DEPTH
-
explicit CD3DX12_VIEWPORT(ID3D12Resource* pResource, UINT mipSlice = 0, FLOAT topLeftX = 0.0f, FLOAT topLeftY = 0.0f, FLOAT minDepth = D3D12_MIN_DEPTH, FLOAT maxDepth = D3D12_MAX_DEPTH)
-
建立CD3DX12_VIEWPORT的新實例,初始化下列參數:
ID3D12Resource* pResource
UINT mipSlice = 0
FLOAT topLeftX = 0.0f
FLOAT topLeftY = 0.0f
FLOAT minDepth = D3D12_MIN_DEPTH
FLOAT maxDepth = D3D12_MAX_DEPTH
-
~CD3DX12_VIEWPORT()
-
終結D3DX12_VIEWPORT的實例。
-
operator const D3D12_VIEWPORT&() const
-
定義父結構類型的 和 傳遞參考運算元。
需求
需求 | 值 |
---|---|
頁首 |
|