Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RPI::MaterialPropertySourceData Struct Reference

Stores data that defines one material property, for use in JSON source files such as .materialtype and .materialpipeline. More...

#include <MaterialPropertySourceData.h>

Classes

struct  Connection
 

Public Types

using ConnectionList = AZStd::vector< Connection >
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (MaterialPropertySourceData, SystemAllocator)
 
 AZ_TYPE_INFO (AZ::RPI::MaterialPropertySourceData, "{E0DB3C0D-75DB-4ADB-9E79-30DA63FA18B7}")
 
 MaterialPropertySourceData (AZStd::string_view name)
 
const AZStd::string & GetName () const
 

Static Public Member Functions

static void Reflect (ReflectContext *context)
 

Public Attributes

MaterialPropertyVisibility m_visibility = MaterialPropertyVisibility::Default
 
MaterialPropertyDataType m_dataType = MaterialPropertyDataType::Invalid
 
ConnectionList m_outputConnections
 List of connections from material property to shader settings.
 
MaterialPropertyValue m_value
 Value for the property. The type must match the MaterialPropertyDataType.
 
AZStd::vector< AZStd::string > m_enumValues
 Only used if property is Enum type.
 
bool m_enumIsUv = false
 Indicates if the enum value should use m_enumValues or those extracted from m_uvNameMap.
 
AZStd::string m_displayName
 
AZStd::string m_description
 
AZStd::vector< AZStd::string > m_vectorLabels
 
MaterialPropertyValue m_min
 
MaterialPropertyValue m_max
 
MaterialPropertyValue m_softMin
 
MaterialPropertyValue m_softMax
 
MaterialPropertyValue m_step
 

Static Public Attributes

static const float DefaultMin
 
static const float DefaultMax
 
static const float DefaultStep
 

Friends

class JsonMaterialPropertySerializer
 

Detailed Description

Stores data that defines one material property, for use in JSON source files such as .materialtype and .materialpipeline.


The documentation for this struct was generated from the following file: