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

Method IsHeap

layers/state_tracker/shader_module.cpp:2479–2484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2477}
2478
2479bool ResourceInterfaceVariable::IsHeap() const {
2480 // It is only legal to not have a set/binding for descriptors if they are the heap
2481 // We might one day want to know which heap it is, and could just check for |ResourceHeapEXT| or |SamplerHeapEXT| but that will
2482 // for sure require more testing
2483 return decorations.set == kInvalidValue || decorations.binding == kInvalidValue;
2484}
2485
2486const Instruction& ResourceInterfaceVariable::FindBaseType(ResourceInterfaceVariable& variable, const Module& module_state) {
2487 // Takes a OpVariable and looks at the the descriptor type it uses. This will find things such as if the variable is writable,

Calls

no outgoing calls

Tested by

no test coverage detected