Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 718 vs 720 for /trunk/Source Code/Platform/Video/Headers/GFXDevice.h

Diff revisions: vs.
  @@ -109,7 +109,10 @@
109 109 ShaderBuffer* _buffer;
110 110 vec2<U32> _range;
111 111
112 - ShaderBufferBinding() : _buffer(nullptr)
112 + ShaderBufferBinding()
113 + : ShaderBufferBinding(ShaderBufferLocation::COUNT,
114 + nullptr,
115 + vec2<U32>(0,0))
113 116 {
114 117 }
115 118
  @@ -222,11 +225,30 @@
222 225 static const U32 MAX_PASSES_PER_STAGE = 6;
223 226
224 227 struct GPUBlock {
225 - GPUBlock() : _updated(true)
228 + GPUBlock() : _updated(true),
229 + _data(GPUData())
226 230 {
227 231 }
228 232
229 233 struct GPUData {
234 + GPUData()
235 + {
236 + _ProjectionMatrix.identity();
237 + _ViewMatrix.identity();
238 + _ViewProjectionMatrix.identity();
239 + _cameraPosition.set(0.0f);
240 + _ViewPort.set(1.0f);
241 + _ZPlanesCombined.set(1.0f, 1.1f, 1.0f, 1.1f);
242 + _invScreenDimension.set(1.0f);
243 + _renderProperties.set(0.0f);
244 + for (U8 i = 0; i < 6; ++i) {
245 + _frustumPlanes[i].set(0.0f);
246 + }
247 + for (U8 i = 0; i < Config::MAX_CLIP_PLANES; ++i) {
248 + _frustumPlanes[i].set(1.0f);
249 + }
250 + }
251 +
230 252 mat4<F32> _ProjectionMatrix;
231 253 mat4<F32> _ViewMatrix;
232 254 mat4<F32> _ViewProjectionMatrix;