5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SWAPCHAIN_TRANSIENTS_MTL_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SWAPCHAIN_TRANSIENTS_MTL_H_
46 std::shared_ptr<Allocator> allocator_;
49 std::shared_ptr<Texture> resolve_tex_;
50 std::shared_ptr<Texture> msaa_tex_;
51 std::shared_ptr<Texture> depth_stencil_tex_;
A cache for the onscreen texture attachments used in surface_mtl.
SwapchainTransientsMTL(const std::shared_ptr< Allocator > &allocator)
~SwapchainTransientsMTL()
std::shared_ptr< Texture > GetResolveTexture()
Retrieve the resolve texture, creating one if needed.
void SetSizeAndFormat(ISize size, PixelFormat format)
Update the size and pixel format of the onscreens.
std::shared_ptr< Texture > GetMSAATexture()
Retrieve the MSAA texture, creating one if needed.
std::shared_ptr< Texture > GetDepthStencilTexture()
Retrieve the depth+stencil texture, creating one if needed.
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...