commit | decededc30d73692d6d5bbecb8276a7925c459d4 | [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 | c80bad4eaf5486fd9ca97c39ed6d698ac3570283 | |
parent | d02a964cce15e755839a23c398b4bc3ba2e2dd6c [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;