BNBAttachmentStoreOp

Objective-C

NS_ENUM(NSInteger, BNBAttachmentStoreOp)
{
    /**
     * Save pixels, to be read later by sampler 
     * or loaded in the next frame
     */
    BNBAttachmentStoreOpSave,
    /** No need to store pixels after pass finish */
    BNBAttachmentStoreOpDiscard,
}

Swift

enum BNBAttachmentStoreOp : Int, @unchecked Sendable

Undocumented

  • Save pixels, to be read later by sampler or loaded in the next frame

    Declaration

    Objective-C

    BNBAttachmentStoreOpSave

    Swift

    case save = 0
  • No need to store pixels after pass finish

    Declaration

    Objective-C

    BNBAttachmentStoreOpDiscard

    Swift

    case discard = 1