A metal Program.
More...
#include <ProgramMTL.h>
Inherits Program.
◆ ProgramImpl()
| ProgramImpl |
( |
std::string_view | vertexShader, |
|
|
std::string_view | fragmentShader ) |
- Parameters
-
| vertexShader | Specifes the vertex shader source. |
| fragmentShader | Specifes the fragment shader source. |
◆ getUniformLocation() [1/2]
| UniformLocation getUniformLocation |
( |
std::string_view | uniform | ) |
const |
|
overridevirtual |
Get uniform location by name.
- Parameters
-
| uniform | Specifies the uniform name. |
- Returns
- The uniform location.
Implements Program.
◆ getUniformLocation() [2/2]
| UniformLocation getUniformLocation |
( |
rhi::Uniform | name | ) |
const |
|
overridevirtual |
Get uniform location by engine built-in uniform enum name.
- Parameters
-
| name | Specifies the engine built-in uniform enum name. |
- Returns
- The uniform location.
Implements Program.
◆ getVertexInputDesc() [1/2]
| const VertexInputDesc * getVertexInputDesc |
( |
std::string_view | name | ) |
const |
|
overridevirtual |
Get attribute location by attribute name.
- Parameters
-
| name | Specifies the attribute name. |
- Returns
- The attribute location.
Implements Program.
◆ getVertexInputDesc() [2/2]
| const VertexInputDesc * getVertexInputDesc |
( |
VertexInputKind | name | ) |
const |
|
overridevirtual |
Get attribute location by engine built-in attribute enum name.
- Parameters
-
| name | Specifies the engine built-in attribute enum name. |
- Returns
- The attribute location.
Implements Program.
◆ getActiveVertexInputs()
| const tlx::string_map< VertexInputDesc > & getActiveVertexInputs |
( |
| ) |
const |
|
overridevirtual |
Get active vertex attributes.
- Returns
- Active vertex attributes. key is active attribute name, Value is corresponding attribute info.
Implements Program.
◆ getVertexShader()
Get vertex shader module.
- Returns
- Vertex shader module.
◆ getFragmentShader()
Get fragment shader module.
@ Fragment shader module.
◆ getMaxVertexLocation()
| int getMaxVertexLocation |
( |
| ) |
const |
|
overridevirtual |
Get maximum vertex location.
- Returns
- Maximum vertex locaiton.
Implements Program.
◆ getMaxFragmentLocation()
| int getMaxFragmentLocation |
( |
| ) |
const |
|
overridevirtual |
Get maximum fragment location.
- Returns
- Maximum fragment location.
Implements Program.
◆ getUniformBufferSize()
| std::size_t getUniformBufferSize |
( |
ShaderStage | stage | ) |
const |
|
overridevirtual |
Get uniform buffer size in bytes that can hold all the uniforms.
- Parameters
-
| stage | Specifies the shader stage. The symbolic constant can be either VERTEX or FRAGMENT. |
- Returns
- The uniform buffer size in bytes.
Implements Program.
◆ getActiveUniformInfos()
| const tlx::string_map< UniformInfo > & getActiveUniformInfos |
( |
ShaderStage | stage | ) |
const |
|
overridevirtual |
Get all uniformInfos.
- Returns
- The uniformInfos.
Implements Program.
The documentation for this class was generated from the following file: