| 261 | |
| 262 | template <vkb::BindingType bindingType> |
| 263 | inline uint64_t Buffer<bindingType>::get_device_address() const |
| 264 | { |
| 265 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 266 | { |
| 267 | return this->get_device().get_handle().getBufferAddressKHR({.buffer = this->get_handle()}); |
| 268 | } |
| 269 | else |
| 270 | { |
| 271 | return static_cast<vk::Device>(this->get_device().get_handle()).getBufferAddressKHR({.buffer = static_cast<vk::Buffer>(this->get_handle())}); |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | template <vkb::BindingType bindingType> |
| 276 | inline typename Buffer<bindingType>::DeviceSizeType Buffer<bindingType>::get_size() const |
no test coverage detected