MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / Update

Method Update

layers/state_tracker/cmd_buffer_state.cpp:220–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void 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
237std::string CommandBuffer::DescriptorHeap::Describe(bool is_sampler) const {
238 std::stringstream ss;

Callers 4

BeginMethod · 0.45
RecordBindSamplerHeapMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected