Class MaterialPassResourceSet
Manages a ResourceSet.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class MaterialPassResourceSet : DisposableObject
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
Draws 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 for this pass.
Declaration
public ResourceSet ResourceSet { get; }
Property Value
Type | Description |
---|---|
ResourceSet |
Methods
AddReference()
Increases the reference count for this effect entry.
Declaration
public void AddReference()
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
MakeResourceSetDirty()
Marks the resource set of this technique as dirty.
Declaration
public void MakeResourceSetDirty()
RemoveReference()
Removes a reference to this effect entry.
Declaration
public void RemoveReference()
Events
ResourceSetChanged
Event fired when the material resource set is changed.
Declaration
public event EventHandler ResourceSetChanged
Event Type
Type | Description |
---|---|
EventHandler |