aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspencer-lunarg <spencer@lunarg.com>2023-05-30 17:20:39 +0900
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2023-05-30 09:36:15 -0600
commit78f7116c852b37da7b64492c927c7bd32ee1d8a7 (patch)
tree8f94d068dd4e69cbb29ce00ba872432b5c7862c3
parent845f0fc359ec64f33b591aa8bf29c76c7d09f07c (diff)
downloadusermoji-78f7116c852b37da7b64492c927c7bd32ee1d8a7.tar.xz
icd: Add vkGetDescriptorSetLayoutSupport
-rw-r--r--icd/generated/mock_icd.cpp6
-rw-r--r--scripts/mock_icd_generator.py8
2 files changed, 12 insertions, 2 deletions
diff --git a/icd/generated/mock_icd.cpp b/icd/generated/mock_icd.cpp
index 7f6817c5..2a714a86 100644
--- a/icd/generated/mock_icd.cpp
+++ b/icd/generated/mock_icd.cpp
@@ -2062,7 +2062,9 @@ static VKAPI_ATTR void VKAPI_CALL GetDescriptorSetLayoutSupport(
const VkDescriptorSetLayoutCreateInfo* pCreateInfo,
VkDescriptorSetLayoutSupport* pSupport)
{
-//Not a CREATE or DESTROY function
+ if (pSupport) {
+ pSupport->supported = VK_TRUE;
+ }
}
@@ -3759,7 +3761,7 @@ static VKAPI_ATTR void VKAPI_CALL GetDescriptorSetLayoutSupportKHR(
const VkDescriptorSetLayoutCreateInfo* pCreateInfo,
VkDescriptorSetLayoutSupport* pSupport)
{
-//Not a CREATE or DESTROY function
+ GetDescriptorSetLayoutSupport(device, pCreateInfo, pSupport);
}
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py
index fdf74969..abce9bfd 100644
--- a/scripts/mock_icd_generator.py
+++ b/scripts/mock_icd_generator.py
@@ -1382,6 +1382,14 @@ CUSTOM_C_INTERCEPTS = {
pCapabilities->maxActiveReferencePictures = 4;
return VK_SUCCESS;
''',
+'vkGetDescriptorSetLayoutSupport':'''
+ if (pSupport) {
+ pSupport->supported = VK_TRUE;
+ }
+''',
+'vkGetDescriptorSetLayoutSupportKHR':'''
+ GetDescriptorSetLayoutSupport(device, pCreateInfo, pSupport);
+''',
}
# MockICDGeneratorOptions - subclass of GeneratorOptions.