Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype StencilOp where
- StencilOp Int32
- pattern STENCIL_OP_KEEP :: StencilOp
- pattern STENCIL_OP_ZERO :: StencilOp
- pattern STENCIL_OP_REPLACE :: StencilOp
- pattern STENCIL_OP_INCREMENT_AND_CLAMP :: StencilOp
- pattern STENCIL_OP_DECREMENT_AND_CLAMP :: StencilOp
- pattern STENCIL_OP_INVERT :: StencilOp
- pattern STENCIL_OP_INCREMENT_AND_WRAP :: StencilOp
- pattern STENCIL_OP_DECREMENT_AND_WRAP :: StencilOp
Documentation
VkStencilOp - Stencil comparison function
Description
For purposes of increment and decrement, the stencil bits are considered as an unsigned integer.
If the stencil test fails, the sample’s coverage bit is cleared in the fragment. If there is no stencil framebuffer attachment, stencil modification cannot occur, and it is as if the stencil tests always pass.
If the stencil test passes, the writeMask
member of the
StencilOpState
structures controls how
the updated stencil value is written to the stencil framebuffer
attachment.
The least significant s bits of writeMask
, where s is the number of
bits in the stencil framebuffer attachment, specify an integer mask.
Where a 1 appears in this mask, the corresponding bit in the stencil
value in the depth/stencil attachment is written; where a 0 appears,
the bit is not written. The writeMask
value uses either the
front-facing or back-facing state based on the facingness of the
fragment. Fragments generated by front-facing primitives use the front
mask and fragments generated by back-facing primitives use the back
mask.
See Also
pattern STENCIL_OP_KEEP :: StencilOp |
|
pattern STENCIL_OP_ZERO :: StencilOp |
|
pattern STENCIL_OP_REPLACE :: StencilOp |
|
pattern STENCIL_OP_INCREMENT_AND_CLAMP :: StencilOp |
|
pattern STENCIL_OP_DECREMENT_AND_CLAMP :: StencilOp |
|
pattern STENCIL_OP_INVERT :: StencilOp |
|
pattern STENCIL_OP_INCREMENT_AND_WRAP :: StencilOp |
|
pattern STENCIL_OP_DECREMENT_AND_WRAP :: StencilOp |
|
Instances
Eq StencilOp Source # | |
Ord StencilOp Source # | |
Defined in Graphics.Vulkan.Core10.Enums.StencilOp | |
Read StencilOp Source # | |
Show StencilOp Source # | |
Storable StencilOp Source # | |
Defined in Graphics.Vulkan.Core10.Enums.StencilOp | |
Zero StencilOp Source # | |
Defined in Graphics.Vulkan.Core10.Enums.StencilOp |