15 const VkDescriptorSetLayoutCreateInfo createInfo{
16 VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO,
24 VkDescriptorSetLayout vkDescriptorSetLayout{VK_NULL_HANDLE};
25 VkResult result = vkCreateDescriptorSetLayout(static_cast<VkDevice>(
_device), &createInfo,
nullptr, &vkDescriptorSetLayout);
28 *returnResult = result;
31 if (result != VK_SUCCESS) {
41 std::unique_ptr<API::DescriptorSetLayout> descriptorSetLayout = std::make_unique<API::DescriptorSetLayout>();
42 return build(*descriptorSetLayout, returnResult) ? std::move(descriptorSetLayout) :
nullptr;
std::vector< VkDescriptorSetLayoutBinding > _bindings
DescriptorSetLayout(const API::Device &device)
const API::Device & _device
bool build(API::DescriptorSetLayout &instance, VkResult *returnResult=nullptr)