VenomEngine
Cross-Platform Modern Graphics Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages Concepts
venom::vulkan::VulkanLight Class Reference
+ Inheritance diagram for venom::vulkan::VulkanLight:

Public Member Functions

const vc::Vector< Framebuffer > & GetShadowMapFramebuffers (const int frameIndex, const int cascadeIndex) const
 
const DescriptorSetGetShadowMapDescriptorSet ()
 
- Public Member Functions inherited from venom::common::LightImpl
vc::Error SetType (const LightType type)
 
const LightType & GetLightType () const
 
void SetColor (const vcm::Vec3 &color)
 
const vcm::Vec3 & GetColor () const
 
void SetIntensity (const float intensity)
 
const float & GetIntensity () const
 
float * GetIntensityPtr ()
 
void SetAngle (const float angle)
 
const float & GetAngle () const
 
LightShaderStruct GetShaderStruct () const
 
vc::Error Reinit ()
 
LightCascadedShadowMapConstantsStruct GetShadowMapConstantsStruct (const int cascadeIndex, const int faceIndex, Camera *const camera, vcm::Vec3 *lightPos) const
 
int GetCascadeIndex (Camera *const camera)
 
int GetLightIndexPerType () const
 
vcm::Vec3 GetDirection () const
 
- Public Member Functions inherited from venom::common::PluginObjectImpl
template<class T>
T * As ()
 
template<class T>
const T * As () const
 
template<class T>
T * ConstAs () const
 
template<class T>
T * RAs ()
 
template<class T>
const T * RAs () const
 
void IncRefCount ()
 
void DecRefCount ()
 
- Public Member Functions inherited from venom::common::GraphicsPluginObject
virtual void Destroy () override
 /!\ THIS FUNCTION MUST BE CALLED FOR DESTRUCTION, DO NOT USE delete
 
- Public Member Functions inherited from venom::common::PluginObject
 PluginObject (const PluginType type)
 
PluginType GetType () const override
 
template<class T>
T * DAs ()
 
template<class T>
const T * DAs () const
 

Protected Member Functions

vc::Error _SetType (const vc::LightType type) override
 
void _SetDescriptorsFromCascade (const int cascadeIndex) override
 

Additional Inherited Members

- Static Public Member Functions inherited from venom::common::GraphicsPluginObject
static bool HasCachedObject (const vc::String &path)
 Checks if an object is in the cache.
 
static SPtr< GraphicsCachedResourceGetCachedObject (const vc::String &path)
 Gets a cached object from the graphics cache.
 
static const vc::UMap< vc::String, vc::SPtr< GraphicsCachedResource > > & GetCachedObjects ()
 Gets all cached objects.
 
- Static Protected Member Functions inherited from venom::common::GraphicsPluginObject
static void _SetInCache (const vc::String &path, const SPtr< GraphicsCachedResource > &object)
 Sets an object in the cache.
 
static void _SetCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 
static void _AddCacheSize (size_t size)
 Adds cache size to avoid unnecessary additional allocations.
 
- Protected Attributes inherited from venom::common::LightImpl
int _lightIndexPerType
 

Member Function Documentation

◆ _SetDescriptorsFromCascade()

void venom::vulkan::VulkanLight::_SetDescriptorsFromCascade ( const int cascadeIndex)
overrideprotectedvirtual

◆ _SetType()

vc::Error venom::vulkan::VulkanLight::_SetType ( const vc::LightType type)
overrideprotectedvirtual

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