Lines Matching refs:toIndex
37 static constexpr size_t toIndex(NamedObjectType type) { in toIndex() function
44 if (type > toIndex(NamedObjectType::NULLTYPE) && in incCount()
45 type < toIndex(NamedObjectType::NUM_OBJECT_TYPES)) { in incCount()
51 if (type > toIndex(NamedObjectType::NULLTYPE) && in decCount()
52 type < toIndex(NamedObjectType::NUM_OBJECT_TYPES)) { in decCount()
68 << mCounter[toIndex(NamedObjectType::VERTEXBUFFER)].load(); in printUsage()
70 << mCounter[toIndex(NamedObjectType::TEXTURE)].load(); in printUsage()
72 << mCounter[toIndex(NamedObjectType::RENDERBUFFER)].load(); in printUsage()
74 << mCounter[toIndex(NamedObjectType::FRAMEBUFFER)].load(); in printUsage()
76 << mCounter[toIndex(NamedObjectType::SHADER_OR_PROGRAM)].load(); in printUsage()
78 << mCounter[toIndex(NamedObjectType::SAMPLER)].load(); in printUsage()
79 ss << " Query: " << mCounter[toIndex(NamedObjectType::QUERY)].load(); in printUsage()
81 << mCounter[toIndex(NamedObjectType::VERTEX_ARRAY_OBJECT)].load(); in printUsage()
83 << mCounter[toIndex(NamedObjectType::TRANSFORM_FEEDBACK)].load() in printUsage()
89 std::array<std::atomic<size_t>, toIndex(NamedObjectType::NUM_OBJECT_TYPES)>