Click or drag to resize
Ab4d.SharpEngine logo

VertexColorEffect Class

Inheritance Hierarchy
System.Object
  Ab4d.SharpEngine.Core.ComponentBase
    Ab4d.SharpEngine.Core.SceneComponent
      Ab4d.SharpEngine.Effects.Effect
        Ab4d.SharpEngine.Effects.CommonEffect<StandardEffectTechnique>
          Ab4d.SharpEngine.Effects.VertexColorEffect

Namespace: Ab4d.SharpEngine.Effects
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public class VertexColorEffect : CommonEffect<StandardEffectTechnique>, 
	IEffectConstructor<VertexColorEffect>

The VertexColorEffect type exposes the following members.

Methods
 NameDescription
Public methodApplyRenderingItemMaterial ApplyRenderingItemMaterial method sets the EffectTechnique, MaterialDescriptorSets and StateSortValue properties on the specified renderingItem.
(Overrides Effect.ApplyRenderingItemMaterial(RenderingItem, Material, RenderingContext))
Public methodCleanup Cleanup method checks all memory blocks. Memory block is freed when it is empty and freeEmptyMemoryBlocks is true or when it empty for at least EngineRuntimeOptions.FramesCountToReleaseEmptyMemoryBlock frames.
(Overrides Effect.Cleanup(Boolean, Boolean))
Public methodStatic memberCreateNew 
Protected methodDispose
(Overrides Effect.Dispose(Boolean))
Public methodDisposeMaterial DisposeMaterial disposes the resources that are used by the specified material. Note that this method can be called on another thread. This happens when it is called from destructor (finalizer).
(Overrides Effect.DisposeMaterial(Material))
Public methodStatic memberGetDefault 
Public methodInitializeMaterial Initializes the material with this effect. This method is called when the specified material is used for the first time. This usually assigns the buffer and an index in the buffer to the material.
(Overrides Effect.InitializeMaterial(Material))
Public methodOnEndUpdate OnEndUpdate method needs to be implemented by the effect class. The method is called from the EndUpdate() method. This method can update the material's buffers in case any of the material was changed.
(Overrides Effect.OnEndUpdate())
Protected methodOnInitializeDeviceResources Initializes resources with the specified GpuDevice. This method can be overriden and is called from InitializeDeviceResources() method.
(Overrides SceneComponent.OnInitializeDeviceResources(VulkanDevice))
Public methodResetPipelines ResetPipelines is called when RenderPass or some other property of Pipeline is changed so that existing pipelines need to be recreated.
(Overrides Effect.ResetPipelines())
Public methodUpdateMaterial UpdateMaterial method is called when the material is changed and its data need to be updated.
(Overrides Effect.UpdateMaterial(Material))
Top
Fields
See Also