| 218 | } |
| 219 | |
| 220 | void CommandBuffer::DescriptorHeap::Update(const VkBindHeapInfoEXT& bind_info, bool is_sampler) { |
| 221 | vvl::range<VkDeviceAddress> range = {bind_info.heapRange.address, bind_info.heapRange.address + bind_info.heapRange.size}; |
| 222 | vvl::range<VkDeviceAddress> reserved = { |
| 223 | bind_info.heapRange.address + bind_info.reservedRangeOffset, |
| 224 | bind_info.heapRange.address + bind_info.reservedRangeOffset + bind_info.reservedRangeSize}; |
| 225 | |
| 226 | if (is_sampler) { |
| 227 | sampler_bound = true; |
| 228 | sampler_reserved = reserved; |
| 229 | sampler_range = range; |
| 230 | } else { |
| 231 | resource_bound = true; |
| 232 | resource_reserved = reserved; |
| 233 | resource_range = range; |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | std::string CommandBuffer::DescriptorHeap::Describe(bool is_sampler) const { |
| 238 | std::stringstream ss; |
no outgoing calls
no test coverage detected