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

#include <QtVulkanSession.h>

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

Public Member Functions

 QtVulkanSession (const DynamicPointer< VulkanDevice > &device)
 
virtual void readShader (const String &shader) override
 
- Public Member Functions inherited from VulkanSession
 VulkanSession (const DynamicPointer< VulkanDevice > &instance)
 
 ~VulkanSession ()
 
void removeMaterial (const UUID &material) final override
 
void removeGeometry (const UUID &mesh) final override
 
virtual const ConstPointer< GraphicsDevice > & device () const final override
 
virtual const DynamicPointer< GraphicsDevice > & device () final override
 
void ensureExists (const Geometry &mesh)
 
void ensureCameraExists (const UUID &camera)
 
DynamicPointer< GraphicsPipelinecreateRenderPipeline () final override
 
void destroySceneManager (const UUID &scene)
 
void destroyVertexManager (const UUID &mesh)
 
void destroyMaterialManager (const UUID &mat)
 
void destroyCameraManager (const UUID &camera)
 
void cleanupOldPipelines (GraphicsUpdateArguments &args)
 
void updateUniformBuffer (GraphicsUpdateArguments &args) final override
 
bool createPipeline (GraphicsUpdateArguments &args) final override
 
void commit (GraphicsUpdateArguments &args) final override
 
bool hasCommand () const override
 
UUID uuid () const
 
virtual void postClearAll () final override
 
bool runCommand (GraphicsUpdateArguments &args) final override
 
DynamicPointer< VulkanCameraManagergetCameraManager (const UUID &camera)
 
DynamicPointer< VulkanMaterialManagergetMaterialManager (const Material &mat)
 
DynamicPointer< VulkanMaterialManagergetMaterialManager (const UUID &id)
 
DynamicPointer< VulkanVertexManagergetVertexManager (const Geometry &mesh)
 
void setRenderDefinition (const DynamicPointer< VulkanRenderDefinition > &def)
 
DynamicPointer< VulkanShaderManagershaderManager ()
 
virtual UUID uuid () final override
 
virtual void drawFrame (GraphicsUpdateArguments &) final override
 
virtual void ensureLastRenderComplete () final override
 
virtual void setWindowInstance (WindowInstance *) final override
 
virtual void cleanResources () final override
 
virtual void init (GraphicsUpdateArguments &) final override
 
- Public Member Functions inherited from GraphicsSession
virtual ~GraphicsSession ()
 
virtual void addModel (const UUID &object)
 
virtual void addCamera (const UUID &object)
 
virtual void addScene (const UUID &scene)
 
virtual void addMaterial (const UUID &material)
 
virtual void addGeometry (const UUID &geo)
 
virtual void removeModel (const UUID &model)
 
virtual void removeCamera (const UUID &camera)
 
virtual void addRenderObject (GraphicsUpdateArguments &args, Model &model)
 
- Public Member Functions inherited from GraphicsPipeline
virtual ~GraphicsPipeline ()
 

Additional Inherited Members

- Protected Member Functions inherited from VulkanSession
virtual void clearAll ()
 
void clearScene ()
 
void setupScene (GraphicsUpdateArguments &args) override
 
void addRenderObject (const Scene &scene, const Model &model, const Material &mat, const Geometry &mesh, PrimitiveProperty property) override
 
bool checkAddRenderObject (GraphicsUpdateArguments &args, Model &model)
 
bool checkAddRenderObject (const Scene &scene, const Model &model, const Material &mat, const Geometry &mesh, PrimitiveProperty property)
 
bool checkScene (GraphicsUpdateArguments &args)
 
void pipelineSort (GraphicsUpdateArguments &args)
 
void createModelPipeline (GraphicsUpdateArguments &args)
 
bool createDescriptorPool (GraphicsUpdateArguments &args)
 
void cleanup () final override
 
- Protected Attributes inherited from VulkanSession
Dictionary< UUID, DynamicPointer< VulkanVertexManager > > m_scene_managers
 
Dictionary< UUID, DynamicPointer< VulkanVertexManager > > m_vertex_managers
 
Dictionary< UUID, DynamicPointer< VulkanMaterialManager > > m_material_managers
 
Dictionary< UUID, DynamicPointer< VulkanCameraManager > > m_camera_managers
 
Dictionary< UUID, Dictionary< UUID, Dictionary< PrimitiveMode, VulkanRenderObject * > > > m_render_objects [2]
 
Buffer< VulkanRenderObject * > m_pipelines
 
DynamicPointer< VulkanImageManagerm_image_manager
 
DynamicPointer< VulkanShaderManagerm_shader_manager
 
DynamicPointer< VulkanRenderDefinitionm_render_definition
 
DynamicPointer< GraphicsDevicem_graphics_device
 
DynamicPointer< VulkanDevicem_device
 
VkDescriptorPool m_descriptor_pool
 
VkPipelineCache m_model_pipeline_cache
 
uint04 m_num_of_images
 
uint04 m_num_of_materials
 
uint04 m_num_of_cameras
 
UUID m_uuid
 
bool m_update_model_pool
 
- Protected Attributes inherited from GraphicsSession
Dictionary< UUID, uint04m_added_models
 
Buffer< UUIDm_added_cameras
 
bool m_needs_model_refresh = true
 
bool m_needs_command_refresh = false
 
bool m_needs_clear_all = false
 

Constructor & Destructor Documentation

◆ QtVulkanSession()

QtVulkanSession ( const DynamicPointer< VulkanDevice > & device)
inline

Member Function Documentation

◆ readShader()

virtual void readShader ( const String & shader)
inlineoverridevirtual

Implements GraphicsSession.


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