Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientMaterialParameterDesc Struct Reference

Material parameter metadata and default value. More...

#include <RadientMaterials.h>

Public Attributes

const Char * Name = nullptr
 Parameter name used for authoring and reflection.
RADIENT_MATERIAL_PARAMETER_TYPE Type = RADIENT_MATERIAL_PARAMETER_TYPE_UNKNOWN
 Parameter type.
Uint32 ArraySize = 1
 Number of values or textures in the parameter array. Must not be zero.
const void * pDefaultValue = nullptr
IRadientTextureAssetpDefaultTexture = nullptr

Detailed Description

Material parameter metadata and default value.

Member Data Documentation

◆ pDefaultTexture

IRadientTextureAsset* Diligent::RadientMaterialParameterDesc::pDefaultTexture = nullptr

Optional default texture. This field is only used by texture parameters with ArraySize equal to one. Texture arrays default to null entries.

◆ pDefaultValue

const void* Diligent::RadientMaterialParameterDesc::pDefaultValue = nullptr

Optional default value for scalar, vector, and matrix parameters. The data must contain ArraySize consecutive values in the native representation specified by Type. The definition copies the complete value array during creation. A null pointer initializes all bytes to zero.