MCPcopy Create free account
hub / github.com/devkitPro/libctru / gxCmdQueueAdd

Function gxCmdQueueAdd

libctru/source/gpu/gxqueue.c:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void gxCmdQueueAdd(gxCmdQueue_s* queue, const gxCmdEntry_s* entry)
63{
64 if (queue->numEntries == queue->maxEntries)
65 svcBreak(USERBREAK_PANIC); // Shouldn't happen.
66 memcpy(&queue->entries[queue->numEntries], entry, sizeof(gxCmdEntry_s));
67 LightLock_Lock(&queueLock);
68 queue->numEntries++;
69 if (queue==curQueue && isActive && !isRunning)
70 {
71 isRunning = true;
72 gxCmdQueueDoCommands();
73 }
74 LightLock_Unlock(&queueLock);
75}
76
77void gxCmdQueueRun(gxCmdQueue_s* queue)
78{

Callers

nothing calls this directly

Calls 3

LightLock_LockFunction · 0.85
gxCmdQueueDoCommandsFunction · 0.85
LightLock_UnlockFunction · 0.85

Tested by

no test coverage detected