com.io7m.r2.core

## Interface R2DepthAttachmentSpecificationType

- All Known Subinterfaces:
    R2DepthAttachmentCreateType, R2DepthAttachmentShareType
  All Known Implementing Classes:
    R2DepthAttachmentCreate, R2DepthAttachmentShare

      public interface R2DepthAttachmentSpecificationType

  A specification of a whether a depth attachment should be created or shared with an existing framebuffer.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<A,B> B` | `matchDepthAttachment(A context, BiFunction<A,R2DepthAttachmentShareType,B> on_share, BiFunction<A,R2DepthAttachmentCreateType,B> on_create)` Match on the type of depth attachment specification.

- - ### Method Detail

    - #### matchDepthAttachment

          <A,B> B matchDepthAttachment(A context,
                                       BiFunction<A,R2DepthAttachmentShareType,B> on_share,
                                       BiFunction<A,R2DepthAttachmentCreateType,B> on_create)

      Match on the type of depth attachment specification.
      Type Parameters:
        `A` - The type of context values
        `B` - The type of returned values
      Parameters:
        `context` - A user-defined context value
        `on_share` - Evaluated on values of type `R2DepthAttachmentShareType`
        `on_create` - Evaluated on values of type `R2DepthAttachmentCreateType`
      Returns:
        The value returned by one of the given functions

Copyright © 2016 <code@io7m.com> http://io7m.com