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


Information about predefined program constants.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_ogre_1_1_gpu_constant_definition_afce533b1a68d8e3f542cfeab53a643ae}{Gpu\+Constant\+Definition} ()
\item 
bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_ad53ec6eedaf695a41ba9773112256ab7}{is\+Bool} () const
\item 
bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_aa85afb9ccfaa33bccf8054370bf121ae}{is\+Double} () const
\item 
bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a7e8eb132b7b4e46045eb680f2734410a}{is\+Float} () const
\item 
bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a134c40a7f7baddf559a6a771c0cd9149}{is\+Int} () const
\item 
bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a280838a1b7aa40b1e0dc5036b9a33b97}{is\+Sampler} () const
\item 
bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_ae697e9c02150de15437ba260b8cf339b}{is\+Subroutine} () const
\item 
bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a4c59abf98a3fd610274815428eda0caa}{is\+Unsigned\+Int} () const
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{group___materials_ga31815ee0cc489402a8be91f2c87a84c6}{Base\+Constant\+Type} \hyperlink{struct_ogre_1_1_gpu_constant_definition_a756b2a33dcacfd3cca90be358cae3168}{get\+Base\+Type} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} ctype)
\item 
static size\+\_\+t \hyperlink{struct_ogre_1_1_gpu_constant_definition_a98b89162a969ef7c8cdce59979e486e9}{get\+Element\+Size} (\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 \hyperlink{struct_ogre_1_1_gpu_constant_definition_ad36eaae8146204ee76bf97e5ca432aaf}{is\+Bool} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} c)
\item 
static bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_aabae16f5e6f35ed5e5370501a4eeede7}{is\+Double} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} c)
\item 
static bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a13ed935cc299f0b4bfdd2b308e96e459}{is\+Float} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} c)
\item 
static bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a3561315f96c261bf026da6b06955518f}{is\+Int} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} c)
\item 
static bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a59a70d25266c42c4d1c6cb3af15ff2cc}{is\+Sampler} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} c)
\item 
static bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a3fd6712d35b95b3c8e6f07263a3aa492}{is\+Subroutine} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} c)
\item 
static bool \hyperlink{struct_ogre_1_1_gpu_constant_definition_a8044bcb2a6b93ce1f36ae705d3dbcb29}{is\+Unsigned\+Int} (\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} c)
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
size\+\_\+t \hyperlink{struct_ogre_1_1_gpu_constant_definition_acaf52008903308ca818a1fc816d88231}{array\+Size}
\begin{DoxyCompactList}\small\item\em Length of array. \end{DoxyCompactList}\item 
\hyperlink{group___materials_ga9c5b2950be06ff56a6ee0bace240d447}{Gpu\+Constant\+Type} \hyperlink{struct_ogre_1_1_gpu_constant_definition_a2313e6ce0fa661a5814099230846b82d}{const\+Type}
\begin{DoxyCompactList}\small\item\em Data type. \end{DoxyCompactList}\item 
size\+\_\+t \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 \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 \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 
\hyperlink{namespace_ogre_aa8263b218e7d187ad5ef03a73a6ad7fd}{uint16} \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}


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

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


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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a7e8eb132b7b4e46045eb680f2734410a}\label{struct_ogre_1_1_gpu_constant_definition_a7e8eb132b7b4e46045eb680f2734410a}} 
\index{Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Float@{is\+Float}}
\index{is\+Float@{is\+Float}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Float()}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Float@{is\+Float}}
\index{is\+Float@{is\+Float}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Float()}{isFloat()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Float (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Double@{is\+Double}}
\index{is\+Double@{is\+Double}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Double()}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Double@{is\+Double}}
\index{is\+Double@{is\+Double}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Double()}{isDouble()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Double (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Int@{is\+Int}}
\index{is\+Int@{is\+Int}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Int()}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Int@{is\+Int}}
\index{is\+Int@{is\+Int}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Int()}{isInt()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Int (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Unsigned\+Int@{is\+Unsigned\+Int}}
\index{is\+Unsigned\+Int@{is\+Unsigned\+Int}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Unsigned\+Int()}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Unsigned\+Int@{is\+Unsigned\+Int}}
\index{is\+Unsigned\+Int@{is\+Unsigned\+Int}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Unsigned\+Int()}{isUnsignedInt()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Unsigned\+Int (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Bool@{is\+Bool}}
\index{is\+Bool@{is\+Bool}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Bool()}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Bool@{is\+Bool}}
\index{is\+Bool@{is\+Bool}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Bool()}{isBool()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Bool (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Sampler@{is\+Sampler}}
\index{is\+Sampler@{is\+Sampler}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Sampler()}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Sampler@{is\+Sampler}}
\index{is\+Sampler@{is\+Sampler}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Sampler()}{isSampler()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Sampler (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Subroutine@{is\+Subroutine}}
\index{is\+Subroutine@{is\+Subroutine}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Subroutine()}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!is\+Subroutine@{is\+Subroutine}}
\index{is\+Subroutine@{is\+Subroutine}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{is\+Subroutine()}{isSubroutine()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily static bool Ogre\+::\+Gpu\+Constant\+Definition\+::is\+Subroutine (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!get\+Base\+Type@{get\+Base\+Type}}
\index{get\+Base\+Type@{get\+Base\+Type}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{get\+Base\+Type()}{getBaseType()}}
{\footnotesize\ttfamily static \hyperlink{group___materials_ga31815ee0cc489402a8be91f2c87a84c6}{Base\+Constant\+Type} Ogre\+::\+Gpu\+Constant\+Definition\+::get\+Base\+Type (\begin{DoxyParamCaption}\item[{\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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!get\+Element\+Size@{get\+Element\+Size}}
\index{get\+Element\+Size@{get\+Element\+Size}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{get\+Element\+Size()}{getElementSize()}}
{\footnotesize\ttfamily static size\+\_\+t Ogre\+::\+Gpu\+Constant\+Definition\+::get\+Element\+Size (\begin{DoxyParamCaption}\item[{\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, \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\+O\+U\+B\+L\+E2, Ogre\+::\+G\+C\+T\+\_\+\+D\+O\+U\+B\+L\+E3, Ogre\+::\+G\+C\+T\+\_\+\+D\+O\+U\+B\+L\+E4, Ogre\+::\+G\+C\+T\+\_\+\+F\+L\+O\+A\+T1, Ogre\+::\+G\+C\+T\+\_\+\+F\+L\+O\+A\+T2, Ogre\+::\+G\+C\+T\+\_\+\+F\+L\+O\+A\+T3, Ogre\+::\+G\+C\+T\+\_\+\+F\+L\+O\+A\+T4, Ogre\+::\+G\+C\+T\+\_\+\+I\+N\+T1, Ogre\+::\+G\+C\+T\+\_\+\+I\+N\+T2, Ogre\+::\+G\+C\+T\+\_\+\+I\+N\+T3, Ogre\+::\+G\+C\+T\+\_\+\+I\+N\+T4, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+2\+X2, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+2\+X3, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+2\+X4, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+3\+X2, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+3\+X3, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+3\+X4, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+4\+X2, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+4\+X3, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+4\+X4, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+2\+X2, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+2\+X3, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+2\+X4, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+3\+X2, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+3\+X3, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+3\+X4, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+4\+X2, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+4\+X3, Ogre\+::\+G\+C\+T\+\_\+\+M\+A\+T\+R\+I\+X\+\_\+\+D\+O\+U\+B\+L\+E\+\_\+4\+X4, Ogre\+::\+G\+C\+T\+\_\+\+S\+A\+M\+P\+L\+E\+R1D, Ogre\+::\+G\+C\+T\+\_\+\+S\+A\+M\+P\+L\+E\+R1\+D\+S\+H\+A\+D\+OW, Ogre\+::\+G\+C\+T\+\_\+\+S\+A\+M\+P\+L\+E\+R2D, Ogre\+::\+G\+C\+T\+\_\+\+S\+A\+M\+P\+L\+E\+R2\+D\+A\+R\+R\+AY, Ogre\+::\+G\+C\+T\+\_\+\+S\+A\+M\+P\+L\+E\+R2\+D\+S\+H\+A\+D\+OW, Ogre\+::\+G\+C\+T\+\_\+\+S\+A\+M\+P\+L\+E\+R3D, Ogre\+::\+G\+C\+T\+\_\+\+S\+A\+M\+P\+L\+E\+R\+C\+U\+BE, Ogre\+::\+G\+C\+T\+\_\+\+U\+I\+N\+T1, Ogre\+::\+G\+C\+T\+\_\+\+U\+I\+N\+T2, Ogre\+::\+G\+C\+T\+\_\+\+U\+I\+N\+T3, and Ogre\+::\+G\+C\+T\+\_\+\+U\+I\+N\+T4.



\subsection{Member Data Documentation}
\mbox{\Hypertarget{struct_ogre_1_1_gpu_constant_definition_a2313e6ce0fa661a5814099230846b82d}\label{struct_ogre_1_1_gpu_constant_definition_a2313e6ce0fa661a5814099230846b82d}} 
\index{Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!const\+Type@{const\+Type}}
\index{const\+Type@{const\+Type}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{const\+Type}{constType}}
{\footnotesize\ttfamily \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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!physical\+Index@{physical\+Index}}
\index{physical\+Index@{physical\+Index}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{physical\+Index}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!logical\+Index@{logical\+Index}}
\index{logical\+Index@{logical\+Index}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{logical\+Index}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!element\+Size@{element\+Size}}
\index{element\+Size@{element\+Size}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{element\+Size}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!array\+Size@{array\+Size}}
\index{array\+Size@{array\+Size}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{array\+Size}{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\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}!variability@{variability}}
\index{variability@{variability}!Ogre\+::\+Gpu\+Constant\+Definition@{Ogre\+::\+Gpu\+Constant\+Definition}}
\subsubsection{\texorpdfstring{variability}{variability}}
{\footnotesize\ttfamily \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 
\hyperlink{_ogre_gpu_program_params_8h}{Ogre\+Gpu\+Program\+Params.\+h}\end{DoxyCompactItemize}
