Lines Matching defs:Name
136 void SimpleBinder::bind (GLuint name)
138 (this->*m_bindFunc)(m_bindTarget, name);
158 void bind (GLuint name) { glBindVertexArray(name); }
165 void bind (GLuint name)
167 if (name != 0)
168 glBeginQuery(GL_ANY_SAMPLES_PASSED, name);
175 bool ProgramType::isDeleteFlagged (GLuint name)
178 glGetProgramiv(name, GL_DELETE_STATUS, &deleteFlagged);
182 bool ShaderType::isDeleteFlagged (GLuint name)
185 glGetShaderiv(name, GL_DELETE_STATUS, &deleteFlagged);
250 GLint type = 0, name = 0;
264 &name),
269 return name;
608 class Name
611 Name (Type& type) : m_type(type), m_name(type.gen()) {}
612 Name (Type& type, GLuint name) : m_type(type), m_name(name) {}
613 ~Name (void) { m_type.release(m_name); }
688 TestBase (const char* name,
703 TestBase::TestBase (const char* name, const char* description, const Context& ctx)
704 : TestCase (ctx.getTestContext(), name, description)
707 , m_rnd (deStringHash(name))
722 LifeTest (const char* name,
726 : TestBase (name, description, type.getContext())
755 Name name (m_type);
758 errors.check(m_type.exists(*name), "Gen* should have created an object, but didn't");
760 errors.check(!m_type.exists(*name), "Gen* should not have created an object, but did");
766 GLuint name = m_type.gen();
768 m_type.release(name);
769 errors.check(!m_type.exists(name), "Object still exists after deletion");
775 Name name (m_type);
777 binder().bind(*name);
779 errors.check(m_type.exists(*name), "Object does not exist after binding");
797 "Deleting bound object made its name invalid");
808 "Deleting bound object did not make its name invalid");
813 errors.check(!m_type.exists(id), "Name is still valid after deleting and unbinding");
824 Name name (m_type, id);
825 binder().bind(*name);
830 "Did not fail when binding a name not generated by Gen* call");
831 errors.check(!m_type.exists(*name),
832 "Bind* created an object for a name not generated by a Gen* call");
837 "Failed when binding a name not generated by Gen* call");
838 errors.check(m_type.exists(*name),
873 "Deleted program name still valid after being made non-current");
880 AttachmentTest (const char* name,
884 : TestBase (name, description, attacher.getContext())
919 Name container (containerType);
924 Name element(elemType);
929 "Attachment name not returned by query even before deletion.");
933 // may still contain state identifying its name as being currently bound"
937 // name.
939 "Attachment name not returned by query after attachment was deleted.");
943 "Attached object name no longer valid after deletion.");
946 "Attached object name still valid after deletion.");
950 "Attachment name returned by query even after detachment.");
952 "Deleted attached object name still usable after detachment.");
958 InputAttachmentTest (const char* name,
961 : TestBase (name, description, inputAttacher.getContext())
990 Name container (containerType);
1007 const Name element (elementType);
1020 const Name newElement (elementType, newId);
1054 OutputAttachmentTest (const char* name,
1057 : TestBase (name, description,
1071 Name container (containerType);
1088 const Name element (elementType);
1102 const Name newElement (elementType, newId);
1144 const char* name;
1153 MovePtr<TestCaseGroup> group(new TestCaseGroup(testCtx, spec.name, spec.name));
1158 const char* name = type.getName();
1160 group->addChild(new LifeTest(name, name, type, spec.func));
1207 testCtx, "deleted_name", "Name of deleted attachment");
1213 const string name = attacherName(**it);
1214 nameGroup->addChild(new AttachmentTest(name.c_str(), name.c_str(), **it,
1227 const string name = attacherName((*it)->getAttacher());
1228 inputGroup->addChild(new InputAttachmentTest(name.c_str(), name.c_str(), **it));
1240 string name = attacherName((*it)->getAttacher());
1241 outputGroup->addChild(new OutputAttachmentTest(name.c_str(), name.c_str(),