#include <GraphicsPipeline.h>
|
|
| 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) |
| |
Defines a graphics pipeline. A graphics pipelines defines the rendering of a mesh with a shader and rendering configurations of the object.
◆ createGraphicsPipeline()
| void VulkanEngine::GraphicsPipeline::createGraphicsPipeline |
( |
const std::shared_ptr< MeshBase > |
mesh, |
|
|
const std::shared_ptr< Shader > |
shader |
|
) |
| |
Create the graphics pipeline.
- Parameters
-
| mesh | The mesh to render. |
| shader | The 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_x | The x offset that defines position of the scissor. |
| offset_y | The y offset that defines the position of the scissor. |
| width | The width of the scissor along x. |
| height | The 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
-
| x | The x position of the viewport. |
| y | The y position of the viewport. |
| width | The width of the viewport. |
| height | The height of the viewport. |
| min_depth | The minimum depth to render. |
| max_depth | The maximum depth to render. |
The documentation for this class was generated from the following files: