packspu_glsl.c revision 68da78527731dc05ee33b1083d8322adbef6aa5a
/* $Id$ */
/** @file
* VBox OpenGL GLSL related functions
*/
/*
* Copyright (C) 2009-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include "packspu.h"
#include "cr_packfunctions.h"
#include "cr_net.h"
#include "packspu_proto.h"
#include "cr_mem.h"
{
int writeback = 1;
if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
{
crError("packspu_CreateProgram doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!");
}
{
}
else
{
}
packspuFlush((void *) thread);
{
}
return return_val;
}
{
int writeback = 1;
if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
{
crError("packspu_GetUniformLocation doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!");
}
{
}
else
{
}
packspuFlush((void *) thread);
{
}
return return_val;
}
{
{
int writeback = 1;
if (!pData)
{
crWarning("packspu_GetUniformLocation: not enough memory, fallback to single query");
}
packspuFlush((void *) thread);
}
/*crDebug("packspu_GetUniformLocation(%d, %s)=%i", program, name, crStateGetUniformLocation(program, name));*/
}
void PACKSPU_APIENTRY packspu_GetUniformsLocations(GLuint program, GLsizei maxcbData, GLsizei * cbData, GLvoid * pData)
{
(void) program;
(void) maxcbData;
(void) cbData;
(void) pData;
crWarning("packspu_GetUniformsLocations shouldn't be called directly");
}
{
}
{
/* we do not track shader creation inside guest since it is not needed currently.
* this is why we only care about programs here */
if (hwid)
{
}
}
{
}