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

#include <RadientMaterials.h>

Public Member Functions

 operator bool () const
 Returns true if the handle is initialized.
bool operator== (const RadientMaterialParameterHandle &Rhs) const
 Compares two parameter handles.
bool operator!= (const RadientMaterialParameterHandle &Rhs) const
 Compares two parameter handles.

Public Attributes

RadientHandle Definition = InvalidRadientHandle
Uint32 Index = ~Uint32{0}
Uint32 Reserved = 0
 Reserved for future use. Must be zero.

Detailed Description

Opaque parameter handle resolved by a material definition.

A handle is only valid for the definition that created it. Applications should resolve handles once and use them for runtime updates instead of repeatedly looking parameters up by name.

Member Data Documentation

◆ Definition

RadientHandle Diligent::RadientMaterialParameterHandle::Definition = InvalidRadientHandle

Opaque identity of the material definition that created the handle. Applications must not modify this value.

◆ Index

Uint32 Diligent::RadientMaterialParameterHandle::Index = ~Uint32{0}

Zero-based parameter index in the originating definition. Applications must not modify this value.