|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Set of light probe volumes in 3D space. More...
#include <GREM/graphics_3d/LightProbeVolumes3D.hpp>
Classes | |
| struct | AtlasParameters |
| Struct of shader parameters representing the light probe volume atlases. More... | |
| struct | VolumeFields |
| Struct of shader fields representing a light probe volume. More... | |
Public Types | |
| using | AtlasBuffer = UniformBuffer<AtlasParameters, "LightProbeVolumes3DAtlases"> |
| Shader buffer for light probe volume atlases. | |
| using | VolumeBuffer = StorageBuffer<VolumeFields, "LightProbeVolumes3DVolumes"> |
| Shader buffer for light probe volumes. | |
Public Member Functions | |
| LightProbeVolumes3D (Device &device, const LightProbeVolumes3DOptions &options={}) | |
| Construct an empty set of light probe volumes. | |
| LightProbeVolumes3D (Device &device, Texture irradianceAtlasTexture, Texture distanceAtlasTexture, ArrayList< LightProbeVolumeOptions3D > volumeOptions, const LightProbeVolumes3DOptions &options) | |
| Construct a pre-baked set of light probe volumes. | |
| void | clearLightProbeVolumes () noexcept |
| Remove all light probe volumes from the set. | |
| void | addLightProbeVolume (const LightProbeVolumeOptions3D &options) |
| Add a light probe volume to the set. | |
| void | setLightProbeVolumes (const LightProbeVolumes3DOptions &newOptions) |
| Set the light probe volume set to the default empty set with new options. | |
| void | setLightProbeVolumes (Texture newIrradianceAtlasTexture, Texture newDistanceAtlasTexture, ArrayList< LightProbeVolumeOptions3D > newVolumeOptions, const LightProbeVolumes3DOptions &newOptions) |
| Assign a pre-baked set of light probe volumes to the light probe volume set. | |
| const Texture & | getIrradianceAtlasTexture () const noexcept |
| Get the atlas of irradiance values for the light probe volumes. | |
| const Texture & | getDistanceAtlasTexture () const noexcept |
| Get the atlas of distance values for the light probe volumes. | |
| Span< const LightProbeVolumeOptions3D > | getVolumeOptions () const noexcept |
| Get the configuration options for the light probe volumes in the set. | |
| LightProbeVolumes3DOptions | getOptions () const noexcept |
| Get the configuration options of the light probe volume set. | |
Static Public Attributes | |
| static constexpr TextureSamplerOptions | IRRADIANCE_ATLAS_SAMPLER_OPTIONS |
| Sampler options to use for the irradiance atlas of light probe volumes. | |
| static constexpr TextureSamplerOptions | DISTANCE_ATLAS_SAMPLER_OPTIONS |
| Sampler options to use for the distance atlas of light probe volumes. | |
Set of light probe volumes in 3D space.
| using grem::graphics::LightProbeVolumes3D::AtlasBuffer = UniformBuffer<AtlasParameters, "LightProbeVolumes3DAtlases"> |
Shader buffer for light probe volume atlases.
| using grem::graphics::LightProbeVolumes3D::VolumeBuffer = StorageBuffer<VolumeFields, "LightProbeVolumes3DVolumes"> |
Shader buffer for light probe volumes.
|
explicit |
Construct an empty set of light probe volumes.
| device | device to create the set for. Must outlive the set. |
| options | light probe volume set options, see LightProbeVolumes3DOptions. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| grem::graphics::LightProbeVolumes3D::LightProbeVolumes3D | ( | Device & | device, |
| Texture | irradianceAtlasTexture, | ||
| Texture | distanceAtlasTexture, | ||
| ArrayList< LightProbeVolumeOptions3D > | volumeOptions, | ||
| const LightProbeVolumes3DOptions & | options ) |
Construct a pre-baked set of light probe volumes.
| device | device to create the set for. Must outlive the set. |
| irradianceAtlasTexture | pre-baked atlas of irradiance values for the light probe volumes. Must be a valid sampled 2D array texture in an RGB(A) color format, or empty if there are no volumes. The texture's sampler options should be LightProbeVolumes3D::IRRADIANCE_ATLAS_SAMPLER_OPTIONS. |
| distanceAtlasTexture | pre-baked atlas of distance values for the light probe volumes. Must be a valid sampled 2D array texture in a single-channel color format, or empty if there are no volumes. The texture's sampler options should be LightProbeVolumes3D::DISTANCE_ATLAS_SAMPLER_OPTIONS. |
| volumeOptions | list of light probe volume options. |
| options | light probe volume set options, see LightProbeVolumes3DOptions. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
noexcept |
Remove all light probe volumes from the set.
| void grem::graphics::LightProbeVolumes3D::addLightProbeVolume | ( | const LightProbeVolumeOptions3D & | options | ) |
Add a light probe volume to the set.
| options | light probe volume options, see LightProbeVolumeOptions3D. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::LightProbeVolumes3D::setLightProbeVolumes | ( | const LightProbeVolumes3DOptions & | newOptions | ) |
Set the light probe volume set to the default empty set with new options.
| newOptions | light probe volume set options, see LightProbeVolumes3DOptions. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
| void grem::graphics::LightProbeVolumes3D::setLightProbeVolumes | ( | Texture | newIrradianceAtlasTexture, |
| Texture | newDistanceAtlasTexture, | ||
| ArrayList< LightProbeVolumeOptions3D > | newVolumeOptions, | ||
| const LightProbeVolumes3DOptions & | newOptions ) |
Assign a pre-baked set of light probe volumes to the light probe volume set.
| newIrradianceAtlasTexture | pre-baked atlas of irradiance values for the light probe volumes. Must be a valid sampled 2D array texture in an RGB(A) color format, or empty if there are no volumes. |
| newDistanceAtlasTexture | pre-baked atlas of distance values for the light probe volumes. Must be a valid sampled 2D array texture in a single-channel color format, or empty if there are no volumes. |
| newVolumeOptions | list of light probe volume options. |
| newOptions | light probe volume set options, see LightProbeVolumes3DOptions. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inlinenodiscardnoexcept |
Get the atlas of irradiance values for the light probe volumes.
|
inlinenodiscardnoexcept |
Get the atlas of distance values for the light probe volumes.
|
inlinenodiscardnoexcept |
Get the configuration options for the light probe volumes in the set.
|
inlinenodiscardnoexcept |
Get the configuration options of the light probe volume set.
|
staticconstexpr |
Sampler options to use for the irradiance atlas of light probe volumes.
|
staticconstexpr |
Sampler options to use for the distance atlas of light probe volumes.