HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
enums.h File Reference
#include "pxr/pxr.h"
#include "pxr/imaging/hd/api.h"
+ Include dependency graph for enums.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  HdCompareFunction {
  HdCmpFuncNever, HdCmpFuncLess, HdCmpFuncEqual, HdCmpFuncLEqual,
  HdCmpFuncGreater, HdCmpFuncNotEqual, HdCmpFuncGEqual, HdCmpFuncAlways,
  HdCmpFuncLast
}
 
enum  HdStencilOp {
  HdStencilOpKeep, HdStencilOpZero, HdStencilOpReplace, HdStencilOpIncrement,
  HdStencilOpIncrementWrap, HdStencilOpDecrement, HdStencilOpDecrementWrap, HdStencilOpInvert,
  HdStencilOpLast
}
 
enum  HdBlendOp {
  HdBlendOpAdd, HdBlendOpSubtract, HdBlendOpReverseSubtract, HdBlendOpMin,
  HdBlendOpMax, HdBlendOpLast
}
 
enum  HdBlendFactor {
  HdBlendFactorZero, HdBlendFactorOne, HdBlendFactorSrcColor, HdBlendFactorOneMinusSrcColor,
  HdBlendFactorDstColor, HdBlendFactorOneMinusDstColor, HdBlendFactorSrcAlpha, HdBlendFactorOneMinusSrcAlpha,
  HdBlendFactorDstAlpha, HdBlendFactorOneMinusDstAlpha, HdBlendFactorConstantColor, HdBlendFactorOneMinusConstantColor,
  HdBlendFactorConstantAlpha, HdBlendFactorOneMinusConstantAlpha, HdBlendFactorSrcAlphaSaturate, HdBlendFactorSrc1Color,
  HdBlendFactorOneMinusSrc1Color, HdBlendFactorSrc1Alpha, HdBlendFactorOneMinusSrc1Alpha, HdBlendFactorLast
}
 
enum  HdCullStyle {
  HdCullStyleDontCare, HdCullStyleNothing, HdCullStyleBack, HdCullStyleFront,
  HdCullStyleBackUnlessDoubleSided, HdCullStyleFrontUnlessDoubleSided
}
 
enum  HdPolygonMode { HdPolygonModeFill, HdPolygonModeLine }
 
enum  HdMeshGeomStyle {
  HdMeshGeomStyleInvalid, HdMeshGeomStyleSurf, HdMeshGeomStyleEdgeOnly, HdMeshGeomStyleEdgeOnSurf,
  HdMeshGeomStyleHull, HdMeshGeomStyleHullEdgeOnly, HdMeshGeomStyleHullEdgeOnSurf, HdMeshGeomStylePoints
}
 
enum  HdBasisCurvesGeomStyle { HdBasisCurvesGeomStyleInvalid, HdBasisCurvesGeomStyleWire, HdBasisCurvesGeomStylePatch, HdBasisCurvesGeomStylePoints }
 
enum  HdPointsGeomStyle { HdPointsGeomStyleInvalid, HdPointsGeomStylePoints }
 
enum  HdInterpolation {
  HdInterpolationConstant = 0, HdInterpolationUniform, HdInterpolationVarying, HdInterpolationVertex,
  HdInterpolationFaceVarying, HdInterpolationInstance, HdInterpolationCount
}
 
enum  HdTextureType { HdTextureType::Uv, HdTextureType::Field, HdTextureType::Ptex, HdTextureType::Udim }
 
enum  HdDepthPriority { HdDepthPriorityNearest = 0, HdDepthPriorityFarthest, HdDepthPriorityCount }
 

Functions

HD_API HdCullStyle HdInvertCullStyle (HdCullStyle cs)
 

Enumeration Type Documentation

Enumerator
HdBasisCurvesGeomStyleInvalid 
HdBasisCurvesGeomStyleWire 
HdBasisCurvesGeomStylePatch 
HdBasisCurvesGeomStylePoints 

Definition at line 158 of file enums.h.

Abstraction of the Graphics blend factors.

Enumerator
HdBlendFactorZero 
HdBlendFactorOne 
HdBlendFactorSrcColor 
HdBlendFactorOneMinusSrcColor 
HdBlendFactorDstColor 
HdBlendFactorOneMinusDstColor 
HdBlendFactorSrcAlpha 
HdBlendFactorOneMinusSrcAlpha 
HdBlendFactorDstAlpha 
HdBlendFactorOneMinusDstAlpha 
HdBlendFactorConstantColor 
HdBlendFactorOneMinusConstantColor 
HdBlendFactorConstantAlpha 
HdBlendFactorOneMinusConstantAlpha 
HdBlendFactorSrcAlphaSaturate 
HdBlendFactorSrc1Color 
HdBlendFactorOneMinusSrc1Color 
HdBlendFactorSrc1Alpha 
HdBlendFactorOneMinusSrc1Alpha 
HdBlendFactorLast 

