ezEngine Release 26.3
Loading...
Searching...
No Matches
ezMaterialResourceDescriptor Struct Reference

#include <MaterialResource.h>

Classes

struct  Parameter
 A shader parameter name-value pair. More...
 
struct  Texture2DBinding
 A 2D texture binding. More...
 
struct  TextureCubeBinding
 A cube texture binding. More...
 

Public Member Functions

void Clear ()
 
bool operator== (const ezMaterialResourceDescriptor &other) const
 
EZ_FORCE_INLINE bool operator!= (const ezMaterialResourceDescriptor &other) const
 

Public Attributes

ezMaterialResourceHandle m_hBaseMaterial
 Base material to inherit from (optional).
 
ezHashedString m_sSurface
 Surface type for physics/collision properties.
 
ezShaderResourceHandle m_hShader
 Shader used for rendering.
 
ezDynamicArray< ezPermutationVarm_PermutationVars
 Shader permutation variable values.
 
ezDynamicArray< Parameterm_Parameters
 Shader constant parameters.
 
ezDynamicArray< Texture2DBindingm_Texture2DBindings
 2D texture bindings.
 
ezDynamicArray< TextureCubeBindingm_TextureCubeBindings
 Cube texture bindings.
 
ezRenderData::Category m_RenderDataCategory
 Render data category (opaque, transparent, etc.).
 

Detailed Description

Descriptor for creating material resources.

Materials can inherit from a base material and override shader, parameters, and textures. Supports shader permutation variables, numeric/color parameters, and 2D/cube texture bindings.


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