Class DeviceEnvironment
Defined in File DeviceEnvironment.cuh
Inheritance Relationships
Base Type
public flamegpu::ReadOnlyDeviceEnvironment
(Class ReadOnlyDeviceEnvironment)
Class Documentation
-
class DeviceEnvironment : public flamegpu::ReadOnlyDeviceEnvironment
Utility for accessing environmental properties These can only be read within agent functions They can be set and updated within host functions This version also allows limited write access to device macro properties
Public Functions
-
template<typename T, unsigned int I = 1, unsigned int J = 1, unsigned int K = 1, unsigned int W = 1, unsigned int M>
__device__ __forceinline__ DeviceMacroProperty<T, I, J, K, W> getMacroProperty(const char (&name)[M]) const Returns an accessor to the named macro property
- Parameters:
name – name used for accessing the property, this value should be a string literal e.g. “foobar”
- Template Parameters:
I – Length of macro property in the 1st dimension, default 1
J – Length of macro property in the 2nd dimension, default 1
K – Length of macro property in the 3rd dimension, default 1
W – Length of macro property in the 4th dimension, default 1
M – Length of variable name, this should always be implicit if passing a string literal
-
template<typename T, unsigned int I = 1, unsigned int J = 1, unsigned int K = 1, unsigned int W = 1, unsigned int M>