view Renderer/Engine/spe/DataUpdate.cc @ 762:10a8a80c2ea7

add lights
author yutaka@henri.cr.ie.u-ryukyu.ac.jp
date Sat, 06 Feb 2010 03:02:48 +0900
parents 2eafb52b7563
children 4455e7b0caf3
line wrap: on
line source

#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);

  if (size != 64) {
    printf("hogehoge\n");
  }

  memcpy(global_data,idata,size);

  return 0;
}