Lines Matching refs:pWDS
2821 VkWriteDescriptorSet *pWDS = NULL; in validate_dynamic_offsets() local
2830 pWDS = (VkWriteDescriptorSet *)set_node->ppDescriptors[i]; in validate_dynamic_offsets()
2831 if ((pWDS->descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC) || in validate_dynamic_offsets()
2832 (pWDS->descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC)) { in validate_dynamic_offsets()
2833 for (uint32_t j = 0; j < pWDS->descriptorCount; ++j) { in validate_dynamic_offsets()
2834 … bufferSize = my_data->bufferMap[pWDS->pBufferInfo[j].buffer].create_info->size; in validate_dynamic_offsets()
2836 if (pWDS->pBufferInfo[j].range == VK_WHOLE_SIZE) { in validate_dynamic_offsets()
2837 if ((dynOffset + pWDS->pBufferInfo[j].offset) > bufferSize) { in validate_dynamic_offsets()
2847 … pCB->dynamicOffsets[dynOffsetIndex], pWDS->pBufferInfo[j].offset, in validate_dynamic_offsets()
2848 … reinterpret_cast<const uint64_t &>(pWDS->pBufferInfo[j].buffer), bufferSize); in validate_dynamic_offsets()
2850 … } else if ((dynOffset + pWDS->pBufferInfo[j].offset + pWDS->pBufferInfo[j].range) > bufferSize) { in validate_dynamic_offsets()
2861 pWDS->pBufferInfo[j].offset, pWDS->pBufferInfo[j].range, in validate_dynamic_offsets()
2862 … reinterpret_cast<const uint64_t &>(pWDS->pBufferInfo[j].buffer), bufferSize); in validate_dynamic_offsets()
2863 … } else if ((dynOffset + pWDS->pBufferInfo[j].offset + pWDS->pBufferInfo[j].range) > bufferSize) { in validate_dynamic_offsets()
2874 pWDS->pBufferInfo[j].offset, pWDS->pBufferInfo[j].range, in validate_dynamic_offsets()
2875 … reinterpret_cast<const uint64_t &>(pWDS->pBufferInfo[j].buffer), bufferSize); in validate_dynamic_offsets()
3504 VkWriteDescriptorSet *pWDS = NULL; in shadowUpdateNode() local
3508 pWDS = new VkWriteDescriptorSet; in shadowUpdateNode()
3509 *pNewNode = (GENERIC_HEADER *)pWDS; in shadowUpdateNode()
3510 memcpy(pWDS, pUpdate, sizeof(VkWriteDescriptorSet)); in shadowUpdateNode()
3512 switch (pWDS->descriptorType) { in shadowUpdateNode()
3517 VkDescriptorImageInfo *info = new VkDescriptorImageInfo[pWDS->descriptorCount]; in shadowUpdateNode()
3518 memcpy(info, pWDS->pImageInfo, pWDS->descriptorCount * sizeof(VkDescriptorImageInfo)); in shadowUpdateNode()
3519 pWDS->pImageInfo = info; in shadowUpdateNode()
3523 VkBufferView *info = new VkBufferView[pWDS->descriptorCount]; in shadowUpdateNode()
3524 memcpy(info, pWDS->pTexelBufferView, pWDS->descriptorCount * sizeof(VkBufferView)); in shadowUpdateNode()
3525 pWDS->pTexelBufferView = info; in shadowUpdateNode()
3531 VkDescriptorBufferInfo *info = new VkDescriptorBufferInfo[pWDS->descriptorCount]; in shadowUpdateNode()
3532 memcpy(info, pWDS->pBufferInfo, pWDS->descriptorCount * sizeof(VkDescriptorBufferInfo)); in shadowUpdateNode()
3533 pWDS->pBufferInfo = info; in shadowUpdateNode()
3851 static VkBool32 validateUpdateContents(const layer_data *my_data, const VkWriteDescriptorSet *pWDS, in validateUpdateContents() argument
3859 switch (pWDS->descriptorType) { in validateUpdateContents()
3861 for (i = 0; i < pWDS->descriptorCount; ++i) { in validateUpdateContents()
3862 skipCall |= validateSampler(my_data, &(pWDS->pImageInfo[i].sampler), immutable); in validateUpdateContents()
3866 for (i = 0; i < pWDS->descriptorCount; ++i) { in validateUpdateContents()
3868 pSampler = &(pWDS->pImageInfo[i].sampler); in validateUpdateContents()
3898 for (i = 0; i < pWDS->descriptorCount; ++i) { in validateUpdateContents()
3899 …skipCall |= validateImageView(my_data, &(pWDS->pImageInfo[i].imageView), pWDS->pImageInfo[i].image… in validateUpdateContents()
3904 for (i = 0; i < pWDS->descriptorCount; ++i) { in validateUpdateContents()
3905 skipCall |= validateBufferView(my_data, &(pWDS->pTexelBufferView[i])); in validateUpdateContents()
3912 for (i = 0; i < pWDS->descriptorCount; ++i) { in validateUpdateContents()
3913 skipCall |= validateBufferInfo(my_data, &(pWDS->pBufferInfo[i])); in validateUpdateContents()
3953 …er_data *my_data, VkDevice device, uint32_t descriptorWriteCount, const VkWriteDescriptorSet *pWDS, in dsUpdate() argument
3962 VkDescriptorSet ds = pWDS[i].dstSet; in dsUpdate()
3969 GENERIC_HEADER *pUpdate = (GENERIC_HEADER *)&pWDS[i]; in dsUpdate()
3976 binding = pWDS[i].dstBinding; in dsUpdate()
3988 … endIndex = getUpdateEndIndex(my_data, device, pLayout, binding, pWDS[i].dstArrayElement, pUpdate); in dsUpdate()
3999 …startIndex = getUpdateStartIndex(my_data, device, pLayout, binding, pWDS[i].dstArrayElement, pUpda… in dsUpdate()
4005 if ((skipCall = validateUpdateContents(my_data, &pWDS[i], in dsUpdate()
4170 VkWriteDescriptorSet *pWDS = NULL; in freeShadowUpdateTree() local
4173 pWDS = (VkWriteDescriptorSet *)pFreeUpdate; in freeShadowUpdateTree()
4174 switch (pWDS->descriptorType) { in freeShadowUpdateTree()
4179 delete[] pWDS->pImageInfo; in freeShadowUpdateTree()
4183 delete[] pWDS->pTexelBufferView; in freeShadowUpdateTree()
4189 delete[] pWDS->pBufferInfo; in freeShadowUpdateTree()