1
0
mirror of https://github.com/switchbrew/libnx.git synced 2025-07-28 12:52:14 +02:00
libnx/nx/source/nvidia/gpu/3d_ctx.c
2018-08-31 13:05:22 +02:00

12 lines
257 B
C

#include <switch.h>
Result nv3DContextCreate(Nv3DContext* t, NvGpu* parent)
{
t->parent = parent;
return nvioctlChannel_AllocObjCtx(parent->gpu_channel.fd, NvClassNumber_3D, 0, &t->obj_id);
}
void nv3DContextClose(Nv3DContext* t) {
// Empty
}