MDL SDK API nvidia_logo_transpbg.gif Up
ibsdf_isotropic_data.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2025 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_IBSDF_ISOTROPIC_DATA_H
8#define MI_NEURAYLIB_IBSDF_ISOTROPIC_DATA_H
9
11#include <mi/neuraylib/version.h> // for MI_NEURAYLIB_DEPRECATED_ENUM_VALUE
12
13namespace mi {
14
15namespace neuraylib {
16
17class IBsdf_buffer;
18
26 BSDF_RGB = 1
27 MI_NEURAYLIB_DEPRECATED_ENUM_VALUE(BSDF_TYPES_FORCE_32_BIT, 0xffffffffU)
28};
29
42 mi::base::Interface_declare<0x23fd6d83,0x057b,0x4507,0xb4,0x93,0x0e,0xbd,0x44,0x7b,0x07,0xb9>
43{
44public:
46 virtual Uint32 get_resolution_theta() const = 0;
47
49 virtual Uint32 get_resolution_phi() const = 0;
50
52 virtual Bsdf_type get_type() const = 0;
53
55 virtual const IBsdf_buffer* get_bsdf_buffer() const = 0;
56};
57
63class IBsdf_buffer : public
64 mi::base::Interface_declare<0xdf3e6121,0x464e,0x424b,0x87,0x6f,0x6e,0x8f,0x6e,0x66,0xe2,0x9a>
65{
66public:
86 virtual const Float32* get_data() const = 0;
87};
88 // end group mi_neuray_misc
90
91} // namespace neuraylib
92
93} // namespace mi
94
95#endif // MI_NEURAYLIB_IBSDF_ISOTROPIC_DATA_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
Abstract interface for a buffer of BSDF values.
Definition: ibsdf_isotropic_data.h:65
virtual const Float32 * get_data() const =0
Returns the memory block containing the actual BSDF values.
Abstract interface for isotropic BSDF data.
Definition: ibsdf_isotropic_data.h:43
virtual const IBsdf_buffer * get_bsdf_buffer() const =0
Returns the buffer containing the actual values.
virtual Bsdf_type get_type() const =0
Returns the type of the values.
virtual Uint32 get_resolution_phi() const =0
Returns the number of values in phi direction.
virtual Uint32 get_resolution_theta() const =0
Returns the number of values in theta direction.
float Float32
32-bit float.
Definition: types.h:51
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
Bsdf_type
The BSDF type.
Definition: ibsdf_isotropic_data.h:24
@ BSDF_SCALAR
One scalar per grid value.
Definition: ibsdf_isotropic_data.h:25
@ BSDF_RGB
Three scalars (RGB) per grid value.
Definition: ibsdf_isotropic_data.h:26
Mixin class template for deriving new interface declarations.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: example_derivatives.dox:5
Major and minor version number and an optional qualifier.