API Documentation
Loading...
Searching...
No Matches
VulkanRenderPipeline Class Reference

#include <VulkanRenderPipeline.h>

Inheritance diagram for VulkanRenderPipeline:
[legend]
Collaboration diagram for VulkanRenderPipeline:
[legend]

Classes

struct  FrameResources
 
struct  SwapChainSupportDetails
 

Public Member Functions

 VulkanRenderPipeline (VulkanSession *session)
 
 VulkanRenderPipeline (VulkanRenderPipeline &&pipeline)
 
 VulkanRenderPipeline (const VulkanRenderPipeline &pipeline)=delete
 
virtual ~VulkanRenderPipeline ()
 
void cleanResources () override
 
void setDevice (const DynamicPointer< VulkanDevice > &instance)
 
void init (GraphicsUpdateArguments &args) override
 
void setWindowInstance (WindowInstance *instance) override
 
void cleanup () override
 
void getKHRImage (GraphicsUpdateArguments &args)
 
void getGrabImage (GraphicsUpdateArguments &args)
 
bool runCommand (GraphicsUpdateArguments &args) override
 
virtual void drawFrame (GraphicsUpdateArguments &args) override
 
virtual bool needsRecreateSwapchain (GraphicsUpdateArguments &args)
 
virtual bool executeDrawCycle (GraphicsUpdateArguments &args)
 
void invalidateImages ()
 
virtual void submitQueue (GraphicsUpdateArguments &args)
 
void presentKHR (GraphicsUpdateArguments &args)
 
bool createPipeline (GraphicsUpdateArguments &args) override
 
void requestRedraw ()
 
void setSwapChainImageFormat (VkFormat format)
 
DynamicPointer< VulkanRenderDefinition > & getRenderDefinition ()
 
void setupSwapChainImages (Buffer< VkImage > &images, uint04 multisample_count)
 
virtual const ConstPointer< GraphicsDevice > & device () const override
 
const DynamicPointer< GraphicsDevice > & device () override
 
void setGrabImage (Image *image)
 
void imageWait ()
 
void setClearColor (const RGBColor &color)
 
void ensureLastRenderComplete () override
 
- Public Member Functions inherited from GraphicsPipeline
virtual ~GraphicsPipeline ()
 

Protected Member Functions

void addReadback (GraphicsUpdateArguments &args)
 
VkResult finishBlockingReadback (GraphicsUpdateArguments &args)
 
virtual void cleanupSwapChainResources (bool clean_khr)
 
virtual void cleanupKHR ()
 
virtual void recreateSwapChainResources (GraphicsUpdateArguments &args)
 
void setShadowImages (GraphicsUpdateArguments &args)
 
void setViewportImages (GraphicsUpdateArguments &args)
 
void setMultisampleImages (GraphicsUpdateArguments &args)
 
bool neadsSurfaceUpdate () const
 
void setupSurface ()
 
virtual void getKHRImages (uint04 multisample_count)
 
void getGrabImages (uint04 multisample_count)
 
void createFrames ()
 
virtual void lockAllImagesCommand ()
 
void lockImageCommand (ImageResources &image) const
 
Buffer< VkClearValue, uint04, ObjectAllocator< true > > clearValues () const
 
SwapChainSupportDetails queryKHRSupport (VkPhysicalDevice_T *device)
 
VkSurfaceFormatKHR chooseSwapSurfaceFormat (const Buffer< VkSurfaceFormatKHR, uint04, ObjectAllocator< true > > &availableFormats)
 
Vector< 2, uint04chooseSwapExtent (const VkSurfaceCapabilitiesKHR &capabilities, const Vector< 2, uint04 > &requested_size)
 
bool needsCleanup () const
 
virtual void createSwapChainKHR (GraphicsUpdateArguments &args)
 
void createCommandBuffers ()
 
virtual void commit (GraphicsUpdateArguments &) override
 
virtual void updateUniformBuffer (GraphicsUpdateArguments &) override
 
virtual bool hasCommand () const override
 
void updateFrameSize (GraphicsUpdateArguments &args)
 

Static Protected Member Functions

static fltp08 ScreenSizeAllocationFactor ()
 

Protected Attributes

VkSurfaceKHR m_surface
 
VkSwapchainKHR m_khr_swap_chain
 
Buffer< FrameResourcesm_frames
 
Buffer< ImageResourcesm_khr_images
 
Buffer< ImageResourcesm_grab_images
 
DynamicPointer< VulkanImageDatam_frame_grab_image
 
DynamicPointer< VulkanImageDatam_multisample_image_color
 
DynamicPointer< VulkanImageViewm_multisample_view_color
 
DynamicPointer< VulkanImageDatam_depth_image
 
DynamicPointer< VulkanImageViewm_depth_view
 
