Loading...
Searching...
No Matches
HgiRasterizationState Struct Reference

Properties to configure the rasterization state. More...

#include <graphicsPipeline.h>

Public Attributes

HgiPolygonMode polygonMode
 
float lineWidth
 
HgiCullMode cullMode
 
HgiWinding winding
 
bool rasterizerEnabled
 
bool depthClampEnabled
 
GfVec2f depthRange
 
bool conservativeRaster
 
size_t numClipDistances
 

Detailed Description

Properties to configure the rasterization state.

  • polygonMode: Determines the rasterization draw mode of primitve (triangles).
  • lineWidth: The width of lines when polygonMode is set to line drawing.
  • cullMode: Determines the culling rules for primitives (triangles).
  • winding: The rule that determines what makes a front-facing primitive.
  • rasterizationEnabled: When false all primitives are discarded before rasterization stage.
  • depthClampEnabled: When enabled clamps the clip space depth to the view volume, rather than clipping the depth to the near and far planes.
  • depthRange: The mapping of NDC depth values to window depth values.
  • conservativeRaster: When enabled, any pixel at least partially covered by a rendered primitive will be rasterized.
  • numClipDistances: The number of user-defined clip distances.

Definition at line 184 of file graphicsPipeline.h.

Member Data Documentation

◆ conservativeRaster

bool conservativeRaster

Definition at line 196 of file graphicsPipeline.h.

◆ cullMode

HgiCullMode cullMode

Definition at line 191 of file graphicsPipeline.h.

◆ depthClampEnabled

bool depthClampEnabled

Definition at line 194 of file graphicsPipeline.h.

◆ depthRange

GfVec2f depthRange

Definition at line 195 of file graphicsPipeline.h.

◆ lineWidth

float lineWidth

Definition at line 190 of file graphicsPipeline.h.

◆ numClipDistances

size_t numClipDistances

Definition at line 197 of file graphicsPipeline.h.

◆ polygonMode

HgiPolygonMode polygonMode

Definition at line 189 of file graphicsPipeline.h.

◆ rasterizerEnabled

bool rasterizerEnabled

Definition at line 193 of file graphicsPipeline.h.

◆ winding

HgiWinding winding

Definition at line 192 of file graphicsPipeline.h.


The documentation for this struct was generated from the following file: