NAP
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
BaseMaterialInstanceResource Class Reference

#include <materialinstance.h>

Public Member Functions

rttr::property getMaterialProperty () const
 
const std::string & getMaterialPropertyName () const
 

Public Attributes

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...
 

Protected Member Functions

 BaseMaterialInstanceResource (std::string &&materialPropertyName)
 

Protected Attributes

std::string mMaterialPropertyName
 

Description

Base class of MaterialInstanceResource and ComputeMaterialInstanceResource

Inheritance diagram for BaseMaterialInstanceResource:
[legend]

Constructor & Destructor Documentation

◆ BaseMaterialInstanceResource()

BaseMaterialInstanceResource ( std::string &&  materialPropertyName)
protected

Member Function Documentation

◆ getMaterialProperty()

rttr::property getMaterialProperty ( ) const
Returns
material property

◆ getMaterialPropertyName()

const std::string& getMaterialPropertyName ( ) const
Returns
material property name

Member Data Documentation

◆ mBuffers

std::vector<ResourcePtr<BufferBinding> > mBuffers

Property: "Buffers" buffer bindings to override.

◆ mConstants

std::vector<ResourcePtr<ShaderConstant> > mConstants

Property: "Constants" shader constants to override.

◆ mMaterialPropertyName

std::string mMaterialPropertyName
protected

◆ mSamplers

std::vector<ResourcePtr<Sampler> > mSamplers

Property: "Samplers" samplers that you're overriding.

◆ mUniforms

std::vector<ResourcePtr<UniformStruct> > mUniforms

Property: "Uniforms" uniform structs to override.