DynamicPointer< VulkanImageDatam_shadow_image
 
DynamicPointer< VulkanImageViewm_shadow_view
 
DynamicPointer< VulkanDevicem_device
 
VulkanSessionm_session
 
DynamicPointer< VulkanRenderDefinitionm_render_definition
 
ConstPointer< SwapChainSupportDetailsm_swap_chain_support_details
 
WindowInstance * m_window_instance
 
ImageResourcesm_last_image
 
Imagem_grab_image
 
Vector< 2, uint04m_draw_size
 
Time m_last_render_time
 
Time m_surface_update_time
 
uint08 m_khr_format
 
uint04 m_number_of_grab_images
 
RGBColor m_clear_color
 
bool m_needs_grab_image
 
bool m_needs_screen_draw
 
bool m_is_init
 
bool m_needs_pipeline_recreation
 
bool m_needs_cleanup
 
bool m_suboptimal_khr
 

Constructor & Destructor Documentation

◆ VulkanRenderPipeline() [1/3]

◆ VulkanRenderPipeline() [2/3]

◆ VulkanRenderPipeline() [3/3]

VulkanRenderPipeline ( const VulkanRenderPipeline & pipeline)
delete

◆ ~VulkanRenderPipeline()

~VulkanRenderPipeline ( )
virtual

Member Function Documentation

◆ addReadback()

void addReadback ( GraphicsUpdateArguments & args)
protected

◆ chooseSwapExtent()

Vector< 2, uint04 > chooseSwapExtent ( const VkSurfaceCapabilitiesKHR & capabilities,
const Vector< 2, uint04 > & requested_size )
protected

◆ chooseSwapSurfaceFormat()

VkSurfaceFormatKHR chooseSwapSurfaceFormat ( const Buffer< VkSurfaceFormatKHR, uint04, ObjectAllocator< true > > & availableFormats)
protected

◆ cleanResources()

void cleanResources ( )
overridevirtual

Implements GraphicsPipeline.

◆ cleanup()

void cleanup ( )
overridevirtual

Implements GraphicsPipeline.

◆ cleanupKHR()

void cleanupKHR ( )
protectedvirtual

◆ cleanupSwapChainResources()

void cleanupSwapChainResources ( bool clean_khr)
protectedvirtual

◆ clearValues()

Buffer< VkClearValue, uint04, ObjectAllocator< true > > clearValues ( ) const
nodiscardprotected

◆ commit()

virtual void commit ( GraphicsUpdateArguments & )
inlineoverrideprotectedvirtual

Implements GraphicsPipeline.

◆ createCommandBuffers()

void createCommandBuffers ( )
protected

◆ createFrames()

void createFrames ( )
protected

◆ createPipeline()

bool createPipeline ( GraphicsUpdateArguments & args)
overridevirtual

Implements GraphicsPipeline.

◆ createSwapChainKHR()

void createSwapChainKHR ( GraphicsUpdateArguments & args)
protectedvirtual

◆ device() [1/2]

const ConstPointer< GraphicsDevice > & device ( ) const
overridevirtual

Implements GraphicsPipeline.

◆ device() [2/2]

const DynamicPointer< GraphicsDevice > & device ( )
overridevirtual

Implements GraphicsPipeline.

◆ drawFrame()

void drawFrame ( GraphicsUpdateArguments & args)
overridevirtual

Implements GraphicsPipeline.

◆ ensureLastRenderComplete()

void ensureLastRenderComplete ( )
overridevirtual

Implements GraphicsPipeline.

◆ executeDrawCycle()

bool executeDrawCycle ( GraphicsUpdateArguments & args)
virtual

◆ finishBlockingReadback()

VkResult finishBlockingReadback ( GraphicsUpdateArguments & args)
protected

◆ getGrabImage()

void getGrabImage ( GraphicsUpdateArguments & args)

◆ getGrabImages()

void getGrabImages ( uint04 multisample_count)
protected

◆ getKHRImage()

void getKHRImage ( GraphicsUpdateArguments & args)

◆ getKHRImages()

void getKHRImages ( uint04 multisample_count)
protectedvirtual

◆ getRenderDefinition()

DynamicPointer< VulkanRenderDefinition > & getRenderDefinition ( )

◆ hasCommand()

virtual bool hasCommand ( ) const
inlineoverrideprotectedvirtual

Implements GraphicsPipeline.

◆ imageWait()

void imageWait ( )

◆ init()

void init ( GraphicsUpdateArguments & args)
overridevirtual

Implements GraphicsPipeline.

◆ invalidateImages()

void invalidateImages ( )

◆ lockAllImagesCommand()

void lockAllImagesCommand ( )
protectedvirtual

◆ lockImageCommand()

void lockImageCommand ( ImageResources & image) const
protected

◆ neadsSurfaceUpdate()

