77 bool mAntiAliasing =
true;
82 mutable bool mDirty =
true;
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
Definition GPUCommandBuffer.hpp:77
Definition GPUDevice.hpp:357
Definition GPUImage.hpp:331
Definition GPURenderPass.hpp:149
Definition GPURenderTarget.hpp:105
Definition Optional.hpp:17
A simple reference counter base class.
Definition SmartPtr.hpp:438
The BackingStore represents store for a window or view.
Definition UIBackingStore.hpp:29
virtual bool isAntiAliasing() const noexcept=0
virtual ~UIBackingStore() noexcept=default
virtual void setSampleCount(const Optional< UInt32 > &sampleCount)=0
virtual void setSize(const Extent2UI &size)=0
virtual void setAntiAliasing(bool antiAliasing)=0
virtual Optional< UInt32 > getSampleCount() const noexcept=0
virtual Extent2UI getSize() const =0
Represents a UIBackingStore that renders its contents to an image texture.
Definition UIBackingStore.hpp:66
UIFramebufferBackingStore(GPUDevice &device, Format format)
void setFormat(Format format)
The format of the backing store.
GPUDevicePtr mDevice
The GPU device that backs the framebuffer.
Definition UIBackingStore.hpp:86
Extent2UI mSize
The size of the backing store framebuffer.
Definition UIBackingStore.hpp:74
Optional< UInt32 > mSampleCount
If set, forces the use of the given sample count for UI rendering.
Definition UIBackingStore.hpp:80
bool isAntiAliasing() const noexcept override
If set to true, enables anti-aliased rendering of the window.
Definition UIBackingStore.hpp:124
GPUImage & getColorImage() const
The color render target image.
Definition UIBackingStore.hpp:137
Extent2UI getSize() const override
The size of the backing store framebuffer.
Definition UIBackingStore.hpp:118
void rebuild()
Invalidates the window render buffer.
GPUImagePtr mColorImage
The color render target image.
Definition UIBackingStore.hpp:90
void setSampleCount(const Optional< UInt32 > &sampleCount) override
If set, forces the use of the given sample count for UI rendering.
void setAntiAliasing(bool antiAliasing) override
If set to true, enables anti-aliased rendering of the window.
void copyTo(GPUCommandBuffer &commandBuffer, GPUImage &destinationImage)
Copies the color image contents into the given destination image.
void rebuildIfNeeded()
Invalidates the window render buffer.
GPUImagePtr mDepthStencilImage
The depth/stencil render target image.
Definition UIBackingStore.hpp:96
GPUImage & getDepthStencilImage() const
The depth/stencil render target image.
Definition UIBackingStore.hpp:140
GPURenderPassPtr mRenderPass
The GPU render pass for rendering the UI.
Definition UIBackingStore.hpp:99
Optional< UInt32 > getSampleCount() const noexcept override
If set, forces the use of the given sample count for UI rendering.
Definition UIBackingStore.hpp:130
GPURenderTarget & getRenderTarget() const
The GPU render target.
Definition UIBackingStore.hpp:146
UIFramebufferBackingStore(GPUDevice &device)
void setSize(const Extent2UI &size) override
The size of the backing store framebuffer.
GPURenderTargetPtr mRenderTarget
The GPU render target.
Definition UIBackingStore.hpp:103
GPURenderPass & getRenderPass() const
The GPU render pass for rendering the UI.
Definition UIBackingStore.hpp:143
~UIFramebufferBackingStore() noexcept override
A window that an app displays on the screen.
Definition UIWindow.hpp:42
Definition Application.hpp:19
Format
Definition TextureFormat.hpp:54
@ RGBA8UNorm
Color format: red, green, blue, alpha 8-bit normalized.
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25