diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-07-09 15:02:25 -0600 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-07-10 08:56:38 -0600 |
| commit | c4ab7af30f38d340d4f56aa3b7dc6af9460539c7 (patch) | |
| tree | 8dc4f3c37ab5162fddc2dabf67c046e44ecc09ba /layers/multi.cpp | |
| parent | 20e748a664a2ad6d03e0bf45aca0db7dfff652de (diff) | |
| download | usermoji-c4ab7af30f38d340d4f56aa3b7dc6af9460539c7.tar.xz | |
misc: Support Pipeline caches and multi pipeline create, bug 14033 API changes
Diffstat (limited to 'layers/multi.cpp')
| -rw-r--r-- | layers/multi.cpp | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/layers/multi.cpp b/layers/multi.cpp index acdfaf6b..574e5c23 100644 --- a/layers/multi.cpp +++ b/layers/multi.cpp @@ -134,27 +134,21 @@ VK_LAYER_EXPORT VkResult VKAPI multi1CreateSampler(VkDevice device, const VkSamp return result; } -VK_LAYER_EXPORT VkResult VKAPI multi1CreateGraphicsPipeline(VkDevice device, const VkGraphicsPipelineCreateInfo* pCreateInfo, - VkPipeline* pPipeline) +VK_LAYER_EXPORT VkResult VKAPI multi1CreateGraphicsPipelines( + VkDevice device, + VkPipelineCache pipelineCache, + uint32_t count, + const VkGraphicsPipelineCreateInfo* pCreateInfos, + VkPipeline* pPipelines) { VkLayerDispatchTable **ppDisp = (VkLayerDispatchTable **) device; printf("At start of multi1 layer vkCreateGraphicsPipeline()\n"); - VkResult result = device_dispatch_table1(device)->CreateGraphicsPipeline(device, pCreateInfo, pPipeline); + VkResult result = device_dispatch_table1(device)->CreateGraphicsPipelines(device, pipelineCache, count, pCreateInfos, pPipelines); printf("Completed multi1 layer vkCreateGraphicsPipeline()\n"); return result; } -VK_LAYER_EXPORT VkResult VKAPI multi1StorePipeline(VkDevice device, VkPipeline pipeline, size_t* pDataSize, void* pData) -{ - VkLayerDispatchTable **ppDisp = (VkLayerDispatchTable **) device; - - printf("At start of multi1 layer vkStorePipeline()\n"); - VkResult result = device_dispatch_table1(device)->StorePipeline(device, pipeline, pDataSize, pData); - printf("Completed multi1 layer vkStorePipeline()\n"); - return result; -} - VK_LAYER_EXPORT void * VKAPI multi1GetDeviceProcAddr(VkDevice device, const char* pName) { VkBaseLayerObject* devw = (VkBaseLayerObject *) device; @@ -172,10 +166,8 @@ VK_LAYER_EXPORT void * VKAPI multi1GetDeviceProcAddr(VkDevice device, const char return (void *) multi1DestroyDevice; if (!strcmp("vkCreateSampler", pName)) return (void *) multi1CreateSampler; - if (!strcmp("vkCreateGraphicsPipeline", pName)) - return (void *) multi1CreateGraphicsPipeline; - if (!strcmp("vkStorePipeline", pName)) - return (void *) multi1StorePipeline; + if (!strcmp("vkCreateGraphicsPipelines", pName)) + return (void *) multi1CreateGraphicsPipelines; else { VkLayerDispatchTable **ppDisp = (VkLayerDispatchTable **) device; VkLayerDispatchTable* pTable = device_dispatch_table1(device); |
