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

#include <materialinstance.h>

Public Member Functions

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

Public Attributes

ResourcePtr< ComputeMaterialmComputeMaterial
 Property: "ComputeMaterial" source material. 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 = "ComputeMaterial"
 

Additional Inherited Members

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

Description

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

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

Constructor & Destructor Documentation

◆ ComputeMaterialInstanceResource()

Member Data Documentation

◆ matProperty

constexpr const char* matProperty = "ComputeMaterial"
staticconstexpr

◆ mComputeMaterial

ResourcePtr<ComputeMaterial> mComputeMaterial

Property: "ComputeMaterial" source material.