|
|
| Attribute ()=default |
| | Builds an empty attribute with no bound resource.
|
| | Attribute (const Attribute &p_other)=default |
| | Copies an attribute and its resource handle.
|
| | Attribute (Attribute &&p_other) noexcept=default |
| | Moves an attribute and its resource handle.
|
| Attribute & | operator= (const Attribute &p_other)=default |
| | Copies an attribute and its resource handle.
|
| Attribute & | operator= (Attribute &&p_other) noexcept=default |
| | Moves an attribute and its resource handle.
|
| Kind | kind () const noexcept |
| | Returns the attribute resource kind.
|
| GLuint | bindingPoint () const noexcept |
| | Returns the binding point associated with this attribute.
|
| std::size_t | size () const noexcept |
| | Returns the attribute resource size in bytes.
|
| GLint | uniformLocation () const noexcept |
| | Returns the uniform location for sampler attributes.
|
| void | setUBO (GLuint p_bindingPoint, std::size_t p_size, spk::OpenGL::BufferObject::Usage p_usage) |
| | Configures the attribute as a UBO resource.
|
| void | setSSBO (GLuint p_bindingPoint, std::size_t p_size, spk::OpenGL::BufferObject::Usage p_usage) |
| | Configures the attribute as an SSBO resource.
|
| void | setSampler (GLint p_uniformLocation, GLuint p_textureUnitIndex) |
| | Configures the attribute as a sampler resource.
|
|
void | activate () |
| | Activates the underlying resource for rendering.
|
|
void | deactivate () |
| | Deactivates the underlying resource after rendering.
|
| spk::OpenGL::UBO & | ubo () |
| | Returns the attribute as a UBO resource.
|
| const spk::OpenGL::UBO & | ubo () const |
| | Returns the attribute as a UBO resource.
|
| spk::OpenGL::SSBO & | ssbo () |
| | Returns the attribute as an SSBO resource.
|
| const spk::OpenGL::SSBO & | ssbo () const |
| | Returns the attribute as an SSBO resource.
|
| spk::OpenGL::SamplerObject & | sampler () |
| | Returns the attribute as a sampler resource.
|
| const spk::OpenGL::SamplerObject & | sampler () const |
| | Returns the attribute as a sampler resource.
|
| template<typename TResourceType> |
| TResourceType & | as () |
| | Returns the attribute as the requested resource type.
|
| template<typename TResourceType> |
| const TResourceType & | as () const |
| | Returns the attribute as the requested resource type.
|
Attribute instance holding shared OpenGL resources.