Skip to content

LiteFX::Rendering::Backends::VulkanRasterizer::create

create overloads

Synopses

Declared in <litefx/backends/vulkan.hpp>

Creates a new Vulkan rasterizer state by copying an existing one.

[[dllimport, dllexport]] static auto create(VulkanRasterizer const& other);

» more...

Creates a new Vulkan rasterizer state.

[[dllimport, dllexport]] static auto create(
    PolygonMode polygonMode,
    CullMode cullMode,
    CullOrder cullOrder,
    Float lineWidth = 1.f,
    bool depthClip = true,
    DepthStencilState const& depthStencilState = {},
    bool conservativeRasterization = false);

» more...

Return Value

A shared pointer to the newly created rasterizer instance.

Parameters

NameDescription
otherThe rasterizer state to copy.
polygonModeThe polygon mode used by the pipeline.
cullModeThe cull mode used by the pipeline.
cullOrderThe cull order used by the pipeline.
lineWidthThe line width used by the pipeline.
depthClipThe depth clip toggle of the rasterizer state.
depthStencilStateThe rasterizer depth/stencil state.
conservativeRasterizationToggles the use of conservative rasterization in the rasterizer.