Home | History | Annotate | Download | only in d3d9

Lines Matching refs:attrib

68 bool VertexBuffer9::storeVertexAttributes(const gl::VertexAttribute &attrib, const gl::VertexAttribCurrentValueData &currentValue,
73 gl::Buffer *buffer = attrib.mBoundBuffer.get();
75 int inputStride = attrib.stride();
76 int elementSize = attrib.typeSize();
83 if (!spaceRequired(attrib, count, instances, &mapSize))
97 if (attrib.mArrayEnabled)
102 input = static_cast<const char*>(storage->getData()) + static_cast<int>(attrib.mOffset);
106 input = static_cast<const char*>(attrib.mPointer);
114 if (instances == 0 || attrib.mDivisor == 0)
119 gl::VertexFormat vertexFormat(attrib, currentValue.Type);
144 bool VertexBuffer9::getSpaceRequired(const gl::VertexAttribute &attrib, GLsizei count, GLsizei instances,
147 return spaceRequired(attrib, count, instances, outSpaceRequired);
202 bool VertexBuffer9::spaceRequired(const gl::VertexAttribute &attrib, std::size_t count, GLsizei instances,
205 gl::VertexFormat vertexFormat(attrib, GL_FLOAT);
208 if (attrib.mArrayEnabled)
211 if (instances == 0 || attrib.mDivisor == 0)
217 if (static_cast<unsigned int>(instances) < std::numeric_limits<unsigned int>::max() - (attrib.mDivisor - 1))
220 elementCount = (static_cast<unsigned int>(instances) + (attrib.mDivisor - 1)) / attrib.mDivisor;
224 elementCount = static_cast<unsigned int>(instances) / attrib.mDivisor;