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/GFXDeviceObjects.cpp

Diff revisions: vs.
  @@ -207,10 +207,7 @@
207 207 return temp;
208 208 }
209 209
210 - ShaderBuffer* GFXDevice::newSB(const U32 ringBufferLength,
211 - const bool unbound,
212 - const bool persistentMapped ,
213 - BufferUpdateFrequency frequency) const {
210 + ShaderBuffer* GFXDevice::newSB(const ShaderBufferParams& params) const {
214 211 std::unique_lock<std::mutex> lk(_gpuObjectArenaMutex);
215 212
216 213 ShaderBuffer* temp = nullptr;
  @@ -221,18 +218,10 @@
221 218 /// The OpenGL implementation creates either an 'Uniform Buffer Object' if unbound is false
222 219 /// or a 'Shader Storage Block Object' otherwise
223 220 // The shader buffer can also be persistently mapped, if requested
224 - temp = new (_gpuObjectArena) glUniformBuffer(refThis(this),
225 - ringBufferLength,
226 - unbound,
227 - persistentMapped,
228 - frequency);
221 + temp = new (_gpuObjectArena) glUniformBuffer(refThis(this), params);
229 222 } break;
230 223 case RenderAPI::Direct3D: {
231 - temp = new (_gpuObjectArena) d3dConstantBuffer(refThis(this),
232 - ringBufferLength,
233 - unbound,
234 - persistentMapped,
235 - frequency);
224 + temp = new (_gpuObjectArena) d3dConstantBuffer(refThis(this), params);
236 225 } break;
237 226 default: {
238 227 DIVIDE_UNEXPECTED_CALL(Locale::get(_ID("ERROR_GFX_DEVICE_API")));