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

Function DataOrNull

tests/unit/sync_val.cpp:3089–3094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3087// Vulkan VUID's OTOH frequently require NULLs for zero-sized entries, or for option entries with non-zero counts
3088template <typename T>
3089const typename T::value_type* DataOrNull(const T& container) {
3090 if (!container.empty()) {
3091 return container.data();
3092 }
3093 return nullptr;
3094}
3095
3096struct CreateRenderPassHelper {
3097 class SubpassDescriptionStore {

Callers 1

operator*Method · 0.85

Calls 2

emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected