Lines Matching refs:attrib
63 VertexAttrib* attrib = manager_->GetVertexAttrib(ii);
64 ASSERT_TRUE(attrib != NULL);
65 EXPECT_EQ(ii, attrib->index());
66 EXPECT_TRUE(attrib->buffer() == NULL);
67 EXPECT_EQ(0, attrib->offset());
68 EXPECT_EQ(4, attrib->size());
69 EXPECT_EQ(static_cast<GLenum>(GL_FLOAT), attrib->type());
70 EXPECT_EQ(GL_FALSE, attrib->normalized());
71 EXPECT_EQ(0, attrib->gl_stride());
72 EXPECT_FALSE(attrib->enabled());
74 EXPECT_TRUE(attrib->enabled());
107 VertexAttrib* attrib = manager_->GetVertexAttrib(1);
111 EXPECT_EQ(buffer, attrib->buffer());
112 EXPECT_EQ(4, attrib->offset());
113 EXPECT_EQ(3, attrib->size());
114 EXPECT_EQ(static_cast<GLenum>(GL_SHORT), attrib->type());
115 EXPECT_EQ(GL_TRUE, attrib->normalized());
116 EXPECT_EQ(32, attrib->gl_stride());
143 VertexAttrib* attrib = manager_->GetVertexAttrib(1);
145 EXPECT_TRUE(attrib->CanAccess(0));
147 EXPECT_FALSE(attrib->CanAccess(0));
150 EXPECT_FALSE(attrib->CanAccess(0));
157 EXPECT_FALSE(attrib->CanAccess(0));
161 EXPECT_TRUE(attrib->CanAccess(0));
162 EXPECT_FALSE(attrib->CanAccess(1));
165 EXPECT_FALSE(attrib->CanAccess(0));
170 EXPECT_TRUE(attrib->CanAccess(0));
171 EXPECT_FALSE(attrib->CanAccess(1));
173 EXPECT_TRUE(attrib->CanAccess(1));
175 EXPECT_TRUE(attrib->CanAccess(0));
176 EXPECT_FALSE(attrib->CanAccess(1));