711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * shaderlib -- interface to WINE's Direct3D shader functions
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * Copyright (C) 2014-2015 Oracle Corporation
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * available from http://www.virtualbox.org. This file is free software;
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * you can redistribute it and/or modify it under the terms of the GNU
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * General Public License (GPL) as published by the Free Software
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync/** Pointer to shaderlib callback interface. */
07557d07616212d7ba6e7ab3059e85cb14633775vboxsynctypedef struct VBOXVMSVGASHADERIF *PVBOXVMSVGASHADERIF;
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * Interface the shader lib can use to talk back to the VBox VMSVGA OGL 3D code.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * Switches the initialization profile in builds where we have to juggle two
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * OpenGL profiles to gather all the data (i.e. mac os x).
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * @param pThis Pointer to this structure.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * @param fOtherProfile If set, switch to the non-default profile. If
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * clear, switch back to the default profile.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync DECLCALLBACKMEMBER(void, pfnSwitchInitProfile)(PVBOXVMSVGASHADERIF pThis, bool fOtherProfile);
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * Extension enumeration function.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * @param pThis Pointer to this structure.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * @param ppvEnumCtx Pointer to a void point that's initialized to NULL
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * before the first call.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * @param pszBuf Where to store the extension name. Garbled on
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * overflow (we assume no overflow).
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * @param cbBuf The size of the buffer @a pszBuf points to.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * @param fOtherProfile Indicates which profile to get extensions from,
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * we'll use the default profile if CLEAR and the
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync * non-default if SET.
07557d07616212d7ba6e7ab3059e85cb14633775vboxsync DECLCALLBACKMEMBER(bool, pfnGetNextExtension)(PVBOXVMSVGASHADERIF pThis, void **ppvEnumCtx, char *pszBuf, size_t cbBuf,
07557d07616212d7ba6e7ab3059e85cb14633775vboxsyncSHADERDECL(int) ShaderInitLib(PVBOXVMSVGASHADERIF pVBoxShaderIf);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderContextCreate(void **ppShaderContext);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderContextDestroy(void *pShaderContext);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderCreateVertexShader(void *pShaderContext, const uint32_t *pShaderData, void **pShaderObj);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderCreatePixelShader(void *pShaderContext, const uint32_t *pShaderData, void **pShaderObj);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderDestroyVertexShader(void *pShaderContext, void *pShaderObj);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderDestroyPixelShader(void *pShaderContext, void *pShaderObj);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetVertexShader(void *pShaderContext, void *pShaderObj);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetPixelShader(void *pShaderContext, void *pShaderObj);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetVertexShaderConstantB(void *pShaderContext, uint32_t reg, const uint8_t *pValues, uint32_t cRegisters);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetVertexShaderConstantI(void *pShaderContext, uint32_t reg, const int32_t *pValues, uint32_t cRegisters);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetVertexShaderConstantF(void *pShaderContext, uint32_t reg, const float *pValues, uint32_t cRegisters);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetPixelShaderConstantB(void *pShaderContext, uint32_t reg, const uint8_t *pValues, uint32_t cRegisters);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetPixelShaderConstantI(void *pShaderContext, uint32_t reg, const int32_t *pValues, uint32_t cRegisters);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderSetPixelShaderConstantF(void *pShaderContext, uint32_t reg, const float *pValues, uint32_t cRegisters);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderUpdateState(void *pShaderContext, uint32_t rtHeight);
3194da424708abdd288b28d96892b3a5f3f7df0bvboxsyncSHADERDECL(int) ShaderTransformProjection(unsigned cxViewPort, unsigned cyViewPort, float matrix[16]);
711fe7f5a2aa54e908a51475cf92b2642857bbdavboxsync#endif /* !___shaderlib_h___ */