mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-17 03:07:36 +00:00
Add support for VK_EXT_sample_locations
This commit is contained in:
32 files changed
+1145
-80
No files matched your search
@@ -498,16 +498,16 @@ void VulkanShaderCache::MakeGraphicsPipelineInfo(VkGraphicsPipelineCreateInfo &p
|
||||
|
||||
RDCASSERT(ARRAY_COUNT(atts) >= pipeInfo.attachments.size());
|
||||
|
||||
static VkDynamicState dynSt[VK_DYNAMIC_STATE_RANGE_SIZE];
|
||||
static VkDynamicState dynSt[VkDynamicCount];
|
||||
|
||||
static VkPipelineDynamicStateCreateInfo dyn = {VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO};
|
||||
|
||||
dyn.dynamicStateCount = 0;
|
||||
dyn.pDynamicStates = dynSt;
|
||||
|
||||
for(uint32_t i = 0; i < VK_DYNAMIC_STATE_RANGE_SIZE; i++)
|
||||
for(uint32_t i = 0; i < VkDynamicCount; i++)
|
||||
if(pipeInfo.dynamicStates[i])
|
||||
dynSt[dyn.dynamicStateCount++] = (VkDynamicState)i;
|
||||
dynSt[dyn.dynamicStateCount++] = ConvertDynamicState((VulkanDynamicStateIndex)i);
|
||||
|
||||
// since we don't have to worry about threading, we point everything at the above static structs
|
||||
|
||||
|
||||
Reference in new issue
Block a user