Enumeration

MTLVisibilityResultMode

The mode that determines what, if anything, the GPU writes to the results buffer, after the GPU executes the render pass.

Declaration

typedef enum MTLVisibilityResultMode : NSUInteger {
    ...
} MTLVisibilityResultMode;

Topics

Constants

MTLVisibilityResultModeDisabled

The result doesn't contain any data because visibility testing was disabled.

MTLVisibilityResultModeBoolean

The result records whether any samples passed depth and stencil tests.

MTLVisibilityResultModeCounting

The result records how many samples passed depth and stencil tests.

See Also

Setting Visibility Behavior

- setVisibilityResultMode:offset:

Configures which visibility test the GPU executes and the destination for any results it generates.

Required.