libnx/nx/include/switch/nvidia/cmds/3d_rendertarget.h
2018-04-15 19:14:01 +02:00

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);