diff options
| author | Jon Ashburn <jon@lunarg.com> | 2014-10-14 19:15:22 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2014-10-29 18:01:58 -0600 |
| commit | f7e9c1290c755ff59729af3ef63c1f5dd5e5fb45 (patch) | |
| tree | 6cb514ef92731ea61d360d8b519db3c58c0c6c3c /loader/loader.h | |
| parent | 4f94bfcce37d719d1edb44e98022d3e1a82cbef8 (diff) | |
| download | usermoji-f7e9c1290c755ff59729af3ef63c1f5dd5e5fb45.tar.xz | |
Layers initial prototype.
Includes an auto generated layer (GenericLayer) that wraps all api calls.
Includes a basic handwritten layer (basicLayer) that wraps a few apis.
Adds xglGetProcAddr as a new api, which is used to chain layers together.
All layers and loader implement a dispatch table.
Diffstat (limited to 'loader/loader.h')
| -rw-r--r-- | loader/loader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loader/loader.h b/loader/loader.h index b76f6344..d8191421 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -31,7 +31,7 @@ #include <xgl.h> #include <xglDbg.h> #include <xglWsiX11Ext.h> - +#include <xglLayer.h> #if defined(__GNUC__) && __GNUC__ >= 4 # define LOADER_EXPORT __attribute__((visibility("default"))) #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) @@ -40,4 +40,6 @@ # define LOADER_EXPORT #endif +extern XGL_UINT ActivateLayers(XGL_PHYSICAL_GPU *gpu); +#define MAX_LAYER_LIBRARIES 16 #endif /* LOADER_H */ |
