Skip to content

KDGpu::PrimitiveOptions

#include <graphics_pipeline_options.h>

Public Attributes

Name
PrimitiveTopology topology
bool primitiveRestart
CullModeFlags cullMode
FrontFace frontFace
PolygonMode polygonMode
uint32_t patchControlPoints
DepthBiasOptions depthBias
float lineWidth
bool rasterizerDiscardEnabled

Friends

Name
bool operator==(const PrimitiveOptions & , const PrimitiveOptions & )

Public Attributes Documentation

variable topology

1
PrimitiveTopology topology { PrimitiveTopology::TriangleList };

variable primitiveRestart

1
bool primitiveRestart { false };

variable cullMode

1
CullModeFlags cullMode { CullModeFlagBits::BackBit };

variable frontFace

1
FrontFace frontFace { FrontFace::CounterClockwise };

variable polygonMode

1
PolygonMode polygonMode { PolygonMode::Fill };

variable patchControlPoints

1
uint32_t patchControlPoints { 0 };

variable depthBias

1
DepthBiasOptions depthBias {};

variable lineWidth

1
float lineWidth { 1.0f };

variable rasterizerDiscardEnabled

1
bool rasterizerDiscardEnabled { false };

Friends

friend operator==

1
2
3
4
5
friend bool operator==(
    const PrimitiveOptions & ,

    const PrimitiveOptions & 
);

Updated on 2024-09-10 at 00:01:37 +0000