view Renderer/Engine/task/DataLoad.cc @ 677:24054155368c draft

add Load light info for some spe
author yutaka@henri.cr.ie.u-ryukyu.ac.jp
date Sun, 06 Dec 2009 07:40:26 +0900
parents
children 3a97fdd53a8e
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 length = (int)s->get_param(0);
  int load_id = (int)s->get_param(1);

  //printf("size %d",sizeof(float)*length);

  s->global_alloc(load_id, sizeof(float)*length);

  //MemList *ml = s->createMemList(length,length);
  //s->global_set(load_id, (void *)ml);

  return 0;
}