ProgramInputLayout class.
More...
ProgramInputLayout class.
- Author
- Sylvain DOREMUS
- Version
- 0.8.0
- Date
- 03/02/2016
◆ ProgramInputLayout()
C3D_API Castor3D::ProgramInputLayout::ProgramInputLayout |
( |
RenderSystem & |
p_renderSystem | ) |
|
◆ ~ProgramInputLayout()
C3D_API Castor3D::ProgramInputLayout::~ProgramInputLayout |
( |
| ) |
|
◆ begin()
- Returns
- An iterator to the beginning of the layout elements.
References m_layout.
◆ Cleanup()
virtual C3D_API void Castor3D::ProgramInputLayout::Cleanup |
( |
| ) |
|
|
pure virtual |
Cleanup function, on GPU side.
◆ DoAddAttribute()
C3D_API void Castor3D::ProgramInputLayout::DoAddAttribute |
( |
Castor::String const & |
p_name, |
|
|
eELEMENT_TYPE |
p_type, |
|
|
uint32_t |
p_offset = 0 |
|
) |
| |
|
protected |
Adds an attribute to the layout.
- Parameters
-
[in] | p_name | Associated variable name. |
[in] | p_type | Element type. |
[in] | p_offset | Offset in the stream. |
◆ DoGuessUsages()
uint32_t Castor3D::ProgramInputLayout::DoGuessUsages |
( |
Castor::String const & |
p_name, |
|
|
eELEMENT_TYPE |
p_type |
|
) |
| |
|
protected |
Tries to guess possible usage for attribute, given its name and type.
- Parameters
-
[in] | p_name | Associated variable name. |
[in] | p_type | Element type. |
- Returns
- The possible usages.
◆ end()
- Returns
- An iterator to the end of the layout elements.
References m_layout.
◆ Initialise()
virtual C3D_API bool Castor3D::ProgramInputLayout::Initialise |
( |
ShaderProgram const & |
p_program | ) |
|
|
pure virtual |
Initialisation function, on GPU side.
- Parameters
-
[in] | p_program | The shader program used to fill this layout. |
- Returns
true
if OK.
◆ operator==
Equality operator.
- Parameters
-
[in] | p_lhs,p_rhs | The 2 objects to compare. |
◆ m_layout
Buffer elements description.
Referenced by begin(), and end().
The documentation for this class was generated from the following file: