NAP
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MaterialInstanceResource Class Reference

#include <materialinstance.h>

Public Member Functions

 MaterialInstanceResource ()
 
- Public Member Functions inherited from BaseMaterialInstanceResource
rttr::property getMaterialProperty () const
 
const std::string & getMaterialPropertyName () const
 

Public Attributes

ResourcePtr< MaterialmMaterial
 Property: "Material" Source material. More...
 
EBlendMode mBlendMode = EBlendMode::NotSet
 Property: "BlendMode" Blend mode override. Uses source material blend mode by default. More...
 
EDepthMode mDepthMode = EDepthMode::NotSet
 Property: "DepthMode" Depth mode override. Uses source material depth mode by default. More...
 
- Public Attributes inherited from BaseMaterialInstanceResource
std::vector< ResourcePtr< UniformStruct > > mUniforms
 Property: "Uniforms" uniform structs to override. More...
 
std::vector< ResourcePtr< Sampler > > mSamplers
 Property: "Samplers" samplers that you're overriding. More...
 
std::vector< ResourcePtr< BufferBinding > > mBuffers
 Property: "Buffers" buffer bindings to override. More...
 
std::vector< ResourcePtr< ShaderConstant > > mConstants
 Property: "Constants" shader constants to override. More...
 

Static Public Attributes

static constexpr const char * matProperty = "Material"
 

Additional Inherited Members

- Protected Member Functions inherited from BaseMaterialInstanceResource
 BaseMaterialInstanceResource (std::string &&materialPropertyName)
 
- Protected Attributes inherited from BaseMaterialInstanceResource
std::string mMaterialPropertyName
 

Description

MaterialInstanceResource is the 'resource' or 'data' counterpart of MaterialInstance, intended to be used as fields in ComponentResources. The object must be passed to MaterialInstance's init() function.

Inheritance diagram for MaterialInstanceResource:
[legend]
Collaboration diagram for MaterialInstanceResource:
[legend]

Constructor & Destructor Documentation

◆ MaterialInstanceResource()

Member Data Documentation

◆ matProperty

constexpr const char* matProperty = "Material"
staticconstexpr

◆ mBlendMode

Property: "BlendMode" Blend mode override. Uses source material blend mode by default.

◆ mDepthMode

Property: "DepthMode" Depth mode override. Uses source material depth mode by default.

◆ mMaterial

ResourcePtr<Material> mMaterial

Property: "Material" Source material.