Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/spe/Load_Texture.cpp @ 131:805d27efafd8
fix
author | gongo@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 25 Nov 2008 17:24:18 +0900 |
parents | 776eca0daa02 |
children | 8e22fd25befb |
line wrap: on
line source
#include <stdlib.h> #include <string.h> #include "Load_Texture.h" #include "texture.h" #include "Func.h" /** * 決めうちじゃなくて、 * create_task の時に param で渡せばおk */ #define height 128 #define width 128 // byteperpixel = 3 width = 128 dma_height= 32 #define LOAD_SIZE 3*128*32 #define MAX_LOAD_SIZE 16384 #define USE_ARRAY 3 SchedDefineTask(LoadTexture); int LoadTexture::run(void *rbuf , void *wbuf) { int addrNum = smanager->get_param(0); int addrSize = addrNum*sizeof(void*); void **list = (void**)global_alloc(TEXTURE2_ID, addrSize); void **addrList = (void**)smanager->get_input(0); memcpy(list, addrList, addrSize); return 0; }