|
| ProgramGL (const std::string &vertexShader, const std::string &fragmentShader) |
|
const std::vector
< AttributeInfo > & | getAttributeInfos () const |
| Get attribute informations.
|
|
GLuint | getHandler () const |
| Get program object.
|
|
void | computeAttributeInfos (const RenderPipelineDescriptor &descriptor) |
| Calculate attribute information according to vertex layout.
|
|
virtual UniformLocation | getUniformLocation (const std::string &uniform) const override |
| Get uniform location by name.
|
|
virtual UniformLocation | getUniformLocation (backend::Uniform name) const override |
| Get uniform location by engine built-in uniform enum name.
|
|
virtual int | getAttributeLocation (const std::string &name) const override |
| Get attribute location by attribute name.
|
|
virtual int | getAttributeLocation (Attribute name) const override |
| Get attribute location by engine built-in attribute enum name.
|
|
virtual int | getMaxVertexLocation () const override |
| Get maximum vertex location.
|
|
virtual int | getMaxFragmentLocation () const override |
| Get maximum fragment location.
|
|
virtual const
std::unordered_map
< std::string,
AttributeBindInfo > | getActiveAttributes () const override |
| Get active vertex attributes.
|
|
virtual std::size_t | getUniformBufferSize (ShaderStage stage) const override |
| Get uniform buffer size in bytes that can hold all the uniforms.
|
|
virtual const UniformInfo & | getActiveUniformInfo (ShaderStage stage, int location) const override |
| Get a uniformInfo in given location from the specific shader stage.
|
|
virtual const
std::unordered_map
< std::string, UniformInfo > & | getAllActiveUniformInfo (ShaderStage stage) const override |
| Get all uniformInfos.
|
|
const std::string & | getVertexShader () const |
| Get vertex shader.
|
|
const std::string & | getFragmentShader () const |
| Get fragment shader.
|
|
ProgramType | getProgramType () const |
| Get engine built-in program type.
|
|
void | retain () |
| Retains the ownership.
|
|
void | release () |
| Releases the ownership immediately.
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically.
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count.
|
|
virtual | ~Ref () |
| Destructor.
|
|