mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 21:02:39 +02:00
14 lines
267 B
C
14 lines
267 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
|
|
}
|