Class MaterialPassResourceSet
Manage a ResourceSet.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class MaterialPassResourceSet : DisposableObject, IDisposable
Constructors
MaterialPassResourceSet(DrawContextMaterialResources, MaterialPassResources)
Initializes a new instance of the MaterialPassResourceSet class.
Declaration
public MaterialPassResourceSet(DrawContextMaterialResources drawContextMaterialResources, MaterialPassResources materialPassResources)
Parameters
Type | Name | Description |
---|---|---|
DrawContextMaterialResources | drawContextMaterialResources | The associated Material resources. |
MaterialPassResources | materialPassResources | The material pass resources. |
MaterialPassResourceSet(MaterialPassResources)
Initializes a new instance of the MaterialPassResourceSet class.
Declaration
public MaterialPassResourceSet(MaterialPassResources materialPassResources)
Parameters
Type | Name | Description |
---|---|---|
MaterialPassResources | materialPassResources | The material pass resources. |
Fields
DrawContextMaterialResources
Draw material resources.
Declaration
public readonly DrawContextMaterialResources DrawContextMaterialResources
Field Value
Type | Description |
---|---|
DrawContextMaterialResources |
Properties
ReferenceCount
Gets the number of references pointing to this effect entry.
Declaration
public uint ReferenceCount { get; }
Property Value
Type | Description |
---|---|
uint |
ResourceSet
Gets the resource set of this pass.
Declaration
public ResourceSet ResourceSet { get; }
Property Value
Type | Description |
---|---|
ResourceSet |
Methods
AddReference()
Increase a reference to this effect entry.
Declaration
public void AddReference()
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
MakeResourceSetDirty()
Make the resource set of this technique dirty.
Declaration
public void MakeResourceSetDirty()
RemoveReference()
Remove a refernece of this effect entry.
Declaration
public void RemoveReference()
Events
ResourceSetChanged
Event fired when material resource set is changed.
Declaration
public event EventHandler ResourceSetChanged
Event Type
Type | Description |
---|---|
EventHandler |