Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 528 vs 542 for /trunk/Source Code/Platform/Video/Direct3D/Buffers/ShaderBuffer/d3dConstantBuffer.cpp

Diff revisions: vs.
  @@ -3,11 +3,11 @@
3 3 namespace Divide {
4 4
5 5 d3dConstantBuffer::d3dConstantBuffer(const stringImpl& bufferName,
6 - const U32 sizeFactor,
6 + const U32 ringBufferLength,
7 7 bool unbound,
8 8 bool persistentMapped,
9 9 BufferUpdateFrequency frequency)
10 - : ShaderBuffer(bufferName, sizeFactor, unbound, persistentMapped, frequency)
10 + : ShaderBuffer(bufferName, ringBufferLength, unbound, persistentMapped, frequency)
11 11
12 12 {
13 13 }
  @@ -19,21 +19,24 @@
19 19 void d3dConstantBuffer::destroy() {
20 20 }
21 21
22 - void d3dConstantBuffer::create(U32 primitiveCount, ptrdiff_t primitiveSize) {
23 - ShaderBuffer::create(primitiveCount, primitiveSize);
22 + void d3dConstantBuffer::create(U32 primitiveCount, ptrdiff_t primitiveSize, U32 sizeFactor) {
23 + ShaderBuffer::create(primitiveCount, primitiveSize, sizeFactor);
24 24 }
25 25
26 26 void d3dConstantBuffer::updateData(ptrdiff_t offsetElementCount,
27 27 ptrdiff_t rangeElementCount,
28 - const bufferPtr data) {
28 + const bufferPtr data,
29 + U32 sizeFactorOffset) {
29 30 }
30 31
31 - bool d3dConstantBuffer::bindRange(U32 bindIndex, U32 offsetElementCount,
32 - U32 rangeElementCount) {
32 + bool d3dConstantBuffer::bindRange(U32 bindIndex,
33 + U32 offsetElementCount,
34 + U32 rangeElementCount,
35 + U32 sizeFactorOffset) {
33 36 return false;
34 37 }
35 38
36 - bool d3dConstantBuffer::bind(U32 bindIndex) {
39 + bool d3dConstantBuffer::bind(U32 bindIndex, U32 sizeFactorOffset) {
37 40 return false;
38 41 }
39 42