ILinearBlendLayer is an optional interface implemented by layers that perform linear blend operations.
More...
#include <nvneural/layers/ILinearBlendLayer.h>
|
virtual NeuralResult | setAlpha (float alpha) noexcept=0 |
| Sets alpha of linear blend. More...
|
|
virtual NeuralResult | setInvertAlpha (bool invert) noexcept=0 |
| Sets whether to invert alpha of linear blend. More...
|
|
virtual RefCount | addRef () const noexcept=0 |
| Increments the object's reference count. More...
|
|
virtual const void * | queryInterface (TypeId interface) const noexcept=0 |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
virtual void * | queryInterface (TypeId interface) noexcept=0 |
| Retrieves a new object interface pointer. More...
|
|
virtual RefCount | release () const noexcept=0 |
| Decrements the object's reference count and destroy the object if the reference count reaches zero. More...
|
|
|
using | RefCount = std::uint32_t |
| Typedef used to track the number of active references to an object.
|
|
using | TypeId = std::uint64_t |
| Every interface must define a unique TypeId. This should be randomized.
|
|
virtual | ~IRefObject ()=default |
| A protected destructor prevents accidental stack-allocation of IRefObjects or use with other smart pointer classes like std::unique_ptr.
|
|
ILinearBlendLayer is an optional interface implemented by layers that perform linear blend operations.
It is provided to help set defaults in code generation.
◆ setAlpha()
virtual NeuralResult nvneural::ILinearBlendLayer::setAlpha |
( |
float |
alpha | ) |
|
|
pure virtualnoexcept |
Sets alpha of linear blend.
- Parameters
-
alpha | Blend coefficient (should be between 0.0f and 1.0f) |
◆ setInvertAlpha()
virtual NeuralResult nvneural::ILinearBlendLayer::setInvertAlpha |
( |
bool |
invert | ) |
|
|
pure virtualnoexcept |
Sets whether to invert alpha of linear blend.
- Parameters
-
invert | If true, alpha values are evaluated as (1.0f - alpha) |
The documentation for this class was generated from the following file: