commit | 8afefb5096305216b66a6e18ff653fde6f1f908a | [log] [tgz] |
---|---|---|
author | Courtney Goeltzenleuchter <courtney@LunarG.com> | Mon Jun 08 15:04:02 2015 -0600 |
committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | Thu Jun 18 10:18:20 2015 -0600 |
tree | b6011038cbcb8f526544d5b498774f06c96aef0e | |
parent | f4a2ebaa255e1b6563f5888a79cb44676d9bb879 [diff] [blame] |
loader: Add utility to return loader instance ptr
diff --git a/loader/loader.h b/loader/loader.h index 6c1ec62..526f92e 100644 --- a/loader/loader.h +++ b/loader/loader.h
@@ -211,6 +211,10 @@ VkLayerDbgFunctionNode *DbgFunctionHead; }; +static inline struct loader_instance *loader_instance(VkInstance instance) { + return (struct loader_instance *) instance; +} + struct loader_lib_info { const char *lib_name; uint32_t ref_count;