mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 19:02:14 +02:00
22 lines
570 B
C
22 lines
570 B
C
typedef struct {
|
|
NvBuffer* color_buffer;
|
|
size_t width;
|
|
size_t height;
|
|
NvBufferKind format;
|
|
} VnRenderTargetConfig;
|
|
|
|
void vnRenderTargetSetColorBuffer(VnRenderTargetConfig* c, NvBuffer* buffer) {
|
|
c->color_buffer = buffer;
|
|
}
|
|
|
|
void vnRenderTargetSetDimensions(VnRenderTargetConfig* c, size_t width, size_t height) {
|
|
c->width = width;
|
|
c->height = height;
|
|
}
|
|
|
|
void vnRenderTargetSetFormat(VnRenderTargetConfig* c, NvBufferKind format) {
|
|
c->format = format;
|
|
}
|
|
|
|
void vnSetRenderTargets(Vn* vn, VnRenderTargetConfig* targets, size_t num_targets);
|