diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2014-11-27 07:01:51 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2014-11-27 07:01:51 -0700 |
| commit | a185055d2a371bd872fd2d5aba4e6f2dfed4e0e9 (patch) | |
| tree | 44448bb7f3ea7660b885f1a74402edaa7d90c6a3 /layers | |
| parent | bee021e0a8e8a22c39aa75733f63e3a8474d3a9b (diff) | |
| download | usermoji-a185055d2a371bd872fd2d5aba4e6f2dfed4e0e9.tar.xz | |
layers: Updated README with further layer descriptions.
Diffstat (limited to 'layers')
| -rw-r--r-- | layers/README.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/layers/README.md b/layers/README.md index 49b992b3..4eec6f51 100644 --- a/layers/README.md +++ b/layers/README.md @@ -1,5 +1,5 @@ #Layer Description and Status -*26 Nov 2014* +*27 Nov 2014* ##Overview @@ -15,6 +15,7 @@ upon how they are implemented. ## Layer library example code +Note that some layers are code-generated and will therefore exist in the <build dir> include/xglLayer.h - header file for layer code layer/Basic.cpp (name=Basic) simple example wrapping a few entrypoints. Shows layer features: - Multiple dispatch tables for supporting multiple GPUs. @@ -25,7 +26,11 @@ layer/Basic.cpp (name=Basic) simple example wrapping a few entrypoints. Shows la <build dir>/layer/generic_layer.c (name=Generic) - auto generated example wrapping all XGL entrypoints. Single global dispatch table. Can be LD_PRELOADed. <build dir>/layer/api_dump.c - print out API calls along with parameter values -<build dir>/layer/object_track.c - Print object CREATE/USE/DESTROY stats +<build dir>/layer/api_dump_file.c - Write API calls along with parameter values to xgl_apidump.txt file. +<build dir>/layer/api_dump_no_addr.c - print out API calls along with parameter values but replace any variable addresses with the static string "addr". +<build dir>/layer/object_track.c - Print object CREATE/USE/DESTROY stats. Individually track objects by category. XGL_OBJECT_TYPE enum defined in object_track.h. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. Provides custom interface to query number of live objects of given type "XGL_UINT64 objTrackGetObjectCount(XGL_OBJECT_TYPE type)" and a secondary call to return an array of those objects "XGL_RESULT objTrackGetObjects(XGL_OBJECT_TYPE type, XGL_UINT64 objCount, OBJTRACK_NODE* pObjNodeArray)". +layer/draw_state.c - Report the Descriptor Set, Pipeline State, and dynamic state at each Draw call. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. +layer/mem_tracker.c - Track GPU Memory and any binding it has to objects and/or Cmd Buffers. Report issues with freeing memory, memory dependencies on Cmd Buffers, and any memory leaks at DestroyDevice time. If a Dbg callback function is registered, this layer will use callback function(s) for reporting, otherwise uses stdout. ## Using Layers |
