KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::VulkanRendererAPI Class Reference
Inheritance diagram for Karma::VulkanRendererAPI:
Collaboration diagram for Karma::VulkanRendererAPI:

Public Member Functions

virtual void SetClearColor (const glm::vec4 &color) override
 Set the color to be used for clear (rendering) screen.
 
virtual void Clear () override
 Clear the rendering screen.
 
virtual void BeginScene () override
 Setting up resources for rendering of a scene.
 
virtual void DrawIndexed (std::shared_ptr< VertexArray > vertexArray) override
 Routine for drawing primitives.
 
virtual void EndScene () override
 Instructions for end of the scene.
 
void AllocateCommandBuffers ()
 Allocates resources for command buffers. Command buffers are objects used to record commands which can be subsequently submitted to a device queue for execution. For instance the graphics and presentation queues.
 
void RecordCommandBuffers (VkCommandBuffer commandBuffer, uint32_t imageIndex)
 
void SubmitCommandBuffers ()
 
void CreateSynchronicity ()
 
void ClearVulkanRendererAPI ()
 
void RemoveSynchronicity ()
 
void RecreateCommandBuffersPipelineSwapchain ()
 
void RecreateCommandBuffersAndSwapChain ()
 
const std::vector< VkCommandBuffer > & GetCommandBuffers () const
 
const int & GetMaxFramesInFlight () const
 
const std::vector< VkFence > & GetFences () const
 
const std::vector< VkSemaphore > & GetImageAvailableSemaphores () const
 
const std::vector< VkSemaphore > GetRenderFinishedSemaphore () const
 
- Public Member Functions inherited from Karma::RendererAPI
virtual ~RendererAPI ()
 A destructor.
 
glm::vec4 & GetClearColor () const
 Getter for m_ClearColor variable.
 

Additional Inherited Members

- Public Types inherited from Karma::RendererAPI
enum class  API { None = 0 , OpenGL = 1 , Vulkan = 2 }
 The rendering API used by the Engine. More...
 
- Static Public Member Functions inherited from Karma::RendererAPI
static API GetAPI ()
 Getter for rendering api being used.
 
- Static Protected Attributes inherited from Karma::RendererAPI
static glm::vec4 m_ClearColor = { 0.0f, 0.0f, 0.0f, 0.0f }
 

Member Function Documentation

◆ BeginScene()

void Karma::VulkanRendererAPI::BeginScene ( )
overridevirtual

Setting up resources for rendering of a scene.

See also
RenderCommand::BeginScene
Since
Karma 1.0.0

Implements Karma::RendererAPI.

◆ Clear()

void Karma::VulkanRendererAPI::Clear ( )
overridevirtual

Clear the rendering screen.

Since
Karma 1.0.0

Implements Karma::RendererAPI.

◆ DrawIndexed()

void Karma::VulkanRendererAPI::DrawIndexed ( std::shared_ptr< VertexArray > vertexArray)
overridevirtual

Routine for drawing primitives.

Since
Karma 1.0.0

Implements Karma::RendererAPI.

◆ EndScene()

void Karma::VulkanRendererAPI::EndScene ( )
overridevirtual

Instructions for end of the scene.

Since
Karma 1.0.0

Implements Karma::RendererAPI.

◆ SetClearColor()

void Karma::VulkanRendererAPI::SetClearColor ( const glm::vec4 & color)
overridevirtual

Set the color to be used for clear (rendering) screen.

Parameters
colorThe color to be used for clearing
Since
Karma 1.0.0

Implements Karma::RendererAPI.


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