Mercurial > hg > Game > Cerium
view Renderer/Engine/spe/DataLoad.cc @ 725:3a97fdd53a8e draft
Light data load fix (general load routine)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 19 Dec 2009 15:02:43 +0900 |
parents | 1afbdead7891 |
children | 4d83a6a958fd |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "DataLoad.h" #include "Func.h" /* これは必須 */ SchedDefineTask(DataLoad); static int run(SchedTask *s, void *rbuf, void *wbuf) { int size = (int)s->get_param(0); int load_id = (int)s->get_param(1); //printf("size %d",sizeof(float)*length); s->global_alloc(load_id, size); //MemList *ml = s->createMemList(length,length); //s->global_set(load_id, (void *)ml); return 0; }