Urho3D::ShaderParameter Struct Reference
Urho3D::ShaderParameter Struct Reference
Shader parameter definition. More...
#include <Urho3D/Graphics/ShaderVariation.h>
Collaboration diagram for Urho3D::ShaderParameter:
Public Member Functions | |
ShaderParameter () | |
Construct with defaults. | |
Public Attributes | |
ShaderType | type_ |
Shader type. | |
String | name_ |
Name of the parameter. | |
union { | |
unsigned offset_ | |
Offset in constant buffer. | |
int location_ | |
OpenGL uniform location. | |
unsigned register_ | |
Direct3D9 register index. | |
}; | |
union { | |
unsigned size_ | |
Parameter size. Used only on Direct3D11 to calculate constant buffer size. | |
unsigned glType_ | |
Parameter OpenGL type. | |
unsigned regCount_ | |
Number of registers on Direct3D9. | |
}; | |
unsigned | buffer_ |
Constant buffer index. Only used on Direct3D11. | |
ConstantBuffer * | bufferPtr_ |
Constant buffer pointer. Defined only in shader programs. | |
Detailed Description
Shader parameter definition.
The documentation for this struct was generated from the following file:
- Source/Urho3D/Graphics/ShaderVariation.h