Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 736 vs 737 for /trunk/Source Code/Platform/Video/Buffers/VertexBuffer/GenericBuffer/AttributeDescriptor.cpp

Diff revisions: vs.
  @@ -9,7 +9,7 @@
9 9 _componentsPerElement(0),
10 10 _elementCountOffset(0),
11 11 _wasSet(false),
12 - _dirty(false),
12 + _dirty(true),
13 13 _normalized(false),
14 14 _stride(0),
15 15 _type(GFXDataFormat::UNSIGNED_INT)
  @@ -20,8 +20,13 @@
20 20 {
21 21 }
22 22
23 - void AttributeDescriptor::set(U32 bufferIndex, U32 instanceDivisor, U32 componentsPerElement,
24 - bool normalized, U32 elementCountOffset, GFXDataFormat dataType) {
23 + void AttributeDescriptor::set(U32 bufferIndex,
24 + U32 instanceDivisor,
25 + U32 componentsPerElement,
26 + bool normalized,
27 + U32 elementCountOffset,
28 + GFXDataFormat dataType) {
29 +
25 30 this->bufferIndex(bufferIndex);
26 31 this->instanceDivisor(instanceDivisor);
27 32 this->componentsPerElement(componentsPerElement);
  @@ -42,17 +47,17 @@
42 47 _wasSet = false;
43 48 }
44 49
45 - void AttributeDescriptor::offset(U32 elementCountOffset) {
46 - _elementCountOffset = elementCountOffset;
47 - _dirty = true;
48 - }
49 -
50 50 void AttributeDescriptor::bufferIndex(U32 bufferIndex) {
51 51 _parentBuffer = bufferIndex;
52 52 _dirty = true;
53 53 _wasSet = false;
54 54 }
55 55
56 + void AttributeDescriptor::offset(U32 elementCountOffset) {
57 + _elementCountOffset = elementCountOffset;
58 + _dirty = true;
59 + }
60 +
56 61 void AttributeDescriptor::instanceDivisor(U32 instanceDivisor) {
57 62 _divisor = instanceDivisor;
58 63 _dirty = true;