Lines Matching refs:program
55 static GLint packspu_GetUniformLocationUncached(GLuint program, const char * name)
66 crPackGetUniformLocationSWAP(program, name, &return_val, &writeback);
70 crPackGetUniformLocation(program, name, &return_val, &writeback);
81 GLint PACKSPU_APIENTRY packspu_GetUniformLocation(GLuint program, const char * name)
83 if (!crStateIsProgramUniformsCached(program))
98 return packspu_GetUniformLocationUncached(program, name);
101 crPackGetUniformsLocations(program, maxcbData, pData, NULL, &writeback);
106 crStateGLSLProgramCacheUniforms(program, pData[0], &pData[1]);
108 CRASSERT(crStateIsProgramUniformsCached(program));
113 /*crDebug("packspu_GetUniformLocation(%d, %s)=%i", program, name, crStateGetUniformLocation(program, name));*/
114 return crStateGetUniformLocation(program, name);
117 GLint PACKSPU_APIENTRY packspu_GetAttribLocationUnchached( GLuint program, const char * name )
128 crPackGetAttribLocationSWAP( program, name, &return_val, &writeback );
132 crPackGetAttribLocation( program, name, &return_val, &writeback );
143 GLint PACKSPU_APIENTRY packspu_GetAttribLocation(GLuint program, const char * name)
146 return packspu_GetAttribLocationUnchached(program, name);
148 if (!crStateIsProgramAttribsCached(program))
163 return packspu_GetAttribLocationUnchached(program, name);
166 crPackGetAttribsLocations(program, maxcbData, pData, NULL, &writeback);
171 crStateGLSLProgramCacheAttribs(program, pData[0], &pData[1]);
173 CRASSERT(crStateIsProgramAttribsCached(program));
178 /*crDebug("packspu_GetAttribLocation(%d, %s)=%i", program, name, crStateGetAttribLocation(program, name));*/
179 return crStateGetAttribLocation(program, name);
182 void PACKSPU_APIENTRY packspu_GetUniformsLocations(GLuint program, GLsizei maxcbData, GLsizei * cbData, GLvoid * pData)
184 (void) program;
191 void PACKSPU_APIENTRY packspu_GetAttribsLocations(GLuint program, GLsizei maxcbData, GLsizei * cbData, GLvoid * pData)
193 (void) program;
200 void PACKSPU_APIENTRY packspu_DeleteProgram(GLuint program)
202 crStateDeleteProgram(program);
203 crPackDeleteProgram(program);
234 void PACKSPU_APIENTRY packspu_LinkProgram(GLuint program)
240 crStateLinkProgram(program);
241 crPackLinkProgram(program);
244 pack_spu.self.GetObjectParameterivARB(program, GL_OBJECT_LINK_STATUS_ARB, &linkStatus);
250 crRecDumpProgram(&pack_spu.Recorder, ctx, program, program);