libnx/nx/source/nvidia/gpu/3d_ctx.c

12 lines
243 B
C

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