com.io7m.r2.core

## Interface R2DepthAttachmentCreateType

- All Superinterfaces:
    R2DepthAttachmentSpecificationType
  All Known Implementing Classes:
    R2DepthAttachmentCreate

      public interface R2DepthAttachmentCreateType
      extends R2DepthAttachmentSpecificationType

  A preexisting depth texture that will be used as an attachment on a created framebuffer.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default <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.
    `R2DepthPrecision` | `precision()`

- - ### Method Detail

    - #### matchDepthAttachment

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

      Description copied from interface: `R2DepthAttachmentSpecificationType`
      Match on the type of depth attachment specification.
      Specified by:
        `matchDepthAttachment` in interface `R2DepthAttachmentSpecificationType`
      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

    - #### precision

          R2DepthPrecision precision()

      Returns:
        The precision of the depth buffer to be created

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