VulkanEngine 0.1
Graphics engine using Vulkan
Loading...
Searching...
No Matches
VulkanEngine::GraphicsPipeline Class Reference

#include <GraphicsPipeline.h>

Public Member Functions

 GraphicsPipeline ()
 Contructor.
 
 ~GraphicsPipeline ()
 Destructor.
 
void bindPipeline ()
 Bind the graphics pipeline to the current command buffer.
 
void setViewPort (float x, float y, float width, float height, float min_depth, float max_depth)
 
void setScissor (int32_t offset_x, int32_t offset_y, int32_t width, int32_t height)
 
void createGraphicsPipeline (const std::shared_ptr< MeshBase > mesh, const std::shared_ptr< Shader > shader)
 

Detailed Description

Defines a graphics pipeline. A graphics pipelines defines the rendering of a mesh with a shader and rendering configurations of the object.

Member Function Documentation

◆ createGraphicsPipeline()

void VulkanEngine::GraphicsPipeline::createGraphicsPipeline ( const std::shared_ptr< MeshBase mesh,
const std::shared_ptr< Shader shader 
)

Create the graphics pipeline.

Parameters
meshThe mesh to render.
shaderThe shader to render the mesh with.

◆ setScissor()

void VulkanEngine::GraphicsPipeline::setScissor ( int32_t  offset_x,
int32_t  offset_y,
int32_t  width,
int32_t  height 
)

Specify a scissor, i.e. the area in the viewport that is rendered to.

Parameters
offset_xThe x offset that defines position of the scissor.
offset_yThe y offset that defines the position of the scissor.
widthThe width of the scissor along x.
heightThe height of the scissor along y.

◆ setViewPort()

void VulkanEngine::GraphicsPipeline::setViewPort ( float  x,
float  y,
float  width,
float  height,
float  min_depth,
float  max_depth 
)

Set the viewport for rendering. Defines how normalized device coordinates are converted to pixels in the framebuffer.

Parameters
xThe x position of the viewport.
yThe y position of the viewport.
widthThe width of the viewport.
heightThe height of the viewport.
min_depthThe minimum depth to render.
max_depthThe maximum depth to render.

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