bool neadsSurfaceUpdate ( ) const
protected

◆ needsCleanup()

bool needsCleanup ( ) const
inlineprotected

◆ needsRecreateSwapchain()

bool needsRecreateSwapchain ( GraphicsUpdateArguments & args)
virtual

◆ presentKHR()

void presentKHR ( GraphicsUpdateArguments & args)

◆ queryKHRSupport()

VulkanRenderPipeline::SwapChainSupportDetails queryKHRSupport ( VkPhysicalDevice_T * device)
protected

◆ recreateSwapChainResources()

void recreateSwapChainResources ( GraphicsUpdateArguments & args)
protectedvirtual

◆ requestRedraw()

void requestRedraw ( )

◆ runCommand()

bool runCommand ( GraphicsUpdateArguments & args)
overridevirtual

Implements GraphicsPipeline.

◆ ScreenSizeAllocationFactor()

fltp08 ScreenSizeAllocationFactor ( )
staticprotected

◆ setClearColor()

void setClearColor ( const RGBColor & color)

◆ setDevice()

void setDevice ( const DynamicPointer< VulkanDevice > & instance)

◆ setGrabImage()

void setGrabImage ( Image * image)

◆ setMultisampleImages()

void setMultisampleImages ( GraphicsUpdateArguments & args)
protected

◆ setShadowImages()

void setShadowImages ( GraphicsUpdateArguments & args)
protected

◆ setSwapChainImageFormat()

void setSwapChainImageFormat ( VkFormat format)

◆ setupSurface()

void setupSurface ( )
protected

◆ setupSwapChainImages()

void setupSwapChainImages ( Buffer< VkImage > & images,
uint04 multisample_count )

◆ setViewportImages()

void setViewportImages ( GraphicsUpdateArguments & args)
protected

◆ setWindowInstance()

void setWindowInstance ( WindowInstance * instance)
overridevirtual

Implements GraphicsPipeline.

◆ submitQueue()

void submitQueue ( GraphicsUpdateArguments & args)
virtual

◆ updateFrameSize()

void updateFrameSize ( GraphicsUpdateArguments & args)
protected

◆ updateUniformBuffer()

virtual void updateUniformBuffer ( GraphicsUpdateArguments & )
inlineoverrideprotectedvirtual

Implements GraphicsPipeline.

Member Data Documentation

◆ m_clear_color

RGBColor m_clear_color
protected

◆ m_depth_image

DynamicPointer<VulkanImageData> m_depth_image
protected

◆ m_depth_view

DynamicPointer<VulkanImageView> m_depth_view
protected

◆ m_device

DynamicPointer<VulkanDevice> m_device
protected

◆ m_draw_size

Vector<2, uint04> m_draw_size
protected

◆ m_frame_grab_image

DynamicPointer<VulkanImageData> m_frame_grab_image
protected

◆ m_frames

Buffer<FrameResources> m_frames
protected

◆ m_grab_image

Image* m_grab_image
protected

◆ m_grab_images

Buffer<ImageResources> m_grab_images
protected

◆ m_is_init

bool m_is_init
protected

◆ m_khr_format

uint08 m_khr_format
protected

◆ m_khr_images

Buffer<ImageResources> m_khr_images
protected

◆ m_khr_swap_chain

VkSwapchainKHR m_khr_swap_chain
protected

◆ m_last_image

ImageResources* m_last_image
protected

◆ m_last_render_time

Time m_last_render_time
protected

◆ m_multisample_image_color

DynamicPointer<VulkanImageData> m_multisample_image_color
protected

◆ m_multisample_view_color

DynamicPointer<VulkanImageView> m_multisample_view_color
protected

◆ m_needs_cleanup

bool m_needs_cleanup
protected

◆ m_needs_grab_image

bool m_needs_grab_image
protected

◆ m_needs_pipeline_recreation

bool m_needs_pipeline_recreation
protected

◆ m_needs_screen_draw

bool m_needs_screen_draw
protected

◆ m_number_of_grab_images

uint04 m_number_of_grab_images
protected

◆ m_render_definition

DynamicPointer<VulkanRenderDefinition> m_render_definition
protected

◆ m_session

VulkanSession* m_session
protected

◆ m_shadow_image

DynamicPointer<VulkanImageData> m_shadow_image
protected

◆ m_shadow_view

DynamicPointer<VulkanImageView> m_shadow_view
protected

◆ m_suboptimal_khr

bool m_suboptimal_khr
protected

◆ m_surface

VkSurfaceKHR m_surface
protected

◆ m_surface_update_time

Time m_surface_update_time
protected

◆ m_swap_chain_support_details

ConstPointer<SwapChainSupportDetails> m_swap_chain_support_details
protected

◆ m_window_instance

WindowInstance* m_window_instance
protected

The documentation for this class was generated from the following files: