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

A VulkanSession within the Qt space. More...

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

Additional Inherited Members

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

Detailed Description

A VulkanSession within the Qt space.


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: