\hypertarget{struct_ogre_1_1_gpu_constant_definition}{}\doxysection{Ogre\+::Gpu\+Constant\+Definition Struct Reference}
\label{struct_ogre_1_1_gpu_constant_definition}\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}


Information about predefined program constants.  




{\ttfamily \#include $<$Ogre\+Gpu\+Program\+Params.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_afce533b1a68d8e3f542cfeab53a643ae}{Gpu\+Constant\+Definition}} ()
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_ad53ec6eedaf695a41ba9773112256ab7}{is\+Bool}} () const
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_aa85afb9ccfaa33bccf8054370bf121ae}{is\+Double}} () const
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a7e8eb132b7b4e46045eb680f2734410a}{is\+Float}} () const
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a134c40a7f7baddf559a6a771c0cd9149}{is\+Int}} () const
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a280838a1b7aa40b1e0dc5036b9a33b97}{is\+Sampler}} () const
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_ae697e9c02150de15437ba260b8cf339b}{is\+Subroutine}} () const
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a4c59abf98a3fd610274815428eda0caa}{is\+Unsigned\+Int}} () const
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{group___materials_ga31815ee0cc489402a8be91f2c87a84c6}{Base\+Constant\+Type}} \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a756b2a33dcacfd3cca90be358cae3168}{get\+Base\+Type}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} ctype)
\item 
static size\+\_\+t \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a98b89162a969ef7c8cdce59979e486e9}{get\+Element\+Size}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} ctype, bool pad\+To\+Multiples\+Of4)
\begin{DoxyCompactList}\small\item\em Get the number of elements of a given type, including whether to pad the elements into multiples of 4 (e.\+g. \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_ad36eaae8146204ee76bf97e5ca432aaf}{is\+Bool}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} c)
\item 
static bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_aabae16f5e6f35ed5e5370501a4eeede7}{is\+Double}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} c)
\item 
static bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a13ed935cc299f0b4bfdd2b308e96e459}{is\+Float}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} c)
\item 
static bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a3561315f96c261bf026da6b06955518f}{is\+Int}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} c)
\item 
static bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a59a70d25266c42c4d1c6cb3af15ff2cc}{is\+Sampler}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} c)
\item 
static bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a3fd6712d35b95b3c8e6f07263a3aa492}{is\+Subroutine}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} c)
\item 
static bool \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a8044bcb2a6b93ce1f36ae705d3dbcb29}{is\+Unsigned\+Int}} (\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} c)
\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
size\+\_\+t \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_acaf52008903308ca818a1fc816d88231}{array\+Size}}
\begin{DoxyCompactList}\small\item\em Length of array. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a2313e6ce0fa661a5814099230846b82d}{const\+Type}}
\begin{DoxyCompactList}\small\item\em Data type. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a2d71f0cd6e1f4fab8806905dd131abe6}{element\+Size}}
\begin{DoxyCompactList}\small\item\em Number of raw buffer slots per element (some programs pack each array element to float4, some do not) \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a8579926ecde16841abf0d872689b672c}{logical\+Index}}
\begin{DoxyCompactList}\small\item\em Logical index -\/ used to communicate this constant to the rendersystem. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a46ccefd7dc110783ff07328cf105b19f}{physical\+Index}}
\begin{DoxyCompactList}\small\item\em Physical start index in buffer (either float, double, int, or uint buffer) \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_aa8263b218e7d187ad5ef03a73a6ad7fd}{uint16}} \mbox{\hyperlink{struct_ogre_1_1_gpu_constant_definition_a51ccda09a2daaef201e0bfe014dfef1b}{variability}}
\begin{DoxyCompactList}\small\item\em How this parameter varies (bitwise combination of Gpu\+Program\+Variability) \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Information about predefined program constants. 

\begin{DoxyNote}{Note}
Only available for high-\/level programs but is referenced generically by \mbox{\hyperlink{class_ogre_1_1_gpu_program_parameters}{Gpu\+Program\+Parameters}}. 
\end{DoxyNote}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_afce533b1a68d8e3f542cfeab53a643ae}\label{struct_ogre_1_1_gpu_constant_definition_afce533b1a68d8e3f542cfeab53a643ae}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!GpuConstantDefinition@{GpuConstantDefinition}}
\index{GpuConstantDefinition@{GpuConstantDefinition}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{GpuConstantDefinition()}{GpuConstantDefinition()}}
{\footnotesize\ttfamily Ogre\+::\+Gpu\+Constant\+Definition\+::\+Gpu\+Constant\+Definition (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a7e8eb132b7b4e46045eb680f2734410a}\label{struct_ogre_1_1_gpu_constant_definition_a7e8eb132b7b4e46045eb680f2734410a}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isFloat@{isFloat}}
\index{isFloat@{isFloat}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isFloat()}{isFloat()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Float (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References is\+Float().



Referenced by is\+Float().

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a13ed935cc299f0b4bfdd2b308e96e459}\label{struct_ogre_1_1_gpu_constant_definition_a13ed935cc299f0b4bfdd2b308e96e459}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isFloat@{isFloat}}
\index{isFloat@{isFloat}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isFloat()}{isFloat()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Float (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



References Ogre\+::\+B\+C\+T\+\_\+\+F\+L\+O\+AT.

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_aa85afb9ccfaa33bccf8054370bf121ae}\label{struct_ogre_1_1_gpu_constant_definition_aa85afb9ccfaa33bccf8054370bf121ae}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isDouble@{isDouble}}
\index{isDouble@{isDouble}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isDouble()}{isDouble()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Double (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References is\+Double().



Referenced by is\+Double().

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_aabae16f5e6f35ed5e5370501a4eeede7}\label{struct_ogre_1_1_gpu_constant_definition_aabae16f5e6f35ed5e5370501a4eeede7}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isDouble@{isDouble}}
\index{isDouble@{isDouble}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isDouble()}{isDouble()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Double (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



References Ogre\+::\+B\+C\+T\+\_\+\+D\+O\+U\+B\+LE.

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a134c40a7f7baddf559a6a771c0cd9149}\label{struct_ogre_1_1_gpu_constant_definition_a134c40a7f7baddf559a6a771c0cd9149}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isInt@{isInt}}
\index{isInt@{isInt}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isInt()}{isInt()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Int (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References is\+Int().



Referenced by is\+Int().

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a3561315f96c261bf026da6b06955518f}\label{struct_ogre_1_1_gpu_constant_definition_a3561315f96c261bf026da6b06955518f}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isInt@{isInt}}
\index{isInt@{isInt}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isInt()}{isInt()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Int (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



References Ogre\+::\+B\+C\+T\+\_\+\+I\+NT.

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a4c59abf98a3fd610274815428eda0caa}\label{struct_ogre_1_1_gpu_constant_definition_a4c59abf98a3fd610274815428eda0caa}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isUnsignedInt@{isUnsignedInt}}
\index{isUnsignedInt@{isUnsignedInt}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isUnsignedInt()}{isUnsignedInt()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Unsigned\+Int (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References is\+Unsigned\+Int().



Referenced by is\+Unsigned\+Int().

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a8044bcb2a6b93ce1f36ae705d3dbcb29}\label{struct_ogre_1_1_gpu_constant_definition_a8044bcb2a6b93ce1f36ae705d3dbcb29}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isUnsignedInt@{isUnsignedInt}}
\index{isUnsignedInt@{isUnsignedInt}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isUnsignedInt()}{isUnsignedInt()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Unsigned\+Int (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



References Ogre\+::\+B\+C\+T\+\_\+\+U\+I\+NT.

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_ad53ec6eedaf695a41ba9773112256ab7}\label{struct_ogre_1_1_gpu_constant_definition_ad53ec6eedaf695a41ba9773112256ab7}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isBool@{isBool}}
\index{isBool@{isBool}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isBool()}{isBool()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Bool (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References is\+Bool().



Referenced by is\+Bool().

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_ad36eaae8146204ee76bf97e5ca432aaf}\label{struct_ogre_1_1_gpu_constant_definition_ad36eaae8146204ee76bf97e5ca432aaf}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isBool@{isBool}}
\index{isBool@{isBool}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isBool()}{isBool()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Bool (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



References Ogre\+::\+B\+C\+T\+\_\+\+B\+O\+OL.

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a280838a1b7aa40b1e0dc5036b9a33b97}\label{struct_ogre_1_1_gpu_constant_definition_a280838a1b7aa40b1e0dc5036b9a33b97}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isSampler@{isSampler}}
\index{isSampler@{isSampler}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isSampler()}{isSampler()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Sampler (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References is\+Sampler().



Referenced by is\+Sampler().

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a59a70d25266c42c4d1c6cb3af15ff2cc}\label{struct_ogre_1_1_gpu_constant_definition_a59a70d25266c42c4d1c6cb3af15ff2cc}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isSampler@{isSampler}}
\index{isSampler@{isSampler}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isSampler()}{isSampler()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Sampler (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



References Ogre\+::\+B\+C\+T\+\_\+\+S\+A\+M\+P\+L\+ER.

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_ae697e9c02150de15437ba260b8cf339b}\label{struct_ogre_1_1_gpu_constant_definition_ae697e9c02150de15437ba260b8cf339b}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isSubroutine@{isSubroutine}}
\index{isSubroutine@{isSubroutine}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isSubroutine()}{isSubroutine()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Subroutine (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



References is\+Subroutine().



Referenced by is\+Subroutine().

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a3fd6712d35b95b3c8e6f07263a3aa492}\label{struct_ogre_1_1_gpu_constant_definition_a3fd6712d35b95b3c8e6f07263a3aa492}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!isSubroutine@{isSubroutine}}
\index{isSubroutine@{isSubroutine}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{isSubroutine()}{isSubroutine()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Subroutine (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{c }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



References Ogre\+::\+B\+C\+T\+\_\+\+S\+U\+B\+R\+O\+U\+T\+I\+NE.

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a756b2a33dcacfd3cca90be358cae3168}\label{struct_ogre_1_1_gpu_constant_definition_a756b2a33dcacfd3cca90be358cae3168}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!getBaseType@{getBaseType}}
\index{getBaseType@{getBaseType}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{getBaseType()}{getBaseType()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group___materials_ga31815ee0cc489402a8be91f2c87a84c6}{Base\+Constant\+Type}} Ogre\+::\+Gpu\+Constant\+Definition\+::get\+Base\+Type (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{ctype }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a98b89162a969ef7c8cdce59979e486e9}\label{struct_ogre_1_1_gpu_constant_definition_a98b89162a969ef7c8cdce59979e486e9}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!getElementSize@{getElementSize}}
\index{getElementSize@{getElementSize}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{getElementSize()}{getElementSize()}}
{\footnotesize\ttfamily static size\+\_\+t Ogre\+::\+Gpu\+Constant\+Definition\+::get\+Element\+Size (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}}}]{ctype,  }\item[{bool}]{pad\+To\+Multiples\+Of4 }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Get the number of elements of a given type, including whether to pad the elements into multiples of 4 (e.\+g. 

S\+M1 and D3D does, \mbox{\hyperlink{namespace_ogre_1_1_g_l_s_l}{G\+L\+SL}} doesn\textquotesingle{}t) 

References Ogre\+::\+G\+C\+T\+\_\+\+B\+O\+O\+L1, Ogre\+::\+G\+C\+T\+\_\+\+B\+O\+O\+L2, Ogre\+::\+G\+C\+T\+\_\+\+B\+O\+O\+L3, Ogre\+::\+G\+C\+T\+\_\+\+B\+O\+O\+L4, Ogre\+::\+G\+C\+T\+\_\+\+D\+O\+U\+B\+L\+E1, Ogre\+::\+G\+C\+T\+\_\+\+D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+\_\+\+U\+I\+N\+T4.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a2313e6ce0fa661a5814099230846b82d}\label{struct_ogre_1_1_gpu_constant_definition_a2313e6ce0fa661a5814099230846b82d}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!constType@{constType}}
\index{constType@{constType}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{constType}{constType}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type}} Ogre\+::\+Gpu\+Constant\+Definition\+::const\+Type}



Data type. 

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a46ccefd7dc110783ff07328cf105b19f}\label{struct_ogre_1_1_gpu_constant_definition_a46ccefd7dc110783ff07328cf105b19f}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!physicalIndex@{physicalIndex}}
\index{physicalIndex@{physicalIndex}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{physicalIndex}{physicalIndex}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Gpu\+Constant\+Definition\+::physical\+Index}



Physical start index in buffer (either float, double, int, or uint buffer) 

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a8579926ecde16841abf0d872689b672c}\label{struct_ogre_1_1_gpu_constant_definition_a8579926ecde16841abf0d872689b672c}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!logicalIndex@{logicalIndex}}
\index{logicalIndex@{logicalIndex}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{logicalIndex}{logicalIndex}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Gpu\+Constant\+Definition\+::logical\+Index}



Logical index -\/ used to communicate this constant to the rendersystem. 

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a2d71f0cd6e1f4fab8806905dd131abe6}\label{struct_ogre_1_1_gpu_constant_definition_a2d71f0cd6e1f4fab8806905dd131abe6}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!elementSize@{elementSize}}
\index{elementSize@{elementSize}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{elementSize}{elementSize}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Gpu\+Constant\+Definition\+::element\+Size}



Number of raw buffer slots per element (some programs pack each array element to float4, some do not) 

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_acaf52008903308ca818a1fc816d88231}\label{struct_ogre_1_1_gpu_constant_definition_acaf52008903308ca818a1fc816d88231}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!arraySize@{arraySize}}
\index{arraySize@{arraySize}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{arraySize}{arraySize}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Gpu\+Constant\+Definition\+::array\+Size}



Length of array. 

\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a51ccda09a2daaef201e0bfe014dfef1b}\label{struct_ogre_1_1_gpu_constant_definition_a51ccda09a2daaef201e0bfe014dfef1b}} 
\index{Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}!variability@{variability}}
\index{variability@{variability}!Ogre::GpuConstantDefinition@{Ogre::GpuConstantDefinition}}
\doxysubsubsection{\texorpdfstring{variability}{variability}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_aa8263b218e7d187ad5ef03a73a6ad7fd}{uint16}} Ogre\+::\+Gpu\+Constant\+Definition\+::variability\hspace{0.3cm}{\ttfamily [mutable]}}



How this parameter varies (bitwise combination of Gpu\+Program\+Variability) 



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_gpu_program_params_8h}{Ogre\+Gpu\+Program\+Params.\+h}}\end{DoxyCompactItemize}
