4#ifndef GREM_GRAPHICS_SWAPCHAIN_HPP
5#define GREM_GRAPHICS_SWAPCHAIN_HPP
Optional value type that holds either a value or no value.
Definition Optional.hpp:58
Persistent system managing the rendering context of a Window.
Definition Device.hpp:68
Swapchain & operator=(const Swapchain &)=delete
Copying a swapchain is not allowed.
void generateMipmap()=delete
Directly modifying a swapchain is not allowed.
void setMaxBufferedFrameCount(uint32_t maxBufferedFrameCount)
Set the maximum buffered frame count.
bool isVerticalSynchronizationEnabled() const
Check if vertical synchronization is enabled.
void pasteImage(Extent3D imageSize, const void *pixels, Offset3D destinationOffset, Region3D sourceRegion)=delete
Directly modifying a swapchain is not allowed.
Swapchain(const Swapchain &)=delete
Copying a swapchain is not allowed.
void fill(const ClearValues &values={})=delete
Directly modifying a swapchain is not allowed.
~Swapchain()=default
Destructor.
void setVerticalSynchronizationEnabled(bool useVerticalSynchronization)
Enable or disable vertical synchronization.
void pasteImage(Extent3D imageSize, const void *pixels, Offset3D destinationOffset={.x=0,.y=0,.z=0}, Offset3D sourceOffset={.x=0,.y=0,.z=0})=delete
Directly modifying a swapchain is not allowed.
Texture copy() const =delete
Copying a swapchain is not allowed.
uint32_t getMaxBufferedFrameCount() const
Get the maximum buffered frame count.
Swapchain(Swapchain &&)=delete
Moving a swapchain is not allowed.
Swapchain & operator=(Swapchain &&)=delete
Moving a swapchain is not allowed.
Texture copyWithSamplerOptions(Optional< TextureSamplerOptions > newSamplerOptions) const =delete
Copying a swapchain is not allowed.
void pasteTexture(const Texture &texture, Offset3D destinationOffset={.x=0,.y=0,.z=0}, Offset3D sourceOffset={.x=0,.y=0,.z=0})=delete
Directly modifying a swapchain is not allowed.
void pasteTexture(const Texture &texture, Offset3D destinationOffset, Region3D sourceRegion)=delete
Directly modifying a swapchain is not allowed.
Swapchain(Device &device, Window &window, const SwapchainOptions &options={})
Construct a swapchain.
Texture() noexcept=default
Construct an empty texture without a value.
Graphical window that can be rendered to.
Definition Window.hpp:131
Definition buffer_layouts.hpp:20
Region< 3 > Region3D
Rectangular region of 3D data.
Definition extents.hpp:820
Offset< 3 > Offset3D
Offset in a 3D data region.
Definition extents.hpp:22
Extent< 3 > Extent3D
Size of a 3D data region.
Definition extents.hpp:32
Specification of values that a texture should be cleared to.
Definition Texture.hpp:426
Configuration options for a Swapchain.
Definition Swapchain.hpp:20
uint32_t maxBufferedFrameCount
Maximum number of additional swapchain frames to buffer and render while waiting for the oldest submi...
Definition Swapchain.hpp:33
bool useVerticalSynchronization
Whether the swapchain should use vertical synchronization (VSync) or not.
Definition Swapchain.hpp:48