/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "cr_spu.h"
#include "arrayspu.h"
#include "cr_mem.h"
#include <stdio.h>
extern SPUNamedFunctionTable _cr_array_table[];
extern SPUOptions arraySPUOptions[];
NULL, /* CHILD COPY */
NULL, /* DATA */
_cr_array_table /* THE ACTUAL FUNCTIONS */
};
unsigned int context_id,
unsigned int num_contexts )
{
(void) context_id;
(void) num_contexts;
#ifdef CHROMIUM_THREADSAFE
#endif
if (child)
{
}
crStateInit();
/*@todo seems default context ain't needed at all*/
#ifdef CR_ARB_vertex_buffer_object
#endif
/* we call SetCurrent instead of MakeCurrent as the differencer
* isn't setup yet anyway */
array_spu.numContexts = 0;
return &array_functions;
}
{
}
static int arraySPUCleanup(void)
{
return 1;
}
{
*name = "array";
*super = "passthrough";
*init = arraySPUInit;
return 1;
}