MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / create_descriptor

Method create_descriptor

framework/api_vulkan_sample.cpp:995–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993}
994
995VkDescriptorBufferInfo ApiVulkanSample::create_descriptor(vkb::core::BufferC &buffer, VkDeviceSize size, VkDeviceSize offset)
996{
997 VkDescriptorBufferInfo descriptor{};
998 descriptor.buffer = buffer.get_handle();
999 descriptor.range = size;
1000 descriptor.offset = offset;
1001 return descriptor;
1002}
1003
1004VkDescriptorImageInfo ApiVulkanSample::create_descriptor(Texture &texture, VkDescriptorType descriptor_type)
1005{

Callers

nothing calls this directly

Calls 4

is_depth_stencil_formatFunction · 0.50
is_depth_formatFunction · 0.50
get_handleMethod · 0.45
get_formatMethod · 0.45

Tested by

no test coverage detected