RavEngine
Loading...
Searching...
No Matches
RavEngine::PBRMeshParticleRenderMaterialInstance Struct Reference
Inheritance diagram for RavEngine::PBRMeshParticleRenderMaterialInstance:
[legend]
Collaboration diagram for RavEngine::PBRMeshParticleRenderMaterialInstance:
[legend]

Public Member Functions

 PBRMeshParticleRenderMaterialInstance (Ref< PBRMeshParticleRenderMaterial > mat, Ref< MeshCollectionStatic > meshes, uint32_t bytesPerParticle, uint32_t positionOffsetBytes, uint32_t scaleOffsetBytes, uint32_t rotationOffsetBytes)
 
virtual uint8_t SetPushConstantData (std::span< std::byte, 128 > data) const
 
- Public Member Functions inherited from RavEngine::MeshParticleRenderMaterialInstance
 MeshParticleRenderMaterialInstance (const decltype(material)&mat, Ref< MeshCollectionStatic > meshes)
 
 MeshParticleRenderMaterialInstance (const decltype(material)&mat, Ref< MeshCollectionStatic > meshes, Ref< MeshParticleMeshSelectionMaterialInstance > customSelection)
 
void SetMeshSelectionFunction (const Ref< MeshParticleMeshSelectionMaterialInstance > selfn)
 
auto GetMaterial () const
 

Static Public Attributes

static constexpr uint8_t kSamplerBinding = 0
 
static constexpr uint8_t kDiffuseBinding = 1
 
static constexpr uint8_t kNormalBinding = 2
 
static constexpr uint8_t kSpecularBinding = 3
 
static constexpr uint8_t kMetallicBinding = 4
 
static constexpr uint8_t kRoughnessBinding = 5
 
static constexpr uint8_t kAOBinding = 6
 
static constexpr uint8_t kEmissiveBinding = 7
 
- Static Public Attributes inherited from RavEngine::MeshParticleRenderMaterialInstance
static constexpr uint32_t kEngineDataBinding = 21
 

Additional Inherited Members

- Public Types inherited from RavEngine::MeshParticleRenderMaterialInstance
using MaterialVariant = std::variant< Ref< MeshParticleRenderMaterial< LightingMode::Lit > >, Ref< MeshParticleRenderMaterial< LightingMode::Unlit > > >
 
- Protected Attributes inherited from RavEngine::ParticleRenderMaterialInstance
std::array< Ref< Texture >, 16 > textureBindings
 
std::bitset< 16 > samplerBindings
 

Member Function Documentation

◆ SetPushConstantData()

uint8_t RavEngine::PBRMeshParticleRenderMaterialInstance::SetPushConstantData ( std::span< std::byte, 128 >  data) const
virtual

Provide data to be uploaded to shader push constants.

Returns
Number of bytes written, 0 if there is no data to upload.

Reimplemented from RavEngine::ParticleRenderMaterialInstance.


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