Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 892 vs 893 for /trunk/Source Code/Rendering/RenderPass/RenderPass.cpp

Diff revisions: vs.
  @@ -67,19 +67,19 @@
67 67 : _lastCommandCount(0),
68 68 _lasNodeCount(0)
69 69 {
70 - ShaderBufferParams params;
71 - params._primitiveCount = Config::MAX_VISIBLE_NODES;
72 - params._primitiveSizeInBytes = sizeof(GFXDevice::NodeData);
73 - params._ringBufferLength = 1;
74 - params._unbound = true;
75 - params._updateFrequency = BufferUpdateFrequency::OCASSIONAL;
70 + ShaderBufferDescriptor bufferDescriptor;
71 + bufferDescriptor._primitiveCount = Config::MAX_VISIBLE_NODES;
72 + bufferDescriptor._primitiveSizeInBytes = sizeof(GFXDevice::NodeData);
73 + bufferDescriptor._ringBufferLength = 1;
74 + bufferDescriptor._unbound = true;
75 + bufferDescriptor._updateFrequency = BufferUpdateFrequency::OCASSIONAL;
76 76
77 77 // This do not need to be persistently mapped as, hopefully, they will only be update once per frame
78 78 // Each pass should have its own set of buffers (shadows, reflection, etc)
79 - _renderData = context.newSB(params);
79 + _renderData = context.newSB(bufferDescriptor);
80 80
81 - params._primitiveSizeInBytes = sizeof(IndirectDrawCommand);
82 - _cmdBuffer = context.newSB(params);
81 + bufferDescriptor._primitiveSizeInBytes = sizeof(IndirectDrawCommand);
82 + _cmdBuffer = context.newSB(bufferDescriptor);
83 83 _cmdBuffer->addAtomicCounter(3);
84 84 }
85 85