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

#include <RadientMaterials.h>

Inheritance diagram for Diligent::RadientMaterialDefinitionDesc:
Diligent::RadientComputeMaterialDefinitionDesc Diligent::RadientPostProcessMaterialDefinitionDesc Diligent::RadientSurfaceMaterialDefinitionDesc

Public Attributes

RADIENT_MATERIAL_DEFINITION_TYPE Type = RADIENT_MATERIAL_DEFINITION_TYPE_COUNT
const Char * Name = nullptr
 Definition name used for diagnostics.
RadientAssetReference Reference = {}
 Optional persistent asset identity. The definition copies the URI.
Uint32 ParameterCount = 0
 Number of elements in pParameters. May be zero.
const RadientMaterialParameterDescpParameters = nullptr

Detailed Description

Immutable material definition description.

Material definitions copy the description, parameter metadata, default values, and asset reference when they are created. The description returned by IRadientMaterialDefinitionAsset::GetDesc() remains valid for the lifetime of the definition.

Member Data Documentation

◆ pParameters

const RadientMaterialParameterDesc* Diligent::RadientMaterialDefinitionDesc::pParameters = nullptr

Array of ParameterCount parameter descriptions. Parameter names must be unique within the definition. The definition copies all metadata and default values and retains default textures during creation.

◆ Type

RADIENT_MATERIAL_DEFINITION_TYPE Diligent::RadientMaterialDefinitionDesc::Type = RADIENT_MATERIAL_DEFINITION_TYPE_COUNT

Concrete definition type. The value determines the complete description type returned by IRadientMaterialDefinitionAsset::GetDesc().