diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-31 18:23:27 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-31 18:23:27 +0000 |
| commit | d2b5a9c709d1a1e360aec0efa96d098a5b3569a2 (patch) | |
| tree | f4d3210d3eca46bc3e953bf001d291b6679c9530 /Graphics/GraphicsEngine | |
| parent | Fixed default GL viewport size issue on iOS (diff) | |
| download | DiligentCore-d2b5a9c709d1a1e360aec0efa96d098a5b3569a2.tar.gz DiligentCore-d2b5a9c709d1a1e360aec0efa96d098a5b3569a2.zip | |
Added swap chain usage flags
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/GraphicsTypes.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 746f6a67..d13a06f5 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1172,6 +1172,23 @@ namespace Diligent SCANLINE_ORDER ScanlineOrder = SCANLINE_ORDER_UNSPECIFIED; }; + /// Defines allowed swap chain usage flags + enum SWAP_CHAIN_USAGE_FLAGS : Uint32 + { + /// No allowed usage + SWAP_CHAIN_USAGE_NONE = 0x00L, + + /// Swap chain can be used as render target ouput + SWAP_CHAIN_USAGE_RENDER_TARGET = 0x01L, + + /// Swap chain images can be used as shader inputs + SWAP_CHAIN_USAGE_SHADER_INPUT = 0x02L, + + /// Swap chain images can be used as source of copy operation + SWAP_CHAIN_USAGE_COPY_SOURCE = 0x04L + }; + DEFINE_FLAG_ENUM_OPERATORS(SWAP_CHAIN_USAGE_FLAGS) + /// Swap chain description struct SwapChainDesc { @@ -1187,6 +1204,9 @@ namespace Diligent /// Depth buffer format. Default value is Diligent::TEX_FORMAT_D32_FLOAT TEXTURE_FORMAT DepthBufferFormat = TEX_FORMAT_D32_FLOAT; + /// Swap chain usage flags. Default value is Diligent::SWAP_CHAIN_USAGE_RENDER_TARGET + SWAP_CHAIN_USAGE_FLAGS Usage = SWAP_CHAIN_USAGE_RENDER_TARGET; + /// Sample count. Default value is 1 Uint32 SamplesCount = 1; |
