OgreGpuProgramParams.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org
6 
7 Copyright (c) 2000-2013 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 #ifndef __GpuProgramParams_H_
29 #define __GpuProgramParams_H_
30 
31 // Precompiler options
32 #include "OgrePrerequisites.h"
33 #include "OgreSharedPtr.h"
34 #include "OgreIteratorWrappers.h"
35 #include "OgreSerializer.h"
36 #include "OgreRenderOperation.h"
37 #include "OgreAny.h"
39 #include "OgreHeaderPrefix.h"
40 
41 namespace Ogre {
42 
55  {
77  GCT_INT1 = 22,
78  GCT_INT2 = 23,
79  GCT_INT3 = 24,
80  GCT_INT4 = 25,
96  };
97 
102  {
111 
112 
114  GPV_ALL = 0xFFFF
115 
116  };
117 
123  {
129  size_t logicalIndex;
132  size_t elementSize;
134  size_t arraySize;
137 
138  bool isFloat() const
139  {
140  return isFloat(constType);
141  }
142 
143  static bool isFloat(GpuConstantType c)
144  {
145  switch(c)
146  {
147  case GCT_INT1:
148  case GCT_INT2:
149  case GCT_INT3:
150  case GCT_INT4:
151  case GCT_SAMPLER1D:
152  case GCT_SAMPLER2D:
153  case GCT_SAMPLER2DARRAY:
154  case GCT_SAMPLER3D:
155  case GCT_SAMPLERCUBE:
156  case GCT_SAMPLER1DSHADOW:
157  case GCT_SAMPLER2DSHADOW:
158  return false;
159  default:
160  return true;
161  };
162 
163  }
164 
165  bool isDouble() const
166  {
167  return isDouble(constType);
168  }
169 
170  static bool isDouble(GpuConstantType c)
171  {
172  switch(c)
173  {
174  case GCT_INT1:
175  case GCT_INT2:
176  case GCT_INT3:
177  case GCT_INT4:
178  case GCT_FLOAT1:
179  case GCT_FLOAT2:
180  case GCT_FLOAT3:
181  case GCT_FLOAT4:
182  case GCT_SAMPLER1D:
183  case GCT_SAMPLER2D:
184  case GCT_SAMPLER2DARRAY:
185  case GCT_SAMPLER3D:
186  case GCT_SAMPLERCUBE:
187  case GCT_SAMPLER1DSHADOW:
188  case GCT_SAMPLER2DSHADOW:
189  return false;
190  default:
191  return true;
192  };
193 
194  }
195 
196  bool isSampler() const
197  {
198  return isSampler(constType);
199  }
200 
201  static bool isSampler(GpuConstantType c)
202  {
203  switch(c)
204  {
205  case GCT_SAMPLER1D:
206  case GCT_SAMPLER2D:
207  case GCT_SAMPLER2DARRAY:
208  case GCT_SAMPLER3D:
209  case GCT_SAMPLERCUBE:
210  case GCT_SAMPLER1DSHADOW:
211  case GCT_SAMPLER2DSHADOW:
212  return true;
213  default:
214  return false;
215  };
216 
217  }
218 
219  bool isSubroutine() const
220  {
221  return isSubroutine(constType);
222  }
223 
225  {
226  return c == GCT_SUBROUTINE;
227  }
228 
232  static size_t getElementSize(GpuConstantType ctype, bool padToMultiplesOf4)
233  {
234  if (padToMultiplesOf4)
235  {
236  switch(ctype)
237  {
238  case GCT_FLOAT1:
239  case GCT_INT1:
240  case GCT_SAMPLER1D:
241  case GCT_SAMPLER2D:
242  case GCT_SAMPLER2DARRAY:
243  case GCT_SAMPLER3D:
244  case GCT_SAMPLERCUBE:
245  case GCT_SAMPLER1DSHADOW:
246  case GCT_SAMPLER2DSHADOW:
247  case GCT_FLOAT2:
248  case GCT_INT2:
249  case GCT_FLOAT3:
250  case GCT_INT3:
251  case GCT_FLOAT4:
252  case GCT_INT4:
253  return 4;
254  case GCT_MATRIX_2X2:
255  case GCT_MATRIX_2X3:
256  case GCT_MATRIX_2X4:
257  case GCT_DOUBLE1:
258  case GCT_DOUBLE2:
259  case GCT_DOUBLE3:
260  case GCT_DOUBLE4:
261  return 8; // 2 float4s
262  case GCT_MATRIX_3X2:
263  case GCT_MATRIX_3X3:
264  case GCT_MATRIX_3X4:
265  return 12; // 3 float4s
266  case GCT_MATRIX_4X2:
267  case GCT_MATRIX_4X3:
268  case GCT_MATRIX_4X4:
272  return 16; // 4 float4s
276  return 24;
280  return 32;
281  default:
282  return 4;
283  };
284  }
285  else
286  {
287  switch(ctype)
288  {
289  case GCT_FLOAT1:
290  case GCT_DOUBLE1:
291  case GCT_INT1:
292  case GCT_SAMPLER1D:
293  case GCT_SAMPLER2D:
294  case GCT_SAMPLER2DARRAY:
295  case GCT_SAMPLER3D:
296  case GCT_SAMPLERCUBE:
297  case GCT_SAMPLER1DSHADOW:
298  case GCT_SAMPLER2DSHADOW:
299  return 1;
300  case GCT_FLOAT2:
301  case GCT_INT2:
302  case GCT_DOUBLE2:
303  return 2;
304  case GCT_FLOAT3:
305  case GCT_INT3:
306  case GCT_DOUBLE3:
307  return 3;
308  case GCT_FLOAT4:
309  case GCT_INT4:
310  case GCT_DOUBLE4:
311  return 4;
312  case GCT_MATRIX_2X2:
314  return 4;
315  case GCT_MATRIX_2X3:
316  case GCT_MATRIX_3X2:
319  return 6;
320  case GCT_MATRIX_2X4:
321  case GCT_MATRIX_4X2:
324  return 8;
325  case GCT_MATRIX_3X3:
327  return 9;
328  case GCT_MATRIX_3X4:
329  case GCT_MATRIX_4X3:
332  return 12;
333  case GCT_MATRIX_4X4:
335  return 16;
336  default:
337  return 4;
338  };
339 
340  }
341  }
342 
344  : constType(GCT_UNKNOWN)
345  , physicalIndex((std::numeric_limits<size_t>::max)())
346  , logicalIndex(0)
347  , elementSize(0)
348  , arraySize(1)
349  , variability(GPV_GLOBAL) {}
350  };
353 
356  {
365 
366  GpuNamedConstants() : floatBufferSize(0), doubleBufferSize(0), intBufferSize(0) {}
367 
379  void generateConstantDefinitionArrayEntries(const String& paramName,
380  const GpuConstantDefinition& baseDef);
381 
383  static bool getGenerateAllConstantDefinitionArrayEntries();
384 
391  static void setGenerateAllConstantDefinitionArrayEntries(bool generateAll);
392 
396  void save(const String& filename) const;
400  void load(DataStreamPtr& stream);
401 
402  size_t calculateSize(void) const;
403 
404  protected:
412  };
414 
417  {
418  public:
420  virtual ~GpuNamedConstantsSerializer();
421  void exportNamedConstants(const GpuNamedConstants* pConsts, const String& filename,
422  Endian endianMode = ENDIAN_NATIVE);
423  void exportNamedConstants(const GpuNamedConstants* pConsts, DataStreamPtr stream,
424  Endian endianMode = ENDIAN_NATIVE);
425  void importNamedConstants(DataStreamPtr& stream, GpuNamedConstants* pDest);
426  };
427 
432  {
436  size_t currentSize;
439 
441  : physicalIndex(99999), currentSize(0), variability(GPV_GLOBAL) {}
442  GpuLogicalIndexUse(size_t bufIdx, size_t curSz, uint16 v)
443  : physicalIndex(bufIdx), currentSize(curSz), variability(v) {}
444  };
448  {
449  OGRE_MUTEX(mutex);
450 
454  size_t bufferSize;
455  GpuLogicalBufferStruct() : bufferSize(0) {}
456  };
458 
474 
491  {
492  protected:
498 
499  // Optional data the rendersystem might want to store
501 
504 
506  unsigned long mVersion;
507 
508  public:
509  GpuSharedParameters(const String& name);
510  virtual ~GpuSharedParameters();
511 
513  const String& getName() { return mName; }
514 
522  void addConstantDefinition(const String& name, GpuConstantType constType, size_t arraySize = 1);
523 
526  void removeConstantDefinition(const String& name);
527 
530  void removeAllConstantDefinitions();
531 
535  unsigned long getVersion() const { return mVersion; }
536 
537  size_t calculateSize(void) const;
538 
544  void _markDirty();
546  size_t getFrameLastUpdated() const { return mFrameLastUpdated; }
547 
551  GpuConstantDefinitionIterator getConstantDefinitionIterator(void) const;
552 
555  const GpuConstantDefinition& getConstantDefinition(const String& name) const;
556 
559  const GpuNamedConstants& getConstantDefinitions() const;
560 
562  void setNamedConstant(const String& name, Real val);
564  void setNamedConstant(const String& name, int val);
566  void setNamedConstant(const String& name, const Vector4& vec);
568  void setNamedConstant(const String& name, const Vector3& vec);
570  void setNamedConstant(const String& name, const Vector2& vec);
572  void setNamedConstant(const String& name, const Matrix4& m);
574  void setNamedConstant(const String& name, const Matrix4* m, size_t numEntries);
576  void setNamedConstant(const String& name, const float *val, size_t count);
578  void setNamedConstant(const String& name, const double *val, size_t count);
580  void setNamedConstant(const String& name, const ColourValue& colour);
582  void setNamedConstant(const String& name, const int *val, size_t count);
583 
585  float* getFloatPointer(size_t pos) { _markDirty(); return &mFloatConstants[pos]; }
587  const float* getFloatPointer(size_t pos) const { return &mFloatConstants[pos]; }
589  double* getDoublePointer(size_t pos) { _markDirty(); return &mDoubleConstants[pos]; }
591  const double* getDoublePointer(size_t pos) const { return &mDoubleConstants[pos]; }
593  int* getIntPointer(size_t pos) { _markDirty(); return &mIntConstants[pos]; }
595  const int* getIntPointer(size_t pos) const { return &mIntConstants[pos]; }
596 
598  const FloatConstantList& getFloatConstantList() const { return mFloatConstants; }
600  const DoubleConstantList& getDoubleConstantList() const { return mDoubleConstants; }
602  const IntConstantList& getIntConstantList() const { return mIntConstants; }
603 
605  void _setRenderSystemData(const Any& data) const { mRenderSystemData = data; }
607  const Any& _getRenderSystemData() const { return mRenderSystemData; }
608 
609  };
610 
613 
614  class GpuProgramParameters;
615 
620  {
621  protected:
623  // Not a shared pointer since this is also parent
625  // list of physical mappings that we are going to bring in
627  {
630  };
632 
634 
635  // Optional data the rendersystem might want to store
637 
639  unsigned long mCopyDataVersion;
640 
641  void initCopyData();
642 
643 
644  public:
647  GpuProgramParameters* params);
648 
656  void _copySharedParamsToTargetParams();
657 
659  const String& getName() const { return mSharedParams->getName(); }
660 
661  GpuSharedParametersPtr getSharedParams() const { return mSharedParams; }
662  GpuProgramParameters* getTargetParams() const { return mParams; }
663 
665  void _setRenderSystemData(const Any& data) const { mRenderSystemData = data; }
667  const Any& _getRenderSystemData() const { return mRenderSystemData; }
668 
669 
670  };
671 
703  {
704  public:
709  {
720 
729 
742 
743 
758 
759 
774 
775 
787 
788 
803 
804 
806 
810 
814 
819 
820 
833 
834 
837 
838 
841 
915 
926 
939 
955 
956 
1041 
1061 
1063 
1087 
1092 
1098 
1099 
1104 
1111 
1117 
1124 
1131 
1148 
1153 
1168 
1169  ACT_UNKNOWN = 999
1170  };
1171 
1175  enum ACDataType {
1181  ACDT_REAL
1182  };
1183 
1188  ET_REAL
1189  };
1190 
1195  {
1203 
1205  size_t _elementCount, ElementType _elementType,
1206  ACDataType _dataType)
1207  :acType(_acType), name(_name), elementCount(_elementCount),
1208  elementType(_elementType), dataType(_dataType)
1209  {
1210 
1211  }
1212  };
1213 
1216  {
1217  public:
1227  union{
1228  size_t data;
1230  };
1233 
1234  AutoConstantEntry(AutoConstantType theType, size_t theIndex, size_t theData,
1235  uint16 theVariability, size_t theElemCount = 4)
1236  : paramType(theType), physicalIndex(theIndex), elementCount(theElemCount),
1237  data(theData), variability(theVariability) {}
1238 
1239  AutoConstantEntry(AutoConstantType theType, size_t theIndex, Real theData,
1240  uint16 theVariability, size_t theElemCount = 4)
1241  : paramType(theType), physicalIndex(theIndex), elementCount(theElemCount),
1242  fData(theData), variability(theVariability) {}
1243 
1244  };
1245  // Auto parameter storage
1247 
1249 
1250  // Map that store subroutines associated with slots
1251  typedef HashMap<unsigned int, String> SubroutineMap;
1252  typedef HashMap<unsigned int, String>::const_iterator SubroutineIterator;
1253 
1254  protected:
1256 
1257  static AutoConstantDefinition AutoConstantDictionary[];
1285 
1288  GpuLogicalIndexUse* _getFloatConstantLogicalIndexUse(size_t logicalIndex, size_t requestedSize, uint16 variability);
1291  GpuLogicalIndexUse* _getDoubleConstantLogicalIndexUse(size_t logicalIndex, size_t requestedSize, uint16 variability);
1294  GpuLogicalIndexUse* _getIntConstantLogicalIndexUse(size_t logicalIndex, size_t requestedSize, uint16 variability);
1295 
1297  uint16 deriveVariability(AutoConstantType act);
1298 
1299  void copySharedParamSetUsage(const GpuSharedParamUsageList& srcList);
1300 
1302 
1303  // Optional data the rendersystem might want to store
1305 
1306 
1307 
1308  public:
1311 
1315  GpuProgramParameters& operator=(const GpuProgramParameters& oth);
1316 
1318  void _setNamedConstants(const GpuNamedConstantsPtr& constantmap);
1319 
1321  void _setLogicalIndexes(const GpuLogicalBufferStructPtr& floatIndexMap, const GpuLogicalBufferStructPtr& doubleIndexMap,
1322  const GpuLogicalBufferStructPtr& intIndexMap);
1323 
1324 
1326  bool hasNamedParameters() const { return !mNamedConstants.isNull(); }
1332  bool hasLogicalIndexedParameters() const { return !mFloatLogicalToPhysical.isNull(); }
1333 
1339  void setConstant(size_t index, const Vector4& vec);
1347  void setConstant(size_t index, Real val);
1355  void setConstant(size_t index, const Vector3& vec);
1363  void setConstant(size_t index, const Vector2& vec);
1370  void setConstant(size_t index, const Matrix4& m);
1378  void setConstant(size_t index, const Matrix4* m, size_t numEntries);
1385  void setConstant(size_t index, const float *val, size_t count);
1392  void setConstant(size_t index, const double *val, size_t count);
1398  void setConstant(size_t index, const ColourValue& colour);
1399 
1414  void setConstant(size_t index, const int *val, size_t count);
1415 
1422  void _writeRawConstants(size_t physicalIndex, const float* val, size_t count);
1429  void _writeRawConstants(size_t physicalIndex, const double* val, size_t count);
1436  void _writeRawConstants(size_t physicalIndex, const int* val, size_t count);
1443  void _readRawConstants(size_t physicalIndex, size_t count, float* dest);
1450  void _readRawConstants(size_t physicalIndex, size_t count, int* dest);
1451 
1462  void _writeRawConstant(size_t physicalIndex, const Vector4& vec,
1463  size_t count = 4);
1471  void _writeRawConstant(size_t physicalIndex, Real val);
1479  void _writeRawConstant(size_t physicalIndex, Real val, size_t count);
1487  void _writeRawConstant(size_t physicalIndex, int val);
1495  void _writeRawConstant(size_t physicalIndex, const Vector3& vec);
1503  void _writeRawConstant(size_t physicalIndex, const Vector2& vec);
1512  void _writeRawConstant(size_t physicalIndex, const Matrix4& m, size_t elementCount);
1520  void _writeRawConstant(size_t physicalIndex, const Matrix4* m, size_t numEntries);
1530  void _writeRawConstant(size_t physicalIndex, const ColourValue& colour,
1531  size_t count = 4);
1532 
1533 
1539  GpuConstantDefinitionIterator getConstantDefinitionIterator(void) const;
1540 
1545  const GpuConstantDefinition& getConstantDefinition(const String& name) const;
1546 
1551  const GpuNamedConstants& getConstantDefinitions() const;
1552 
1558  const GpuLogicalBufferStructPtr& getFloatLogicalBufferStruct() const { return mFloatLogicalToPhysical; }
1559 
1565  size_t getFloatLogicalIndexForPhysicalIndex(size_t physicalIndex);
1576  const GpuLogicalBufferStructPtr& getDoubleLogicalBufferStruct() const { return mDoubleLogicalToPhysical; }
1577 
1583  size_t getDoubleLogicalIndexForPhysicalIndex(size_t physicalIndex);
1589  size_t getIntLogicalIndexForPhysicalIndex(size_t physicalIndex);
1590 
1596  const GpuLogicalBufferStructPtr& getIntLogicalBufferStruct() const { return mIntLogicalToPhysical; }
1598  const FloatConstantList& getFloatConstantList() const { return mFloatConstants; }
1600  float* getFloatPointer(size_t pos) { return &mFloatConstants[pos]; }
1602  const float* getFloatPointer(size_t pos) const { return &mFloatConstants[pos]; }
1604  const DoubleConstantList& getDoubleConstantList() const { return mDoubleConstants; }
1606  double* getDoublePointer(size_t pos) { return &mDoubleConstants[pos]; }
1608  const double* getDoublePointer(size_t pos) const { return &mDoubleConstants[pos]; }
1610  const IntConstantList& getIntConstantList() const { return mIntConstants; }
1612  int* getIntPointer(size_t pos) { return &mIntConstants[pos]; }
1614  const int* getIntPointer(size_t pos) const { return &mIntConstants[pos]; }
1616  const AutoConstantList& getAutoConstantList() const { return mAutoConstants; }
1617 
1631  void setAutoConstant(size_t index, AutoConstantType acType, size_t extraInfo = 0);
1632  void setAutoConstantReal(size_t index, AutoConstantType acType, Real rData);
1633 
1648  void setAutoConstant(size_t index, AutoConstantType acType, uint16 extraInfo1, uint16 extraInfo2);
1649 
1653  void _setRawAutoConstant(size_t physicalIndex, AutoConstantType acType, size_t extraInfo,
1654  uint16 variability, size_t elementSize = 4);
1658  void _setRawAutoConstantReal(size_t physicalIndex, AutoConstantType acType, Real rData,
1659  uint16 variability, size_t elementSize = 4);
1660 
1661 
1663  void clearAutoConstant(size_t index);
1664 
1669  void setConstantFromTime(size_t index, Real factor);
1670 
1672  void clearAutoConstants(void);
1675  AutoConstantIterator getAutoConstantIterator(void) const;
1677  size_t getAutoConstantCount(void) const { return mAutoConstants.size(); }
1682  AutoConstantEntry* getAutoConstantEntry(const size_t index);
1684  bool hasAutoConstants(void) const { return !(mAutoConstants.empty()); }
1689  const AutoConstantEntry* findFloatAutoConstantEntry(size_t logicalIndex);
1694  const AutoConstantEntry* findDoubleAutoConstantEntry(size_t logicalIndex);
1699  const AutoConstantEntry* findIntAutoConstantEntry(size_t logicalIndex);
1703  const AutoConstantEntry* findAutoConstantEntry(const String& paramName);
1707  const AutoConstantEntry* _findRawAutoConstantEntryFloat(size_t physicalIndex);
1711  const AutoConstantEntry* _findRawAutoConstantEntryDouble(size_t physicalIndex);
1715  const AutoConstantEntry* _findRawAutoConstantEntryInt(size_t physicalIndex);
1716 
1721  void _updateAutoParams(const AutoParamDataSource* source, uint16 variabilityMask);
1722 
1725  void setIgnoreMissingParams(bool state) { mIgnoreMissingParams = state; }
1726 
1746  void setNamedConstant(const String& name, Real val);
1766  void setNamedConstant(const String& name, int val);
1771  void setNamedConstant(const String& name, const Vector4& vec);
1779  void setNamedConstant(const String& name, const Vector3& vec);
1784  void setNamedConstant(const String& name, const Vector2& vec);
1789  void setNamedConstant(const String& name, const Matrix4& m);
1797  void setNamedConstant(const String& name, const Matrix4* m, size_t numEntries);
1814  void setNamedConstant(const String& name, const float *val, size_t count,
1815  size_t multiple = 4);
1832  void setNamedConstant(const String& name, const double *val, size_t count,
1833  size_t multiple = 4);
1838  void setNamedConstant(const String& name, const ColourValue& colour);
1839 
1856  void setNamedConstant(const String& name, const int *val, size_t count,
1857  size_t multiple = 4);
1858 
1873  void setNamedAutoConstant(const String& name, AutoConstantType acType, size_t extraInfo = 0);
1874  void setNamedAutoConstantReal(const String& name, AutoConstantType acType, Real rData);
1875 
1891  void setNamedAutoConstant(const String& name, AutoConstantType acType, uint16 extraInfo1, uint16 extraInfo2);
1892 
1900  void setNamedConstantFromTime(const String& name, Real factor);
1901 
1903  void clearNamedAutoConstant(const String& name);
1904 
1914  const GpuConstantDefinition* _findNamedConstantDefinition(
1915  const String& name, bool throwExceptionIfMissing = false) const;
1922  size_t _getFloatConstantPhysicalIndex(size_t logicalIndex, size_t requestedSize, uint16 variability);
1929  size_t _getDoubleConstantPhysicalIndex(size_t logicalIndex, size_t requestedSize, uint16 variability);
1936  size_t _getIntConstantPhysicalIndex(size_t logicalIndex, size_t requestedSize, uint16 variability);
1937 
1945  void setTransposeMatrices(bool val) { mTransposeMatrices = val; }
1947  bool getTransposeMatrices(void) const { return mTransposeMatrices; }
1948 
1955  void copyConstantsFrom(const GpuProgramParameters& source);
1956 
1965  void copyMatchingNamedConstantsFrom(const GpuProgramParameters& source);
1966 
1970  static const AutoConstantDefinition* getAutoConstantDefinition(const String& name);
1975  static const AutoConstantDefinition* getAutoConstantDefinition(const size_t idx);
1978  static size_t getNumAutoConstantDefinitions(void);
1979 
1980 
1983  void incPassIterationNumber(void);
1986  { return mActivePassIterationIndex != (std::numeric_limits<size_t>::max)(); }
1989  { return mActivePassIterationIndex; }
1990 
1991 
1997  void addSharedParameters(GpuSharedParametersPtr sharedParams);
1998 
2006  void addSharedParameters(const String& sharedParamsName);
2007 
2009  bool isUsingSharedParameters(const String& sharedParamsName) const;
2010 
2012  void removeSharedParameters(const String& sharedParamsName);
2013 
2015  void removeAllSharedParameters();
2016 
2018  const GpuSharedParamUsageList& getSharedParameters() const;
2019 
2021  void _setRenderSystemData(const Any& data) const { mRenderSystemData = data; }
2023  const Any& _getRenderSystemData() const { return mRenderSystemData; }
2024 
2032  void _copySharedParams();
2033 
2034  size_t calculateSize(void) const;
2035 
2038  void setNamedSubroutine(const String& subroutineSlot, const String& subroutine);
2039 
2042  void setSubroutine(size_t index, const String& subroutine);
2043 
2046  const SubroutineMap& getSubroutineMap() const { return mSubroutineMap; }
2047  };
2048 
2051 
2054 }
2055 
2056 #include "OgreHeaderSuffix.h"
2057 
2058 #endif
2059 
OgreSharedPtr.h
OgreHeaderSuffix.h
Ogre::GpuProgramParameters::AutoConstantEntry::paramType
AutoConstantType paramType
The type of parameter.
Definition: OgreGpuProgramParams.h:1219
Ogre::GCT_SAMPLER2DARRAY
Definition: OgreGpuProgramParams.h:67
Ogre::GpuSharedParametersUsage
This class records the usage of a set of shared parameters in a concrete set of GpuProgramParameters.
Definition: OgreGpuProgramParams.h:619
Ogre::GpuProgramParameters::ACT_INVERSE_VIEWPORT_HEIGHT
This variable represents 1.0/ViewportHeight.
Definition: OgreGpuProgramParams.h:1056
Ogre::GpuProgramParameters::getDoublePointer
const double * getDoublePointer(size_t pos) const
Get a pointer to the 'nth' item in the double buffer.
Definition: OgreGpuProgramParams.h:1608
Ogre::GpuProgramParameters::ACT_LIGHT_SPECULAR_COLOUR_POWER_SCALED_ARRAY
Array of light specular colours scaled by light power (count set by extra param)
Definition: OgreGpuProgramParams.h:884
Ogre::GCT_INT1
Definition: OgreGpuProgramParams.h:77
Ogre::GpuProgramParameters::SubroutineMap
HashMap< unsigned int, String > SubroutineMap
Definition: OgreGpuProgramParams.h:1251
Ogre::GpuProgramParameters::ACT_SHADOW_EXTRUSION_DISTANCE
The distance a shadow volume should be extruded when using finite extrusion programs.
Definition: OgreGpuProgramParams.h:960
Ogre::GpuProgramParameters::ACT_ANIMATION_PARAMETRIC
Provides a parametric animation value [0..1], only available where the renderable specifically implem...
Definition: OgreGpuProgramParams.h:1103
Ogre::GpuProgramParameters::ACT_LIGHT_POSITION_OBJECT_SPACE_ARRAY
Array of light positions in object space (count set by extra param)
Definition: OgreGpuProgramParams.h:890
Ogre::AutoParamDataSource
This utility class is used to hold the information used to generate the matrices and other informatio...
Definition: OgreAutoParamDataSource.h:60
Ogre::GpuProgramParameters::ACT_CAMERA_POSITION_OBJECT_SPACE
The current camera's position in object space.
Definition: OgreGpuProgramParams.h:964
Ogre::GpuProgramParameters::ACT_LIGHT_COUNT
The number of active light sources (better than gl_MaxLights)
Definition: OgreGpuProgramParams.h:836
Ogre::GpuConstantDefinition::elementSize
size_t elementSize
Number of raw buffer slots per element (some programs pack each array element to float4,...
Definition: OgreGpuProgramParams.h:132
Ogre::GpuConstantDefinition::isFloat
static bool isFloat(GpuConstantType c)
Definition: OgreGpuProgramParams.h:143
Ogre::GpuProgramParameters::ACT_TIME_0_1
Single float value, which represents scaled time value [0..1], which repeats itself based on given as...
Definition: OgreGpuProgramParams.h:1010
Ogre::GpuProgramParameters::getFloatPointer
float * getFloatPointer(size_t pos)
Get a pointer to the 'nth' item in the float buffer.
Definition: OgreGpuProgramParams.h:1600
Ogre::GpuProgramParameters::AutoConstantDefinition::name
String name
Definition: OgreGpuProgramParams.h:1197
Ogre::GpuProgramParameters::ACT_TEXTURE_WORLDVIEWPROJ_MATRIX_ARRAY
Array of world/view/projection matrices of the first n texture projection frustums.
Definition: OgreGpuProgramParams.h:974
Ogre::GpuProgramParameters::getFloatConstantList
const FloatConstantList & getFloatConstantList() const
Get a reference to the list of float constants.
Definition: OgreGpuProgramParams.h:1598
Ogre::GCT_MATRIX_4X3
Definition: OgreGpuProgramParams.h:75
Ogre::GpuProgramParameters::ACT_DERIVED_LIGHT_DIFFUSE_COLOUR_ARRAY
Array of derived light diffuse colours (count set by extra param)
Definition: OgreGpuProgramParams.h:941
Ogre::GpuProgramParameters::ACT_INVERSE_TRANSPOSE_WORLDVIEW_MATRIX
The current world & view matrices concatenated, then inverted & transposed.
Definition: OgreGpuProgramParams.h:785
Ogre::GpuProgramParameters::ACT_TIME_0_X_PACKED
Vector of "Time0_X", "SinTime0_X", "CosTime0_X", "TanTime0_X".
Definition: OgreGpuProgramParams.h:1005
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::GpuProgramParameters::ACT_DERIVED_SCENE_COLOUR
The derived scene colour, with 'r', 'g' and 'b' components filled with sum of derived ambient light c...
Definition: OgreGpuProgramParams.h:925
Ogre::GpuProgramParameters::ACT_LIGHT_POSITION_VIEW_SPACE_ARRAY
Array of light positions in view space (count set by extra param)
Definition: OgreGpuProgramParams.h:892
Ogre::GpuProgramParameters::getFloatLogicalBufferStruct
const GpuLogicalBufferStructPtr & getFloatLogicalBufferStruct() const
Get the current list of mappings from low-level logical param indexes to physical buffer locations in...
Definition: OgreGpuProgramParams.h:1558
Ogre::GpuProgramParameters::ACT_VIEW_DIRECTION
view parameters
Definition: OgreGpuProgramParams.h:1066
Ogre::GpuNamedConstants
Struct collecting together the information for named constants.
Definition: OgreGpuProgramParams.h:355
Ogre::GpuNamedConstants::map
GpuConstantDefinitionMap map
Map of parameter names to GpuConstantDefinition.
Definition: OgreGpuProgramParams.h:364
Ogre::GpuProgramParameters::ACT_FRAME_TIME
provides the scaled frame time, returned as a floating point value.
Definition: OgreGpuProgramParams.h:1037
Ogre::GpuProgramParameters::AutoConstantIterator
ConstVectorIterator< AutoConstantList > AutoConstantIterator
Definition: OgreGpuProgramParams.h:1673
Ogre::map
Definition: OgrePrerequisites.h:533
Ogre::GpuProgramParameters::ACT_INVERSE_TRANSPOSE_VIEWPROJ_MATRIX
Provides inverse transpose of concatenated view and projection matrices.
Definition: OgreGpuProgramParams.h:773
Ogre::GpuProgramParameters::ACT_INVERSE_WORLDVIEWPROJ_MATRIX
Provides inverse of concatenated world, view and projection matrices.
Definition: OgreGpuProgramParams.h:794
Ogre::GpuProgramParameters::ACT_TIME
provides current elapsed time
Definition: OgreGpuProgramParams.h:991
Ogre::GCT_UNKNOWN
Definition: OgreGpuProgramParams.h:95
Ogre::GpuSharedParameters::getName
const String & getName()
Get the name of this shared parameter set.
Definition: OgreGpuProgramParams.h:513
Ogre::GpuConstantDefinition::isDouble
bool isDouble() const
Definition: OgreGpuProgramParams.h:165
Ogre::GCT_MATRIX_2X4
Definition: OgreGpuProgramParams.h:70
Ogre::GpuSharedParametersUsage::CopyDataEntry::dstDefinition
const GpuConstantDefinition * dstDefinition
Definition: OgreGpuProgramParams.h:629
Ogre::GpuProgramParameters::ACT_TEXTURE_SIZE
Provides texture size of the texture unit (index determined by setAutoConstant call).
Definition: OgreGpuProgramParams.h:1139
Ogre::GpuProgramParameters::ACT_CAMERA_POSITION
The current camera's position in world space.
Definition: OgreGpuProgramParams.h:962
Ogre::GpuProgramParameters::ACT_LIGHT_DIRECTION_OBJECT_SPACE_ARRAY
Array of light directions in object space (count set by extra param)
Definition: OgreGpuProgramParams.h:896
Ogre::GpuProgramParameters::setTransposeMatrices
void setTransposeMatrices(bool val)
Sets whether or not we need to transpose the matrices passed in from the rest of OGRE.
Definition: OgreGpuProgramParams.h:1945
Ogre::GpuProgramParameters::ACT_TEXTURE_VIEWPROJ_MATRIX_ARRAY
Array of view/projection matrices of the first n texture projection frustums.
Definition: OgreGpuProgramParams.h:968
Ogre::GpuNamedConstants::intBufferSize
size_t intBufferSize
Total size of the int buffer required.
Definition: OgreGpuProgramParams.h:362
Ogre::GCT_SUBROUTINE
Definition: OgreGpuProgramParams.h:81
Ogre::GpuProgramParameters::getFloatPointer
const float * getFloatPointer(size_t pos) const
Get a pointer to the 'nth' item in the float buffer.
Definition: OgreGpuProgramParams.h:1602
Ogre::GCT_MATRIX_DOUBLE_3X2
Definition: OgreGpuProgramParams.h:89
Ogre::GpuProgramParameters::ACT_SURFACE_SPECULAR_COLOUR
Surface specular colour, as set in Pass::setSpecular.
Definition: OgreGpuProgramParams.h:826
Ogre::GpuProgramParameters::getSubroutineMap
const SubroutineMap & getSubroutineMap() const
Get map with.
Definition: OgreGpuProgramParams.h:2046
Ogre::GpuSharedParameters::mFloatConstants
FloatConstantList mFloatConstants
Definition: OgreGpuProgramParams.h:494
Ogre::GpuLogicalBufferStruct::bufferSize
size_t bufferSize
Shortcut to know the buffer size needs.
Definition: OgreGpuProgramParams.h:454
Ogre::GpuProgramParameters::ACT_LIGHT_DISTANCE_OBJECT_SPACE_ARRAY
Array of distances of the lights from the center of the object a useful approximation as an alternati...
Definition: OgreGpuProgramParams.h:903
Ogre::GpuProgramParameters::ACT_DERIVED_AMBIENT_LIGHT_COLOUR
The derived ambient light colour, with 'r', 'g', 'b' components filled with product of surface ambien...
Definition: OgreGpuProgramParams.h:920
OgreAny.h
Ogre::GpuProgramParameters::ACT_TRANSPOSE_WORLDVIEWPROJ_MATRIX
Provides transpose of concatenated world, view and projection matrices.
Definition: OgreGpuProgramParams.h:798
Ogre::GpuConstantDefinition::constType
GpuConstantType constType
Data type.
Definition: OgreGpuProgramParams.h:125
Ogre::GpuProgramParameters::ACT_WORLD_MATRIX_ARRAY_3x4
The current array of world matrices, as a 3x4 matrix, used for blending.
Definition: OgreGpuProgramParams.h:722
Ogre::GpuProgramParameters::ACT_VIEW_SIDE_VECTOR
This variable provides the view side vector (world space).
Definition: OgreGpuProgramParams.h:1070
Ogre::GpuProgramParameters::ACT_SURFACE_EMISSIVE_COLOUR
Surface emissive colour, as set in Pass::setSelfIllumination.
Definition: OgreGpuProgramParams.h:828
Ogre::GpuProgramParameters::getAutoConstantCount
size_t getAutoConstantCount(void) const
Gets the number of int constants that have been set.
Definition: OgreGpuProgramParams.h:1677
Ogre::GpuSharedParameters::mFrameLastUpdated
size_t mFrameLastUpdated
Not used when copying data, but might be useful to RS using shared buffers.
Definition: OgreGpuProgramParams.h:503
Ogre::GpuProgramParameters::AutoConstantEntry
Structure recording the use of an automatic parameter.
Definition: OgreGpuProgramParams.h:1215
Ogre::GpuLogicalIndexUse::GpuLogicalIndexUse
GpuLogicalIndexUse(size_t bufIdx, size_t curSz, uint16 v)
Definition: OgreGpuProgramParams.h:442
Ogre::GpuProgramParameters::getAutoConstantList
const AutoConstantList & getAutoConstantList() const
Get a reference to the list of auto constant bindings.
Definition: OgreGpuProgramParams.h:1616
Ogre::GpuProgramParameters::ACT_COSTIME_0_1
Cosine of "Time0_1". Equivalent to RenderMonkey's "CosTime0_1".
Definition: OgreGpuProgramParams.h:1012
Ogre::GpuProgramParameters::AutoConstantEntry::AutoConstantEntry
AutoConstantEntry(AutoConstantType theType, size_t theIndex, Real theData, uint16 theVariability, size_t theElemCount=4)
Definition: OgreGpuProgramParams.h:1239
Ogre::GpuProgramParameters::ACT_LIGHT_POSITION_ARRAY
Array of light positions in world space (count set by extra param)
Definition: OgreGpuProgramParams.h:888
Ogre::GpuProgramParameters::getIntPointer
int * getIntPointer(size_t pos)
Get a pointer to the 'nth' item in the int buffer.
Definition: OgreGpuProgramParams.h:1612
Ogre::GpuProgramParametersSharedPtr
SharedPtr< GpuProgramParameters > GpuProgramParametersSharedPtr
Shared pointer used to hold references to GpuProgramParameters instances.
Definition: OgreGpuProgramParams.h:2050
Ogre::GpuLogicalIndexUse::currentSize
size_t currentSize
Current physical size allocation.
Definition: OgreGpuProgramParams.h:436
Ogre::GpuProgramParameters::SubroutineIterator
HashMap< unsigned int, String >::const_iterator SubroutineIterator
Definition: OgreGpuProgramParams.h:1252
Ogre::GpuSharedParameters::getIntConstantList
const IntConstantList & getIntConstantList() const
Get a reference to the list of int constants.
Definition: OgreGpuProgramParams.h:602
Ogre::GpuProgramParameters::ACT_LIGHT_CUSTOM
Binds custom per-light constants to the shaders.
Definition: OgreGpuProgramParams.h:1167
Ogre::GpuConstantDefinition::isSampler
bool isSampler() const
Definition: OgreGpuProgramParams.h:196
Ogre::GpuProgramParameters::~GpuProgramParameters
~GpuProgramParameters()
Definition: OgreGpuProgramParams.h:1310
Ogre::Any
Variant type that can hold Any other type.
Definition: OgreAny.h:56
Ogre::uint16
unsigned short uint16
Definition: OgrePlatform.h:360
Ogre::GpuProgramParameters::ACT_FOV
This variable provides the field of view as a floating point value.
Definition: OgreGpuProgramParams.h:1078
Ogre::GpuProgramParameters::ACT_INVERSE_TRANSPOSE_WORLD_MATRIX
The current world matrix, inverted & transposed.
Definition: OgreGpuProgramParams.h:719
Ogre::GpuNamedConstantsPtr
SharedPtr< GpuNamedConstants > GpuNamedConstantsPtr
Definition: OgreGpuProgramParams.h:413
Ogre::GpuSharedParameters::mVersion
unsigned long mVersion
Version number of the definitions in this buffer.
Definition: OgreGpuProgramParams.h:506
Ogre::GpuConstantDefinition::arraySize
size_t arraySize
Length of array.
Definition: OgreGpuProgramParams.h:134
Ogre::GpuProgramParameters::ACT_TIME_0_X
Single float value, which repeats itself based on given as parameter "cycle time".
Definition: OgreGpuProgramParams.h:995
Ogre::GpuProgramParameters::ACT_TIME_0_2PI
Single float value, which represents scaled time value [0..2*Pi], which repeats itself based on given...
Definition: OgreGpuProgramParams.h:1025
Ogre::GCT_MATRIX_2X3
Definition: OgreGpuProgramParams.h:69
Ogre::GpuSharedParametersUsage::mCopyDataList
CopyDataList mCopyDataList
Definition: OgreGpuProgramParams.h:633
Ogre::GpuConstantDefinition::isDouble
static bool isDouble(GpuConstantType c)
Definition: OgreGpuProgramParams.h:170
Ogre::GpuSharedParametersUsage::mRenderSystemData
Any mRenderSystemData
Definition: OgreGpuProgramParams.h:636
Ogre::GpuProgramParameters::ACT_LIGHT_POSITION_OBJECT_SPACE
A light position in object space (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:857
Ogre::GPV_PER_OBJECT
Varies per object (based on an auto param usually), but not per light setup.
Definition: OgreGpuProgramParams.h:106
Ogre::GpuProgramParameters::_getRenderSystemData
const Any & _getRenderSystemData() const
Internal method that the RenderSystem might use to store optional data.
Definition: OgreGpuProgramParams.h:2023
Ogre::GpuSharedParameters::mDoubleConstants
DoubleConstantList mDoubleConstants
Definition: OgreGpuProgramParams.h:495
Ogre::GpuNamedConstantsSerializer
Simple class for loading / saving GpuNamedConstants.
Definition: OgreGpuProgramParams.h:416
Ogre::GpuProgramParameters::AutoConstantDefinition::elementType
ElementType elementType
The type of the constant in the program.
Definition: OgreGpuProgramParams.h:1200
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::GpuSharedParameters::getDoublePointer
const double * getDoublePointer(size_t pos) const
Get a pointer to the 'nth' item in the double buffer.
Definition: OgreGpuProgramParams.h:591
Ogre::GpuProgramParameters::AutoConstantDefinition::AutoConstantDefinition
AutoConstantDefinition(AutoConstantType _acType, const String &_name, size_t _elementCount, ElementType _elementType, ACDataType _dataType)
Definition: OgreGpuProgramParams.h:1204
Ogre::GCT_INT4
Definition: OgreGpuProgramParams.h:80
Ogre::GpuProgramParameters::ACT_PASS_ITERATION_NUMBER
provides the current iteration number of the pass.
Definition: OgreGpuProgramParams.h:1097
Ogre::GpuLogicalBufferStruct::map
GpuLogicalIndexUseMap map
Map from logical index to physical buffer location.
Definition: OgreGpuProgramParams.h:452
Ogre::GpuLogicalIndexUseMap
map< size_t, GpuLogicalIndexUse >::type GpuLogicalIndexUseMap
Definition: OgreGpuProgramParams.h:445
Ogre::GpuSharedParametersUsage::mParams
GpuProgramParameters * mParams
Definition: OgreGpuProgramParams.h:624
Ogre::GpuProgramParameters::getIntLogicalBufferStruct
const GpuLogicalBufferStructPtr & getIntLogicalBufferStruct() const
Get the current list of mappings from low-level logical param indexes to physical buffer locations in...
Definition: OgreGpuProgramParams.h:1596
Ogre::GCT_DOUBLE3
Definition: OgreGpuProgramParams.h:84
Ogre::GpuProgramParameters::AutoConstantEntry::variability
uint16 variability
The variability of this parameter (see GpuParamVariability)
Definition: OgreGpuProgramParams.h:1232
Ogre::GCT_MATRIX_DOUBLE_3X4
Definition: OgreGpuProgramParams.h:91
Ogre::GpuSharedParameters::getFloatConstantList
const FloatConstantList & getFloatConstantList() const
Get a reference to the list of float constants.
Definition: OgreGpuProgramParams.h:598
Ogre::GCT_MATRIX_DOUBLE_2X4
Definition: OgreGpuProgramParams.h:88
Ogre::GpuProgramParameters::ACT_SINTIME_0_X
Sine of "Time0_X". Equivalent to RenderMonkey's "SinTime0_X".
Definition: OgreGpuProgramParams.h:999
Ogre::GpuSharedParameters::getFloatPointer
float * getFloatPointer(size_t pos)
Get a pointer to the 'nth' item in the float buffer.
Definition: OgreGpuProgramParams.h:585
Ogre::GpuProgramParameters::ACT_DERIVED_LIGHT_SPECULAR_COLOUR_ARRAY
Array of derived light specular colours (count set by extra param)
Definition: OgreGpuProgramParams.h:943
Ogre::GpuProgramParameters::ACT_LOD_CAMERA_POSITION_OBJECT_SPACE
Provides the position of the LOD camera in object space, allowing you to perform separate LOD calcula...
Definition: OgreGpuProgramParams.h:1165
Ogre::GpuProgramParameters::ACT_SPOTLIGHT_VIEWPROJ_MATRIX_ARRAY
Array of view/projection matrix of a given spotlight.
Definition: OgreGpuProgramParams.h:978
Ogre::GpuProgramParameters::getPassIterationNumberIndex
size_t getPassIterationNumberIndex() const
Get the physical buffer index of the pass iteration number constant.
Definition: OgreGpuProgramParams.h:1988
Ogre::GpuProgramParameters::ACT_LIGHT_ATTENUATION
Light attenuation parameters, Vector4(range, constant, linear, quadric)
Definition: OgreGpuProgramParams.h:847
Ogre::GpuProgramParameters::AutoConstantList
vector< AutoConstantEntry >::type AutoConstantList
Definition: OgreGpuProgramParams.h:1246
Ogre::GpuProgramParameters::ACT_TRANSPOSE_PROJECTION_MATRIX
Provides transpose of projection matrix.
Definition: OgreGpuProgramParams.h:753
Ogre::GpuProgramParameters::ACT_LIGHT_POSITION
A light position in world space (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:855
Ogre::GpuSharedParameters::_setRenderSystemData
void _setRenderSystemData(const Any &data) const
Internal method that the RenderSystem might use to store optional data.
Definition: OgreGpuProgramParams.h:605
Ogre::GpuProgramParameters::ACT_NEAR_CLIP_DISTANCE
This variable provides the near clip distance as a floating point value.
Definition: OgreGpuProgramParams.h:1082
Ogre::GpuProgramParameters::ACT_TANTIME_0_1
Tangent of "Time0_1". Equivalent to RenderMonkey's "TanTime0_1".
Definition: OgreGpuProgramParams.h:1016
Ogre::GpuProgramParameters::ACT_SURFACE_DIFFUSE_COLOUR
Surface diffuse colour, as set in Pass::setDiffuse.
Definition: OgreGpuProgramParams.h:824
Ogre::GpuProgramParameters::ACT_LIGHT_NUMBER
The absolute light number of a local light index.
Definition: OgreGpuProgramParams.h:950
Ogre::GpuProgramParameters::ACT_WORLD_MATRIX_ARRAY
The current array of world matrices, used for blending.
Definition: OgreGpuProgramParams.h:724
Ogre::GpuSharedParametersUsage::getTargetParams
GpuProgramParameters * getTargetParams() const
Definition: OgreGpuProgramParams.h:662
Ogre::GPV_ALL
Full mask (16-bit)
Definition: OgreGpuProgramParams.h:114
Ogre::GpuProgramParameters::ACT_VERTEX_WINDING
-1 if the winding has been inverted (e.g.
Definition: OgreGpuProgramParams.h:813
Ogre::GpuProgramParameters::ACT_FAR_CLIP_DISTANCE
This variable provides the far clip distance as a floating point value.
Definition: OgreGpuProgramParams.h:1086
Ogre::GpuProgramParameters::mIntLogicalToPhysical
GpuLogicalBufferStructPtr mIntLogicalToPhysical
Logical index to physical index map - for low-level programs or high-level programs which pass params...
Definition: OgreGpuProgramParams.h:1272
Ogre::GpuProgramParameters::ACT_SINTIME_0_2PI
Sine of "Time0_2PI". Equivalent to RenderMonkey's "SinTime0_2PI".
Definition: OgreGpuProgramParams.h:1029
Ogre::GpuProgramParameters::ACT_SHADOW_COLOUR
Provides the fixed shadow colour as configured via SceneManager::setShadowColour; useful for integrat...
Definition: OgreGpuProgramParams.h:1135
OGRE_MUTEX
#define OGRE_MUTEX(name)
Definition: OgreThreadDefinesBoost.h:47
Ogre::GPV_LIGHTS
Varies with light setup.
Definition: OgreGpuProgramParams.h:108
Ogre::GpuProgramParameters::ACT_SURFACE_AMBIENT_COLOUR
Surface ambient colour, as set in Pass::setAmbient.
Definition: OgreGpuProgramParams.h:822
Ogre::GpuNamedConstants::doubleBufferSize
size_t doubleBufferSize
Total size of the double buffer required.
Definition: OgreGpuProgramParams.h:360
Ogre::GpuProgramParameters::ACT_TRANSPOSE_WORLDVIEW_MATRIX
Provides transpose of concatenated world and view matrices.
Definition: OgreGpuProgramParams.h:783
Ogre::SharedPtr::isNull
bool isNull(void) const
Definition: OgreSharedPtr.h:275
Ogre::GpuProgramParameters::ACT_SPOTLIGHT_PARAMS
Spotlight parameters, Vector4(innerFactor, outerFactor, falloff, isSpot) innerFactor and outerFactor ...
Definition: OgreGpuProgramParams.h:853
OgreRenderOperation.h
Ogre::GpuProgramParameters::ACT_INVERSE_WORLDVIEW_MATRIX
The current world & view matrices concatenated, then inverted.
Definition: OgreGpuProgramParams.h:779
Ogre::GpuProgramParameters::AutoConstantEntry::elementCount
size_t elementCount
The number of elements per individual entry in this constant Used in case people used packed elements...
Definition: OgreGpuProgramParams.h:1225
Ogre::GpuProgramParameters::ACT_TIME_0_2PI_PACKED
Vector of "Time0_2PI", "SinTime0_2PI", "CosTime0_2PI", "TanTime0_2PI".
Definition: OgreGpuProgramParams.h:1035
OgreHeaderPrefix.h
Ogre::Matrix4
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: OgreMatrix4.h:78
Ogre::GpuProgramParameters::getIntConstantList
const IntConstantList & getIntConstantList() const
Get a reference to the list of int constants.
Definition: OgreGpuProgramParams.h:1610
Ogre::GpuProgramParameters::ACT_LIGHT_CASTS_SHADOWS
Returns (int) 1 if the given light casts shadows, 0 otherwise (index set in extra param)
Definition: OgreGpuProgramParams.h:952
Ogre::GpuProgramParameters::mSubroutineMap
SubroutineMap mSubroutineMap
Definition: OgreGpuProgramParams.h:1255
Ogre::GpuNamedConstants::GpuNamedConstants
GpuNamedConstants()
Definition: OgreGpuProgramParams.h:366
OgreSerializer.h
Ogre::GpuProgramParameters::ACT_SHADOW_SCENE_DEPTH_RANGE
Provides information about the depth range of the scene as viewed from a given shadow camera.
Definition: OgreGpuProgramParams.h:1123
Ogre::GpuConstantDefinition::logicalIndex
size_t logicalIndex
Logical index - used to communicate this constant to the rendersystem.
Definition: OgreGpuProgramParams.h:129
Ogre::GpuProgramParameters::ACT_LIGHT_DIFFUSE_COLOUR_POWER_SCALED_ARRAY
Array of light diffuse colours scaled by light power (count set by extra param)
Definition: OgreGpuProgramParams.h:882
Ogre::GpuSharedParametersPtr
SharedPtr< GpuSharedParameters > GpuSharedParametersPtr
Shared pointer used to hold references to GpuProgramParameters instances.
Definition: OgreGpuProgramParams.h:612
OgrePrerequisites.h
Ogre::GpuProgramParameters::ACT_INVERSE_TEXTURE_SIZE
Provides inverse texture size of the texture unit (index determined by setAutoConstant call).
Definition: OgreGpuProgramParams.h:1143
Ogre::GpuSharedParametersUsage::getName
const String & getName() const
Get the name of the shared parameter set.
Definition: OgreGpuProgramParams.h:659
Ogre::GpuProgramParameters::mIgnoreMissingParams
bool mIgnoreMissingParams
flag to indicate if names not found will be ignored
Definition: OgreGpuProgramParams.h:1282
Ogre::GCT_FLOAT2
Definition: OgreGpuProgramParams.h:57
Ogre::GpuConstantDefinition::isSubroutine
bool isSubroutine() const
Definition: OgreGpuProgramParams.h:219
Ogre::GpuSharedParametersUsage::mSharedParams
GpuSharedParametersPtr mSharedParams
Definition: OgreGpuProgramParams.h:622
Ogre::GpuProgramParameters::ACT_INVERSE_PROJECTION_MATRIX
Provides inverse of projection matrix.
Definition: OgreGpuProgramParams.h:749
Ogre::GpuSharedParameters::getIntPointer
const int * getIntPointer(size_t pos) const
Get a pointer to the 'nth' item in the int buffer.
Definition: OgreGpuProgramParams.h:595
Ogre::GpuSharedParameters::getDoublePointer
double * getDoublePointer(size_t pos)
Get a pointer to the 'nth' item in the double buffer.
Definition: OgreGpuProgramParams.h:589
Ogre::GpuProgramParameters::AutoConstantEntry::physicalIndex
size_t physicalIndex
The target (physical) constant index.
Definition: OgreGpuProgramParams.h:1221
Ogre::GpuProgramParameters::GpuSharedParamUsageList
vector< GpuSharedParametersUsage >::type GpuSharedParamUsageList
Definition: OgreGpuProgramParams.h:1248
Ogre::GpuProgramParameters::ACDT_INT
the auto constant requires data of type int
Definition: OgreGpuProgramParams.h:1179
Ogre::GpuProgramParameters::ACT_LIGHT_SPECULAR_COLOUR_ARRAY
Array of light specular colours (count set by extra param)
Definition: OgreGpuProgramParams.h:880
Ogre::GpuProgramParameters::ACT_INVERSE_VIEWPORT_WIDTH
This variable represents 1.0/ViewportWidth.
Definition: OgreGpuProgramParams.h:1052
Ogre::GpuProgramParameters::ACT_PROJECTION_MATRIX
The current projection matrix.
Definition: OgreGpuProgramParams.h:745
Ogre::GCT_SAMPLER2D
Definition: OgreGpuProgramParams.h:61
Ogre::GCT_MATRIX_3X4
Definition: OgreGpuProgramParams.h:73
Ogre::GpuProgramParameters::ACT_RENDER_TARGET_FLIPPING
render target related values
Definition: OgreGpuProgramParams.h:809
Ogre::GpuProgramParameters::ACT_FPS
provides the calculated frames per second, returned as a floating point value.
Definition: OgreGpuProgramParams.h:1039
Ogre::GpuProgramParameters::ACT_LIGHT_POWER_SCALE
Light power level, a single scalar as set in Light::setPowerScale (index determined by setAutoConstan...
Definition: OgreGpuProgramParams.h:872
Ogre::GCT_MATRIX_3X2
Definition: OgreGpuProgramParams.h:71
Ogre::GpuProgramParameters::ACT_AMBIENT_LIGHT_COLOUR
The ambient light colour set in the scene.
Definition: OgreGpuProgramParams.h:840
Ogre::GpuConstantDefinition::isSampler
static bool isSampler(GpuConstantType c)
Definition: OgreGpuProgramParams.h:201
Ogre::GpuProgramParameters::AutoConstantEntry::data
size_t data
Definition: OgreGpuProgramParams.h:1228
Ogre::GCT_FLOAT3
Definition: OgreGpuProgramParams.h:58
OgreThreadHeaders.h
Ogre::GpuProgramParameters::ACT_LIGHT_POWER_SCALE_ARRAY
Array of light power levels, a single scalar as set in Light::setPowerScale (count set by extra param...
Definition: OgreGpuProgramParams.h:907
Ogre::GpuProgramParameters::ACT_TIME_0_1_PACKED
Vector of "Time0_1", "SinTime0_1", "CosTime0_1", "TanTime0_1".
Definition: OgreGpuProgramParams.h:1020
Ogre::GpuProgramParameters::ACT_SURFACE_ALPHA_REJECTION_VALUE
Surface alpha rejection value, not as set in Pass::setAlphaRejectionValue, but a floating number betw...
Definition: OgreGpuProgramParams.h:832
Ogre::GCT_SAMPLER1D
Definition: OgreGpuProgramParams.h:60
Ogre::GCT_MATRIX_DOUBLE_3X3
Definition: OgreGpuProgramParams.h:90
Ogre::GCT_MATRIX_3X3
Definition: OgreGpuProgramParams.h:72
Ogre::GpuConstantDefinition::GpuConstantDefinition
GpuConstantDefinition()
Definition: OgreGpuProgramParams.h:343
Ogre::GpuProgramParameters::hasAutoConstants
bool hasAutoConstants(void) const
Returns true if this instance has any automatic constants.
Definition: OgreGpuProgramParams.h:1684
Ogre::GpuConstantDefinition::variability
uint16 variability
How this parameter varies (bitwise combination of GpuProgramVariability)
Definition: OgreGpuProgramParams.h:136
Ogre::GCT_SAMPLER2DSHADOW
Definition: OgreGpuProgramParams.h:66
Ogre::GpuProgramParameters::ACT_COSTIME_0_X
Cosine of "Time0_X". Equivalent to RenderMonkey's "CosTime0_X".
Definition: OgreGpuProgramParams.h:997
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::GpuProgramParameters::ACT_COSTIME_0_2PI
Cosine of "Time0_2PI". Equivalent to RenderMonkey's "CosTime0_2PI".
Definition: OgreGpuProgramParams.h:1027
Ogre::GpuProgramParameters::ACT_INVERSE_WORLD_MATRIX
The current world matrix, inverted.
Definition: OgreGpuProgramParams.h:713
Ogre::GpuProgramParameters::ACT_WORLDVIEWPROJ_MATRIX
view matrices.
Definition: OgreGpuProgramParams.h:790
Ogre::GpuProgramParameters::ACT_SPOTLIGHT_WORLDVIEWPROJ_MATRIX_ARRAY
An array of the view/projection matrix of a given spotlight projection frustum, combined with the cur...
Definition: OgreGpuProgramParams.h:986
Ogre::GpuProgramParameters::getDoubleLogicalBufferStruct
const GpuLogicalBufferStructPtr & getDoubleLogicalBufferStruct() const
Retrieves the logical index relating to a physical index in the int buffer, for programs which suppor...
Definition: OgreGpuProgramParams.h:1576
Ogre::GpuProgramParameters::hasNamedParameters
bool hasNamedParameters() const
Does this parameter set include named parameters?
Definition: OgreGpuProgramParams.h:1326
Ogre::GpuProgramParameters::mAutoConstants
AutoConstantList mAutoConstants
List of automatically updated parameters.
Definition: OgreGpuProgramParams.h:1276
Ogre::GpuSharedParameters::getDoubleConstantList
const DoubleConstantList & getDoubleConstantList() const
Get a reference to the list of double constants.
Definition: OgreGpuProgramParams.h:600
Ogre::GpuProgramParameters
Collects together the program parameters used for a GpuProgram.
Definition: OgreGpuProgramParams.h:702
Ogre::GpuProgramParameters::ACT_SHADOW_SCENE_DEPTH_RANGE_ARRAY
Provides an array of information about the depth range of the scene as viewed from a given shadow cam...
Definition: OgreGpuProgramParams.h:1130
Ogre::GpuNamedConstants::msGenerateAllConstantDefinitionArrayEntries
static bool msGenerateAllConstantDefinitionArrayEntries
Indicates whether all array entries will be generated and added to the definitions map.
Definition: OgreGpuProgramParams.h:411
Ogre::GpuProgramParameters::ACT_FOG_COLOUR
Fog colour.
Definition: OgreGpuProgramParams.h:816
Ogre::GpuProgramParameters::ACT_INVERSE_VIEW_MATRIX
The current view matrix, inverted.
Definition: OgreGpuProgramParams.h:733
Ogre::GpuProgramParameters::mNamedConstants
GpuNamedConstantsPtr mNamedConstants
Mapping from parameter names to def - high-level programs are expected to populate this.
Definition: OgreGpuProgramParams.h:1274
Ogre::GpuNamedConstants::floatBufferSize
size_t floatBufferSize
Total size of the float buffer required.
Definition: OgreGpuProgramParams.h:358
Ogre::GpuProgramParameters::mRenderSystemData
Any mRenderSystemData
Definition: OgreGpuProgramParams.h:1304
Ogre::GpuProgramParameters::AutoConstantDefinition::elementCount
size_t elementCount
Definition: OgreGpuProgramParams.h:1198
Ogre::GpuProgramParameters::ACT_VIEW_UP_VECTOR
This variable provides the view up vector (world space).
Definition: OgreGpuProgramParams.h:1074
Ogre::GpuProgramParameters::ACT_WORLD_DUALQUATERNION_ARRAY_2x4
The current array of world matrices transformed to an array of dual quaternions, represented as a 2x4...
Definition: OgreGpuProgramParams.h:726
Ogre::GpuProgramParameters::ACT_INVERSE_TRANSPOSE_WORLDVIEWPROJ_MATRIX
Provides inverse transpose of concatenated world, view and projection matrices.
Definition: OgreGpuProgramParams.h:802
Ogre::GpuLogicalIndexUse::GpuLogicalIndexUse
GpuLogicalIndexUse()
Definition: OgreGpuProgramParams.h:440
Ogre::GpuProgramParameters::getDoublePointer
double * getDoublePointer(size_t pos)
Get a pointer to the 'nth' item in the double buffer.
Definition: OgreGpuProgramParams.h:1606
Ogre::GpuSharedParametersUsage::mCopyDataVersion
unsigned long mCopyDataVersion
Version of shared params we based the copydata on.
Definition: OgreGpuProgramParams.h:639
Ogre::GpuProgramParameters::ACT_TEXTURE_VIEWPROJ_MATRIX
The view/projection matrix of the assigned texture projection frustum.
Definition: OgreGpuProgramParams.h:966
Ogre::GpuProgramParameters::ACT_SPOTLIGHT_VIEWPROJ_MATRIX
The view/projection matrix of a given spotlight.
Definition: OgreGpuProgramParams.h:976
Ogre::GpuProgramParameters::ACT_LIGHT_POSITION_VIEW_SPACE
A light position in view space (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:859
Ogre::GpuProgramParameters::mSharedParamSets
GpuSharedParamUsageList mSharedParamSets
Definition: OgreGpuProgramParams.h:1301
Ogre::GpuProgramParameters::ACT_LIGHT_DIRECTION_OBJECT_SPACE
A light direction in object space (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:863
Ogre::GpuProgramParameters::ACT_VIEWPORT_HEIGHT
Current viewport height (in pixels) as floating point value.
Definition: OgreGpuProgramParams.h:1048
Ogre::GpuProgramParameters::AutoConstantEntry::AutoConstantEntry
AutoConstantEntry(AutoConstantType theType, size_t theIndex, size_t theData, uint16 theVariability, size_t theElemCount=4)
Definition: OgreGpuProgramParams.h:1234
Ogre::SharedPtr< DataStream >
Ogre::GCT_MATRIX_DOUBLE_4X3
Definition: OgreGpuProgramParams.h:93
Ogre::GpuSharedParametersUsage::_setRenderSystemData
void _setRenderSystemData(const Any &data) const
Internal method that the RenderSystem might use to store optional data.
Definition: OgreGpuProgramParams.h:665
Ogre::GpuConstantType
GpuConstantType
Enumeration of the types of constant we may encounter in programs.
Definition: OgreGpuProgramParams.h:54
Ogre::GCT_SAMPLERRECT
Definition: OgreGpuProgramParams.h:64
Ogre::GpuProgramParameters::ACT_VIEW_MATRIX
The current view matrix.
Definition: OgreGpuProgramParams.h:731
Ogre::GCT_SAMPLER1DSHADOW
Definition: OgreGpuProgramParams.h:65
Ogre::GpuProgramParameters::ACT_LIGHT_CASTS_SHADOWS_ARRAY
Returns (int) 1 if the given light casts shadows, 0 otherwise (index set in extra param)
Definition: OgreGpuProgramParams.h:954
Ogre::GpuProgramParameters::ACT_VIEWPROJ_MATRIX
The current view & projection matrices concatenated.
Definition: OgreGpuProgramParams.h:761
Ogre::GpuProgramParameters::AutoConstantEntry::fData
Real fData
Definition: OgreGpuProgramParams.h:1229
Ogre::GpuConstantDefinitionMap
map< String, GpuConstantDefinition >::type GpuConstantDefinitionMap
Definition: OgreGpuProgramParams.h:351
OgreIteratorWrappers.h
Ogre::GpuProgramParameters::ACT_LIGHT_DIRECTION_VIEW_SPACE_ARRAY
Array of light directions in view space (count set by extra param)
Definition: OgreGpuProgramParams.h:898
Ogre::GCT_MATRIX_4X2
Definition: OgreGpuProgramParams.h:74
Ogre::GpuProgramParameters::mActivePassIterationIndex
size_t mActivePassIterationIndex
physical index for active pass iteration parameter real constant entry;
Definition: OgreGpuProgramParams.h:1284
Ogre::GpuConstantDefinition::getElementSize
static size_t getElementSize(GpuConstantType ctype, bool padToMultiplesOf4)
Get the element size of a given type, including whether to pad the elements into multiples of 4 (e....
Definition: OgreGpuProgramParams.h:232
Ogre::GpuProgramParameters::ACT_LIGHT_DIRECTION_ARRAY
Array of light directions in world space (count set by extra param)
Definition: OgreGpuProgramParams.h:894
Ogre::GpuProgramParameters::ACT_LIGHT_ATTENUATION_ARRAY
Array of light attenuation parameters, Vector4(range, constant, linear, quadric) (count set by extra ...
Definition: OgreGpuProgramParams.h:886
Ogre::GpuProgramParameters::ACT_WORLD_MATRIX
The current world matrix.
Definition: OgreGpuProgramParams.h:711
Ogre::GpuSharedParameters::mIntConstants
IntConstantList mIntConstants
Definition: OgreGpuProgramParams.h:496
Ogre::GpuProgramParameters::getTransposeMatrices
bool getTransposeMatrices(void) const
Gets whether or not matrices are to be transposed when set.
Definition: OgreGpuProgramParams.h:1947
Ogre::GpuProgramParameters::ACT_LIGHT_SPECULAR_COLOUR_POWER_SCALED
Light specular colour pre-scaled by Light::setPowerScale (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:876
Ogre::GpuLogicalIndexUse::variability
uint16 variability
How the contents of this slot vary.
Definition: OgreGpuProgramParams.h:438
Ogre::GpuSharedParameters::mName
String mName
Definition: OgreGpuProgramParams.h:497
Ogre::GpuLogicalBufferStructPtr
SharedPtr< GpuLogicalBufferStruct > GpuLogicalBufferStructPtr
Definition: OgreGpuProgramParams.h:457
Ogre::GpuProgramParameters::mDoubleLogicalToPhysical
GpuLogicalBufferStructPtr mDoubleLogicalToPhysical
Logical index to physical index map - for low-level programs or high-level programs which pass params...
Definition: OgreGpuProgramParams.h:1269
Ogre::GpuProgramParameters::ET_INT
Definition: OgreGpuProgramParams.h:1187
Ogre::GpuProgramParameters::ACT_INVERSE_VIEWPROJ_MATRIX
Provides inverse of concatenated view and projection matrices.
Definition: OgreGpuProgramParams.h:765
Ogre::ColourValue
Class representing colour.
Definition: OgreColourValue.h:57
Ogre::DoubleConstantList
vector< double >::type DoubleConstantList
Definition of container that holds the current double constants.
Definition: OgreGpuProgramParams.h:468
Ogre::GpuSharedParametersUsage::CopyDataEntry
Definition: OgreGpuProgramParams.h:626
Ogre::GCT_DOUBLE2
Definition: OgreGpuProgramParams.h:83
Ogre::GpuProgramParameters::ACT_TEXTURE_MATRIX
Provides the current transform matrix of the texture unit (index determined by setAutoConstant call),...
Definition: OgreGpuProgramParams.h:1152
Ogre::GCT_MATRIX_4X4
Definition: OgreGpuProgramParams.h:76
Ogre::GpuConstantDefinition
Information about predefined program constants.
Definition: OgreGpuProgramParams.h:122
Ogre::GpuProgramParameters::mIntConstants
IntConstantList mIntConstants
Packed list of integer constants (physical indexing)
Definition: OgreGpuProgramParams.h:1263
Ogre::GpuProgramParameters::ACT_SINTIME_0_1
Sine of "Time0_1". Equivalent to RenderMonkey's "SinTime0_1".
Definition: OgreGpuProgramParams.h:1014
Ogre::Vector4
4-dimensional homogeneous vector.
Definition: OgreVector4.h:45
Ogre::GCT_FLOAT4
Definition: OgreGpuProgramParams.h:59
Ogre::GpuSharedParameters::getFloatPointer
const float * getFloatPointer(size_t pos) const
Get a pointer to the 'nth' item in the float buffer.
Definition: OgreGpuProgramParams.h:587
Ogre::GCT_MATRIX_DOUBLE_2X2
Definition: OgreGpuProgramParams.h:86
Ogre::GpuProgramParameters::ACT_SPOTLIGHT_WORLDVIEWPROJ_MATRIX
The view/projection matrix of a given spotlight projection frustum, combined with the current world m...
Definition: OgreGpuProgramParams.h:982
Ogre::GpuProgramParameters::AutoConstantType
AutoConstantType
Defines the types of automatically updated values that may be bound to GpuProgram parameters,...
Definition: OgreGpuProgramParams.h:708
Ogre::GCT_FLOAT1
Definition: OgreGpuProgramParams.h:56
Ogre::Vector2
Standard 2-dimensional vector.
Definition: OgreVector2.h:51
Ogre::GCT_SAMPLER3D
Definition: OgreGpuProgramParams.h:62
std
Definition: OgreSmallVector.h:798
Ogre::GpuProgramParameters::ACT_SURFACE_SHININESS
Surface shininess, as set in Pass::setShininess.
Definition: OgreGpuProgramParams.h:830
Ogre::GPV_GLOBAL
No variation except by manual setting - the default.
Definition: OgreGpuProgramParams.h:104
Ogre::GpuSharedParametersUsage::_getRenderSystemData
const Any & _getRenderSystemData() const
Internal method that the RenderSystem might use to store optional data.
Definition: OgreGpuProgramParams.h:667
Ogre::GpuProgramParameters::ACT_TRANSPOSE_VIEW_MATRIX
Provides transpose of view matrix.
Definition: OgreGpuProgramParams.h:737
Ogre::GpuProgramParameters::ElementType
ElementType
Defines the base element type of the auto constant.
Definition: OgreGpuProgramParams.h:1186
Ogre::GpuSharedParameters::getFrameLastUpdated
size_t getFrameLastUpdated() const
Get the frame in which this shared parameter set was last updated.
Definition: OgreGpuProgramParams.h:546
Ogre::GpuParamVariability
GpuParamVariability
The variability of a GPU parameter, as derived from auto-params targeting it.
Definition: OgreGpuProgramParams.h:101
Ogre::GpuLogicalIndexUse::physicalIndex
size_t physicalIndex
Physical buffer index.
Definition: OgreGpuProgramParams.h:434
Ogre::GpuProgramParameters::ACT_LIGHT_DIRECTION
A light direction in world space (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:861
Ogre::GpuProgramParameters::ACT_LIGHT_DIFFUSE_COLOUR_POWER_SCALED
Light diffuse colour pre-scaled by Light::setPowerScale (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:874
Ogre::GpuProgramParameters::ACT_LIGHT_SPECULAR_COLOUR
Light specular colour (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:845
Ogre::GpuSharedParameters::getVersion
unsigned long getVersion() const
Get the version number of this shared parameter set, can be used to identify when changes have occurr...
Definition: OgreGpuProgramParams.h:535
Ogre::GpuProgramParameters::mFloatLogicalToPhysical
GpuLogicalBufferStructPtr mFloatLogicalToPhysical
Logical index to physical index map - for low-level programs or high-level programs which pass params...
Definition: OgreGpuProgramParams.h:1266
Ogre::GpuProgramParameters::ACT_LIGHT_DIFFUSE_COLOUR_ARRAY
Array of light diffuse colours (count set by extra param)
Definition: OgreGpuProgramParams.h:878
Ogre::GpuProgramParameters::AutoConstantDefinition
Structure defining an auto constant that's available for use in a parameters object.
Definition: OgreGpuProgramParams.h:1194
Ogre::GCT_MATRIX_DOUBLE_4X2
Definition: OgreGpuProgramParams.h:92
Ogre::GCT_INT2
Definition: OgreGpuProgramParams.h:78
Ogre::GpuProgramParameters::hasPassIterationNumber
bool hasPassIterationNumber() const
Does this parameters object have a pass iteration number constant?
Definition: OgreGpuProgramParams.h:1985
Ogre::GpuProgramParameters::ACT_WORLD_SCALE_SHEAR_MATRIX_ARRAY_3x4
The scale and shear components of the current array of world matrices.
Definition: OgreGpuProgramParams.h:728
Ogre::GpuProgramParameters::ACDT_NONE
no data is required
Definition: OgreGpuProgramParams.h:1177
Ogre::GpuProgramParameters::ACT_DERIVED_LIGHT_SPECULAR_COLOUR
The derived light specular colour (index determined by setAutoConstant call), with 'r',...
Definition: OgreGpuProgramParams.h:938
Ogre::GpuSharedParameters
A group of manually updated parameters that are shared between many parameter sets.
Definition: OgreGpuProgramParams.h:490
Ogre::Real
float Real
Software floating point type.
Definition: OgrePrerequisites.h:70
Ogre::GpuProgramParameters::ACT_PASS_NUMBER
provides the pass index number within the technique of the active materil.
Definition: OgreGpuProgramParams.h:1091
Ogre::GCT_DOUBLE4
Definition: OgreGpuProgramParams.h:85
Ogre::GpuProgramParameters::ACT_SCENE_DEPTH_RANGE
Provides information about the depth range of the scene as viewed from the current camera.
Definition: OgreGpuProgramParams.h:1116
Ogre::Serializer
Generic class for serialising data to / from binary stream-based files.
Definition: OgreSerializer.h:50
Ogre::GpuProgramParameters::ACT_INVERSE_TRANSPOSE_PROJECTION_MATRIX
Provides inverse transpose of projection matrix.
Definition: OgreGpuProgramParams.h:757
Ogre::ConstMapIterator
Concrete IteratorWrapper for const access to the underlying key-value container.
Definition: OgreIteratorWrapper.h:352
Ogre::GCT_MATRIX_DOUBLE_4X4
Definition: OgreGpuProgramParams.h:94
Ogre::GpuProgramParameters::ACT_LIGHT_DIFFUSE_COLOUR
Light diffuse colour (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:843
Ogre::GpuProgramParameters::ACT_VIEWPORT_WIDTH
viewport-related values
Definition: OgreGpuProgramParams.h:1044
Ogre::GpuProgramParameters::ACT_VIEWPORT_SIZE
Packed of "ViewportWidth", "ViewportHeight", "ViewportWidthInverse", "ViewportHeightInverse".
Definition: OgreGpuProgramParams.h:1060
Ogre::GpuProgramParameters::ACT_TEXEL_OFFSETS
Provides the texel offsets required by this rendersystem to map texels to pixels.
Definition: OgreGpuProgramParams.h:1110
Ogre::GpuProgramParameters::ACT_LIGHT_DIRECTION_VIEW_SPACE
A light direction in view space (index determined by setAutoConstant call)
Definition: OgreGpuProgramParams.h:865
Ogre::GpuProgramParameters::ACT_TANTIME_0_2PI
Tangent of "Time0_2PI". Equivalent to RenderMonkey's "TanTime0_2PI".
Definition: OgreGpuProgramParams.h:1031
Ogre::GpuProgramParameters::hasLogicalIndexedParameters
bool hasLogicalIndexedParameters() const
Does this parameter set include logically indexed parameters?
Definition: OgreGpuProgramParams.h:1332
Ogre::GpuProgramParameters::ACT_LOD_CAMERA_POSITION
Provides the position of the LOD camera in world space, allowing you to perform separate LOD calculat...
Definition: OgreGpuProgramParams.h:1159
Ogre::GpuLogicalIndexUse
Structure recording the use of a physical buffer by a logical parameter index.
Definition: OgreGpuProgramParams.h:431
Ogre::GpuProgramParameters::ACT_WORLDVIEW_MATRIX
The current world & view matrices concatenated.
Definition: OgreGpuProgramParams.h:777
Ogre::FloatConstantList
vector< float >::type FloatConstantList
Definition of container that holds the current float constants.
Definition: OgreGpuProgramParams.h:463
Ogre::GpuProgramParameters::getDoubleConstantList
const DoubleConstantList & getDoubleConstantList() const
Get a reference to the list of double constants.
Definition: OgreGpuProgramParams.h:1604
Ogre::GpuSharedParametersUsage::getSharedParams
GpuSharedParametersPtr getSharedParams() const
Definition: OgreGpuProgramParams.h:661
Ogre::GpuProgramParameters::ACT_TRANSPOSE_WORLD_MATRIX
Provides transpose of world matrix.
Definition: OgreGpuProgramParams.h:717
Ogre::GpuProgramParameters::ACT_DERIVED_LIGHT_DIFFUSE_COLOUR
The derived light diffuse colour (index determined by setAutoConstant call), with 'r',...
Definition: OgreGpuProgramParams.h:932
Ogre::GpuProgramParameters::mCombinedVariability
uint16 mCombinedVariability
The combined variability masks of all parameters.
Definition: OgreGpuProgramParams.h:1278
Ogre::GpuProgramParameters::mTransposeMatrices
bool mTransposeMatrices
Do we need to transpose matrices?
Definition: OgreGpuProgramParams.h:1280
Ogre::vector
Definition: OgrePrerequisites.h:491
Ogre::GpuProgramParameters::AutoConstantDefinition::acType
AutoConstantType acType
Definition: OgreGpuProgramParams.h:1196
Ogre::GpuProgramParameters::ACT_PACKED_TEXTURE_SIZE
Provides packed texture size of the texture unit (index determined by setAutoConstant call).
Definition: OgreGpuProgramParams.h:1147
Ogre::Serializer::Endian
Endian
The endianness of written files.
Definition: OgreSerializer.h:57
Ogre::GpuProgramParameters::ACT_TEXTURE_WORLDVIEWPROJ_MATRIX
The view/projection matrix of the assigned texture projection frustum, combined with the current worl...
Definition: OgreGpuProgramParams.h:972
Ogre::GPV_PASS_ITERATION_NUMBER
Varies with pass iteration number.
Definition: OgreGpuProgramParams.h:110
Ogre::GpuProgramParameters::ACT_TANTIME_0_X
Tangent of "Time0_X". Equivalent to RenderMonkey's "TanTime0_X".
Definition: OgreGpuProgramParams.h:1001
Ogre::GCT_INT3
Definition: OgreGpuProgramParams.h:79
Ogre::GpuConstantDefinition::isFloat
bool isFloat() const
Definition: OgreGpuProgramParams.h:138
Ogre::GCT_MATRIX_2X2
Definition: OgreGpuProgramParams.h:68
Ogre::GpuConstantDefinition::isSubroutine
static bool isSubroutine(GpuConstantType c)
Definition: OgreGpuProgramParams.h:224
Ogre::GCT_MATRIX_DOUBLE_2X3
Definition: OgreGpuProgramParams.h:87
Ogre::GpuProgramParameters::ACDataType
ACDataType
Defines the type of the extra data item used by the auto constant.
Definition: OgreGpuProgramParams.h:1175
Ogre::GpuSharedParameters::mNamedConstants
GpuNamedConstants mNamedConstants
Definition: OgreGpuProgramParams.h:493
Ogre::GpuProgramParameters::getIntPointer
const int * getIntPointer(size_t pos) const
Get a pointer to the 'nth' item in the int buffer.
Definition: OgreGpuProgramParams.h:1614
Ogre::GpuSharedParametersUsage::CopyDataList
vector< CopyDataEntry >::type CopyDataList
Definition: OgreGpuProgramParams.h:631
Ogre::GpuConstantDefinitionIterator
ConstMapIterator< GpuConstantDefinitionMap > GpuConstantDefinitionIterator
Definition: OgreGpuProgramParams.h:352
Ogre::GpuProgramParameters::mFloatConstants
FloatConstantList mFloatConstants
Packed list of floating-point constants (physical indexing)
Definition: OgreGpuProgramParams.h:1259
Ogre::GpuProgramParameters::_setRenderSystemData
void _setRenderSystemData(const Any &data) const
Internal method that the RenderSystem might use to store optional data.
Definition: OgreGpuProgramParams.h:2021
Ogre::GpuLogicalBufferStruct
Container struct to allow params to safely & update shared list of logical buffer assignments.
Definition: OgreGpuProgramParams.h:447
Ogre::GpuProgramParameters::ACT_CUSTOM
A custom parameter which will come from the renderable, using 'data' as the identifier.
Definition: OgreGpuProgramParams.h:988
Ogre::GpuProgramParameters::ACT_TRANSPOSE_VIEWPROJ_MATRIX
Provides transpose of concatenated view and projection matrices.
Definition: OgreGpuProgramParams.h:769
Ogre::GCT_DOUBLE1
Definition: OgreGpuProgramParams.h:82
Ogre::Vector3
Standard 3-dimensional vector.
Definition: OgreVector3.h:51
Ogre::GCT_SAMPLERCUBE
Definition: OgreGpuProgramParams.h:63
Ogre::IntConstantList
vector< int >::type IntConstantList
Definition of container that holds the current float constants.
Definition: OgreGpuProgramParams.h:473
Ogre::GpuSharedParametersUsage::CopyDataEntry::srcDefinition
const GpuConstantDefinition * srcDefinition
Definition: OgreGpuProgramParams.h:628
Ogre::GpuProgramParameters::ACT_FOG_PARAMS
Fog params: density, linear start, linear end, 1/(end-start)
Definition: OgreGpuProgramParams.h:818
Ogre::GpuProgramParameters::ACT_LIGHT_DISTANCE_OBJECT_SPACE
The distance of the light from the center of the object a useful approximation as an alternative to p...
Definition: OgreGpuProgramParams.h:870
Ogre::GpuSharedParameters::_getRenderSystemData
const Any & _getRenderSystemData() const
Internal method that the RenderSystem might use to store optional data.
Definition: OgreGpuProgramParams.h:607
Ogre::ConstVectorIterator
Concrete IteratorWrapper for const access to the underlying container.
Definition: OgreIteratorWrapper.h:217
Ogre::GpuProgramParameters::ACT_INVERSE_TRANSPOSE_VIEW_MATRIX
Provides inverse transpose of view matrix.
Definition: OgreGpuProgramParams.h:741
Ogre::GpuSharedParameters::getIntPointer
int * getIntPointer(size_t pos)
Get a pointer to the 'nth' item in the int buffer.
Definition: OgreGpuProgramParams.h:593
Ogre::GpuProgramParameters::setIgnoreMissingParams
void setIgnoreMissingParams(bool state)
Tells the program whether to ignore missing parameters or not.
Definition: OgreGpuProgramParams.h:1725
Ogre::GpuSharedParameters::mRenderSystemData
Any mRenderSystemData
Definition: OgreGpuProgramParams.h:500
Ogre::GpuConstantDefinition::physicalIndex
size_t physicalIndex
Physical start index in buffer (either float, double or int buffer)
Definition: OgreGpuProgramParams.h:127
Ogre::GpuProgramParameters::ACT_SPOTLIGHT_PARAMS_ARRAY
Spotlight parameters array of Vector4(innerFactor, outerFactor, falloff, isSpot) innerFactor and oute...
Definition: OgreGpuProgramParams.h:914
Ogre::GpuProgramParameters::mDoubleConstants
DoubleConstantList mDoubleConstants
Packed list of double-point constants (physical indexing)
Definition: OgreGpuProgramParams.h:1261
Ogre::GpuProgramParameters::AutoConstantDefinition::dataType
ACDataType dataType
The type of any extra data.
Definition: OgreGpuProgramParams.h:1202
Ogre::GpuLogicalBufferStruct::GpuLogicalBufferStruct
GpuLogicalBufferStruct()
Definition: OgreGpuProgramParams.h:455

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.