HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiRasterizationState Struct Reference

#include <graphicsPipeline.h>

Public Member Functions

HGI_API HgiRasterizationState ()
 

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.

Constructor & Destructor Documentation

HGI_API HgiRasterizationState::HgiRasterizationState ( )

Member Data Documentation

bool HgiRasterizationState::conservativeRaster

Definition at line 196 of file graphicsPipeline.h.

HgiCullMode HgiRasterizationState::cullMode

Definition at line 191 of file graphicsPipeline.h.

bool HgiRasterizationState::depthClampEnabled

Definition at line 194 of file graphicsPipeline.h.

GfVec2f HgiRasterizationState::depthRange

Definition at line 195 of file graphicsPipeline.h.

float HgiRasterizationState::lineWidth

Definition at line 190 of file graphicsPipeline.h.

size_t HgiRasterizationState::numClipDistances

Definition at line 197 of file graphicsPipeline.h.

HgiPolygonMode HgiRasterizationState::polygonMode

Definition at line 189 of file graphicsPipeline.h.

bool HgiRasterizationState::rasterizerEnabled

Definition at line 193 of file graphicsPipeline.h.

HgiWinding HgiRasterizationState::winding

Definition at line 192 of file graphicsPipeline.h.


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