Definition at line 87 of file enums.h.

enum HdBlendOp

Abstraction of the Graphics blend operations.

Enumerator
HdBlendOpAdd 
HdBlendOpSubtract 
HdBlendOpReverseSubtract 
HdBlendOpMin 
HdBlendOpMax 
HdBlendOpLast 

Definition at line 72 of file enums.h.

Abstraction of the Graphics compare functions.

Enumerator
HdCmpFuncNever 
HdCmpFuncLess 
HdCmpFuncEqual 
HdCmpFuncLEqual 
HdCmpFuncGreater 
HdCmpFuncNotEqual 
HdCmpFuncGEqual 
HdCmpFuncAlways 
HdCmpFuncLast 

Definition at line 36 of file enums.h.

Face culling options.

DontCare indicates this prim doesn't determine what should be culled. Any other CullStyle opinion will override this (such as from the viewer).

BackUnlessDoubleSided and FrontUnlessDoubleSided will only cull back or front faces if prim isn't marked as doubleSided.

Enumerator
HdCullStyleDontCare 
HdCullStyleNothing 
HdCullStyleBack 
HdCullStyleFront 
HdCullStyleBackUnlessDoubleSided 
HdCullStyleFrontUnlessDoubleSided 

Definition at line 122 of file enums.h.

Sets the priorities for a depth based operation

  • HdDepthPriorityNearest Prioritize objects nearest to the camera
  • HdDepthPriorityFarthest Prioritize objects farthest from the camera
Enumerator
HdDepthPriorityNearest 
HdDepthPriorityFarthest 
HdDepthPriorityCount 

Definition at line 237 of file enums.h.

Enumerates Hydra's primvar interpolation modes.

Constant: One value remains constant over the entire surface primitive.

Uniform: One value remains constant for each uv patch segment of the surface primitive.

Varying: Four values are interpolated over each uv patch segment of the surface. Bilinear interpolation is used for interpolation between the four values.

Vertex: Values are interpolated between each vertex in the surface primitive. The basis function of the surface is used for interpolation between vertices.

Facevarying: For polygons and subdivision surfaces, four values are interpolated over each face of the mesh. Bilinear interpolation is used for interpolation between the four values.

Instance: One value remains constant across each instance.

Enumerator
HdInterpolationConstant 
HdInterpolationUniform 
HdInterpolationVarying 
HdInterpolationVertex 
HdInterpolationFaceVarying 
HdInterpolationInstance 
HdInterpolationCount 

Definition at line 194 of file enums.h.

Hydra native geom styles.

Enumerator
HdMeshGeomStyleInvalid 
HdMeshGeomStyleSurf 
HdMeshGeomStyleEdgeOnly 
HdMeshGeomStyleEdgeOnSurf 
HdMeshGeomStyleHull 
HdMeshGeomStyleHullEdgeOnly 
HdMeshGeomStyleHullEdgeOnSurf 
HdMeshGeomStylePoints 

Definition at line 147 of file enums.h.

Enumerator
HdPointsGeomStyleInvalid 
HdPointsGeomStylePoints 

Definition at line 165 of file enums.h.

Enumerator
HdPolygonModeFill 
HdPolygonModeLine 

Definition at line 137 of file enums.h.

Abstraction of the Graphics stencil test operations.

Enumerator
HdStencilOpKeep 
HdStencilOpZero 
HdStencilOpReplace 
HdStencilOpIncrement 
HdStencilOpIncrementWrap 
HdStencilOpDecrement 
HdStencilOpDecrementWrap 
HdStencilOpInvert 
HdStencilOpLast 

Definition at line 54 of file enums.h.

enum HdTextureType
strong

Enumerates Hydra's supported texture types.

Uv: Sample the uv coordinates and accesses a single 2d texture.

Field: Transform coordinates by matrix before accessing a single 3d texture.

Ptex: Use the ptex connectivity information to sample a ptex texture.

Udim: Remap the uv coordinates into udim coordinates using a maximum tile width of 10 and sample all the udim tiles found in the file system.

Enumerator
Uv 
Field 
Ptex 
Udim 

Definition at line 221 of file enums.h.

Function Documentation

HD_API HdCullStyle HdInvertCullStyle ( HdCullStyle  cs)

Returns the opposite of the given cullstyle; backface culling becomes frontface and vice versa.