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/Scenes/SceneShaderData.cpp

Diff revisions: vs.
  @@ -9,15 +9,15 @@
9 9 : _context(context),
10 10 _sceneShaderData(nullptr)
11 11 {
12 - ShaderBufferParams params;
13 - params._primitiveCount = 1;
14 - params._primitiveSizeInBytes = sizeof(SceneShaderBufferData);
15 - params._ringBufferLength = 1;
16 - params._unbound = false;
17 - params._initialData = &_bufferData;
18 - params._updateFrequency = BufferUpdateFrequency::OFTEN;
12 + ShaderBufferDescriptor bufferDescriptor;
13 + bufferDescriptor._primitiveCount = 1;
14 + bufferDescriptor._primitiveSizeInBytes = sizeof(SceneShaderBufferData);
15 + bufferDescriptor._ringBufferLength = 1;
16 + bufferDescriptor._unbound = false;
17 + bufferDescriptor._initialData = &_bufferData;
18 + bufferDescriptor._updateFrequency = BufferUpdateFrequency::OFTEN;
19 19
20 - _sceneShaderData = _context.newSB(params);
20 + _sceneShaderData = _context.newSB(bufferDescriptor);
21 21 _sceneShaderData->bind(ShaderBufferLocation::SCENE_DATA);
22 22 shadowingSettings(0.0000002f, 0.0002f, 200.0f, 350.0f);
23 23 }