Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 826 vs 827 for /trunk/Source Code/Platform/Video/GFXDeviceState.cpp

Diff revisions: vs.
  @@ -80,8 +80,14 @@
80 80 EnvironmentProbe::onStartup(*this);
81 81 PostFX::createInstance();
82 82 // Create a shader buffer to store the GFX rendering info (matrices, options, etc)
83 - _gfxDataBuffer = newSB(1, false, true, BufferUpdateFrequency::OFTEN);
84 - _gfxDataBuffer->create(1, sizeof(GFXShaderData::GPUData));
83 + ShaderBufferParams params;
84 + params._primitiveCount = 1;
85 + params._primitiveSizeInBytes = sizeof(GFXShaderData::GPUData);
86 + params._ringBufferLength = 1;
87 + params._unbound = false;
88 + params._updateFrequency = BufferUpdateFrequency::OFTEN;
89 + params._initialData = &_gpuBlock._data;
90 + _gfxDataBuffer = newSB(params);
85 91
86 92 _shaderComputeQueue = MemoryManager_NEW ShaderComputeQueue(cache);
87 93