diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-09-08 17:42:57 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-09-10 10:40:38 -0600 |
| commit | a52e058a91a3ce97c989760025a557fbcbf26368 (patch) | |
| tree | 7bc775f36fdcc88ceb65e3c90489cceadafd0896 /layers/param_checker.cpp | |
| parent | 07cd22290f52ac4e93ef7579391d7d670868bc58 (diff) | |
| download | usermoji-a52e058a91a3ce97c989760025a557fbcbf26368.tar.xz | |
layers: Add note about vkCreateDevice behavior
Diffstat (limited to 'layers/param_checker.cpp')
| -rw-r--r-- | layers/param_checker.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp index 50d4e185..3281ee2c 100644 --- a/layers/param_checker.cpp +++ b/layers/param_checker.cpp @@ -2238,6 +2238,13 @@ VK_LAYER_EXPORT VkResult VKAPI vkCreateDevice( const VkDeviceCreateInfo* pCreateInfo, VkDevice* pDevice) { + /* + * NOTE: The loader fills in the ICD's device object in *pDevice. + * Use that object to get the dispatch table. + * + * NOTE: We do not validate physicalDevice or any dispatchable + * object as the first parameter. We couldn't get here if it was wrong! + */ VkLayerDispatchTable *pTable = get_dispatch_table(pc_device_table_map, *pDevice); VkResult result = pTable->CreateDevice(physicalDevice, pCreateInfo, pDevice); if(result == VK_SUCCESS) |
