#import <BNBRenderTarget.h>
Definition at line 15 of file BNBRenderTarget.h.
◆ 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
- Returns
- render target height (int)
◆ getName
- (nonnull NSString *) getName |
|
|
|
- Returns
- render target name (string)
◆ getSamplesCount
- (int32_t) getSamplesCount |
|
|
|
- Returns
- msaa samples counts
◆ getScale
- Returns
- render target width scale (int)
◆ 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: