Files
ultrasm64-2/src/game/dma_async.h

16 lines
335 B
C
Raw Normal View History

2025-06-23 12:17:38 -04:00
#pragma once
#include "types.h"
typedef struct {
u8* srcStart;
u8* dest;
u32 size;
} DMAAsyncCtx;
// Starts to DMA the first block
void dma_async_ctx_init(DMAAsyncCtx* ctx, u8 *dest, u8 *srcStart, u8 *srcEnd);
// Starts to DMA the next block and waits for the previous block
void* dma_async_ctx_read(DMAAsyncCtx* ctx);