summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-04-27 22:59:35 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-04-27 22:59:35 +0000
commit19a03ad88b5b8ea072d62ace99cecc77956c8144 (patch)
tree2b94269ab0eca14e256fb776aab8384b29add104 /Graphics/GraphicsEngine
parentImproved swap chain resize handling on Android (diff)
downloadDiligentCore-19a03ad88b5b8ea072d62ace99cecc77956c8144.tar.gz
DiligentCore-19a03ad88b5b8ea072d62ace99cecc77956c8144.zip
Vulkan swap chain: auto-detecting surface rotation on Android
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/SwapChain.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngine/interface/SwapChain.h b/Graphics/GraphicsEngine/interface/SwapChain.h
index 5a9bc956..d6ffa97e 100644
--- a/Graphics/GraphicsEngine/interface/SwapChain.h
+++ b/Graphics/GraphicsEngine/interface/SwapChain.h
@@ -64,19 +64,20 @@ DILIGENT_BEGIN_INTERFACE(ISwapChain, IObject)
/// Changes the swap chain size
- /// \param [in] NewWidth - New swap chain width (not accounting for pre-transform), in pixels.
- /// \param [in] NewHeight - New swap chain height (not accounting for pre-transform), in pixels.
+ /// \param [in] NewWidth - New logical swap chain width (not accounting for pre-transform), in pixels.
+ /// \param [in] NewHeight - New logical swap chain height (not accounting for pre-transform), in pixels.
/// \param [in] NewTransform - New surface transform, see Diligent::SURFACE_TRANSFORM.
///
/// \note When resizing non-primary swap chains, the engine unbinds the
/// swap chain buffers from the output.
///
/// New width and height should not account for surface pre-transform. For example,
- /// if the window size is 1920 x 1080, but the surface is rotated by 90 degrees,
+ /// if the window size is 1920 x 1080, but the surface is pre-rotated by 90 degrees,
/// NewWidth should still be 1920, and NewHeight should still be 1080. It is highly
- /// preferable to always use SURFACE_TRANSFORM_OPTIMAL, however SURFACE_TRANSFORM_ROTATE_90
- /// will also work in this scenario. After the swap chain has been resized, its width
- /// will be 1080, height will be 1920, and PreTransform will be SURFACE_TRANSFORM_ROTATE_90.
+ /// recommended to always use SURFACE_TRANSFORM_OPTIMAL to let the engine select
+ /// the most optimal pre-transform. However SURFACE_TRANSFORM_ROTATE_90 will also work in
+ /// the scenario above. After the swap chain has been resized, its actual width will be 1080,
+ /// actual height will be 1920, and PreTransform will be SURFACE_TRANSFORM_ROTATE_90.
VIRTUAL void METHOD(Resize)(THIS_
Uint32 NewWidth,
Uint32 NewHeight,