SPARK
0.1.0
A general purpose game engine written in C++.
|
Vulkan implementation of IRasterizer. More...
#include <VulkanRasterizer.h>
Public Member Functions | |
VulkanRasterizer (PolygonMode polygon_mode, CullMode cull_mode, CullOrder cull_order, float line_width, const DepthStencilState &depth_stencil_state) noexcept | |
Initializes a new rasterizer state for Vulkan. | |
VulkanRasterizer (const VulkanRasterizer &other)=delete | |
VulkanRasterizer (VulkanRasterizer &&other) noexcept=delete | |
VulkanRasterizer & | operator= (const VulkanRasterizer &other)=delete |
VulkanRasterizer & | operator= (VulkanRasterizer &&other) noexcept=delete |
void | updateLineWidth (float line_width) noexcept |
Sets the line width of the rasterizer. | |
![]() | |
Rasterizer (PolygonMode polygon_mode, CullMode cull_mode, CullOrder cull_order, float line_width, const DepthStencilState &depth_stencil_state) noexcept | |
Creates a new Rasterizer instance. | |
Rasterizer (const Rasterizer &other) | |
Rasterizer (Rasterizer &&other) noexcept | |
Rasterizer & | operator= (const Rasterizer &other) |
Rasterizer & | operator= (Rasterizer &&other) noexcept |
PolygonMode | polygonMode () const noexcept override |
Gets the polygon mode of the rasterizer state. | |
CullMode | cullMode () const noexcept override |
Gets the cull mode of the rasterizer state. | |
CullOrder | cullOrder () const noexcept override |
Gets the cull order of the rasterizer state. | |
float | lineWidth () const noexcept override |
Gets the line width of the rasterizer state. | |
const DepthStencilState & | depthStencilState () const noexcept override |
Gets the depth/stencil state of the rasterizer. | |
Additional Inherited Members | |
![]() | |
float & | lineWidth () noexcept |
Gets a reference to the line width of the rasterizer. | |
Vulkan implementation of IRasterizer.
|
explicitnoexcept |
Initializes a new rasterizer state for Vulkan.
polygon_mode | The PolygonMode of the rasterizer. |
cull_mode | The CullMode of the rasterizer. |
cull_order | The CullOrder of the rasterizer. |
line_width | The line width of the rasterizer. |
depth_stencil_state | The DepthStencilState of the rasterizer. |
|
noexcept |
Sets the line width of the rasterizer.
line_width | The new line width. |
wide lines
feature to be enabled. 1.0f
.