Mercurial > hg > Game > Cerium
diff Renderer/Engine/spe/DataUpdate.cc @ 749:115edac878e2 draft
add DataLoad DataUpdate
author | hiroki |
---|---|
date | Mon, 25 Jan 2010 19:23:24 +0900 |
parents | |
children | c0a8af52fa43 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Engine/spe/DataUpdate.cc Mon Jan 25 19:23:24 2010 +0900 @@ -0,0 +1,21 @@ +#include <stdio.h> +#include "DataUpdate.h" +#include "Func.h" +#include "string.h" + +/* これは必須 */ +SchedDefineTask(DataUpdate); + +static int +run(SchedTask *s, void *rbuf, void *wbuf) +{ + + void *idata = (void*)s->get_input(rbuf, 0); + int size = (int)s->get_param(0); + int load_id = (int)s->get_param(1); + void *global_data = (void*)s->global_get(load_id); + + memcpy(global_data,idata,size); + + return 0; +}