VirtualBox

Ignore:
Timestamp:
Sep 29, 2009 5:04:38 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: cache uniforms info

Location:
trunk/src/VBox/GuestHost/OpenGL/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_protocol.h

    r23274 r23399  
    1616/*For now guest is allowed to connect host opengl service if protocol version matches exactly*/
    1717/*Note: that after any change to this file, or glapi_parser\apispec.txt version should be changed*/
    18 #define CR_PROTOCOL_VERSION_MAJOR 4
     18#define CR_PROTOCOL_VERSION_MAJOR 5
    1919#define CR_PROTOCOL_VERSION_MINOR 1
    2020
  • trunk/src/VBox/GuestHost/OpenGL/include/state/cr_glsl.h

    r23274 r23399  
    6464    GLenum  type;
    6565    GLvoid *data;
     66#ifdef IN_GUEST
     67    GLuint  location;
     68#endif
    6669} CRGLSLUniform;
    6770
     
    7275    CRGLSLUniform      *pUniforms;
    7376    GLuint              cUniforms;
     77#ifdef IN_GUEST
     78    GLboolean           bUniformsSynced; /*uniforms info is updated since last link program call.*/
     79#endif
    7480} CRGLSLProgram;
    7581
     
    98104DECLEXPORT(void) STATE_APIENTRY crStateCreateProgram(GLuint id);
    99105
     106DECLEXPORT(GLboolean) STATE_APIENTRY crStateIsProgramUniformsCached(GLuint program);
     107
     108#ifdef IN_GUEST
     109DECLEXPORT(void) STATE_APIENTRY crStateGLSLProgramCacheUniforms(GLuint program, GLsizei cbData, GLvoid *pData);
     110#else
     111DECLEXPORT(void) STATE_APIENTRY crStateGLSLProgramCacheUniforms(GLuint program, GLsizei maxcbData, GLsizei *cbData, GLvoid *pData);
     112#endif
     113
    100114#ifdef __cplusplus
    101115}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette