Banuba SDK
Instance Methods | List of all members
BNBRenderTarget Class Reference

#import <BNBRenderTarget.h>

Inheritance diagram for BNBRenderTarget:

Instance Methods

(nonnull NSString *) - getName
 
(void) - setSamplesCount:
 
(int32_t) - getSamplesCount
 
(void) - setExtent:height:
 set render target surface extent More...
 
(int32_t) - getWidth
 
(int32_t) - getHeight
 
(void) - setScale:
 set render target surface extent scale More...
 
(float) - getScale
 
(void) - addAttachment:
 add color or depth attachment to render target More...
 
(void) - removeAttachment:
 removes color or depth attachment from render target, if it was aded early More...
 
(nonnull NSArray< BNBImage * > *) - getAttachments
 

Detailed Description

Definition at line 15 of file BNBRenderTarget.h.

Method Documentation

◆ addAttachment:

- (void) addAttachment: (nullable BNBImage *)  attachment

add color or depth attachment to render target

Parameters
attachment(image): surface attachment

◆ getAttachments

- (nonnull NSArray<BNBImage *> *) getAttachments
Returns
list of added attachments (list<image>).

◆ getHeight

- (int32_t) getHeight
Returns
render target height (int)

◆ getName

- (nonnull NSString *) getName
Returns
render target name (string)

◆ getSamplesCount

- (int32_t) getSamplesCount
Returns
msaa samples counts

◆ getScale

- (float) getScale
Returns
render target width scale (int)

◆ getWidth

- (int32_t) getWidth
Returns
render target width (int)

◆ removeAttachment:

- (void) removeAttachment: (nullable BNBImage *)  attachment

removes color or depth attachment from render target, if it was aded early

Parameters
attachment(image): surface attachment

◆ setExtent:height:

- (void) setExtent: (int32_t)  width
height: (int32_t)  height 

set render target surface extent

Parameters
width(int): surface width
height(int): surface height

◆ setSamplesCount:

- (void) setSamplesCount: (int32_t)  samples
Parameters
samples(int) msaa samples counts

◆ setScale:

- (void) setScale: (float)  scale

set render target surface extent scale

Parameters
width(int): surface width scale
height(int): surface height scale

The documentation for this class was generated from the following file: