• Home
  • Raw
  • Download

Lines Matching +full:attrib +full:-

3 // Use of this source code is governed by a BSD-style license that can be
46 mBuffer->onNonTFBindingChanged(incr); in onContainerBindingChanged()
59 VertexAttribute::VertexAttribute(VertexAttribute &&attrib) in VertexAttribute() argument
60 : enabled(attrib.enabled), in VertexAttribute()
61 format(attrib.format), in VertexAttribute()
62 pointer(attrib.pointer), in VertexAttribute()
63 relativeOffset(attrib.relativeOffset), in VertexAttribute()
64 vertexAttribArrayStride(attrib.vertexAttribArrayStride), in VertexAttribute()
65 bindingIndex(attrib.bindingIndex), in VertexAttribute()
66 mCachedElementLimit(attrib.mCachedElementLimit) in VertexAttribute()
69 VertexAttribute &VertexAttribute::operator=(VertexAttribute &&attrib) in operator =() argument
71 if (this != &attrib) in operator =()
73 enabled = attrib.enabled; in operator =()
74 format = attrib.format; in operator =()
75 pointer = attrib.pointer; in operator =()
76 relativeOffset = attrib.relativeOffset; in operator =()
77 vertexAttribArrayStride = attrib.vertexAttribArrayStride; in operator =()
78 bindingIndex = attrib.bindingIndex; in operator =()
79 mCachedElementLimit = attrib.mCachedElementLimit; in operator =()
94 angle::CheckedNumeric<GLint64> bufferSize(buffer->getSize()); in updateCachedElementLimit()
109 // (buffer.size - buffer.offset - attrib.relativeOffset - attrib.size) / binding.stride + 1 in updateCachedElementLimit()
110 angle::CheckedNumeric<GLint64> elementLimit = (bufferSize - offset - attribSize); in updateCachedElementLimit()
137 size_t ComputeVertexAttributeStride(const VertexAttribute &attrib, const VertexBinding &binding) in ComputeVertexAttributeStride() argument
141 return attrib.enabled ? binding.getStride() : 16u; in ComputeVertexAttributeStride()
144 // Warning: you should ensure binding really matches attrib.bindingIndex before using this function.
145 GLintptr ComputeVertexAttributeOffset(const VertexAttribute &attrib, const VertexBinding &binding) in ComputeVertexAttributeOffset() argument
147 return attrib.relativeOffset + binding.getOffset(); in ComputeVertexAttributeOffset()
155 // non-instanced vertices, and the instanced vertex index advances once every "mDivisor" in ComputeVertexBindingElementCount()
159 // When instanceDrawCount is not a multiple attrib.divisor, the division must round up. in ComputeVertexBindingElementCount()
160 // For instance, with 5 non-instanced vertices and a divisor equal to 3, we need 2 instanced in ComputeVertexBindingElementCount()
162 return (instanceCount + divisor - 1u) / divisor; in ComputeVertexBindingElementCount()