mi::neuraylib::Bsdf_buffer Class Reference
[Miscellaneous]
Description
Example implementation of the abstract interface mi::neuraylib::IBsdf_buffer. The size of the memory block is specified in the constructor and cannot be changed later. This simple implementation simply contains the memory block returned by get_data().
See also:
Public Constructors
- Bsdf_buffer( Size size)
- Constructor. More...
Public Destructors
- ~Bsdf_buffer()
- Destructor.
Public Member Functions
- virtual const Float32* get_data() const
- Gives access to the memory block (const).
- Float32* get_data()
- Gives access to the memory block (mutable).
Constructors
- mi::neuraylib::Bsdf_buffer::Bsdf_buffer( Size size) [inline]
-
Constructor.
Parameters
- size
- The number of mi::Float32 elements in the memory block.
Destructors
- mi::neuraylib::Bsdf_buffer::~Bsdf_buffer() [inline]
-
Destructor.
Member Functions
- virtual const Float32* mi::neuraylib::Bsdf_buffer::get_data() const [inline, virtual]
-
Gives access to the memory block (const).
- Float32* mi::neuraylib::Bsdf_buffer::get_data() [inline]
-
Gives access to the memory block (mutable).