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

Diff revisions: vs.
  @@ -29,14 +29,14 @@
29 29 const U32 numTiles = getNumTilesX() * getNumTilesY();
30 30 const U32 maxNumLightsPerTile = getMaxNumLightsPerTile();
31 31
32 - ShaderBufferParams params;
33 - params._primitiveCount = maxNumLightsPerTile * numTiles;
34 - params._primitiveSizeInBytes = sizeof(U32);
35 - params._ringBufferLength = 1;
36 - params._unbound = true;
37 - params._updateFrequency = BufferUpdateFrequency::ONCE;
32 + ShaderBufferDescriptor bufferDescriptor;
33 + bufferDescriptor._primitiveCount = maxNumLightsPerTile * numTiles;
34 + bufferDescriptor._primitiveSizeInBytes = sizeof(U32);
35 + bufferDescriptor._ringBufferLength = 1;
36 + bufferDescriptor._unbound = true;
37 + bufferDescriptor._updateFrequency = BufferUpdateFrequency::ONCE;
38 38
39 - _perTileLightIndexBuffer = _context.gfx().newSB(params);
39 + _perTileLightIndexBuffer = _context.gfx().newSB(bufferDescriptor);
40 40 _perTileLightIndexBuffer->bind(ShaderBufferLocation::LIGHT_INDICES);
41 41 }
42 42