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

Method get_offset

framework/buffer_pool.h:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97template <vkb::BindingType bindingType>
98typename BufferAllocation<bindingType>::DeviceSizeType BufferAllocation<bindingType>::get_offset() const
99{
100 if constexpr (bindingType == vkb::BindingType::Cpp)
101 {
102 return offset;
103 }
104 else
105 {
106 return static_cast<VkDeviceSize>(offset);
107 }
108}
109
110template <vkb::BindingType bindingType>
111typename BufferAllocation<bindingType>::DeviceSizeType BufferAllocation<bindingType>::get_size() const

Callers 12

draw_implMethod · 0.80
update_buffersMethod · 0.80
bind_lightingMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
update_uniform_implMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
update_uniformMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80

Calls

no outgoing calls

Tested by 1

drawMethod · 0.64