Class MaterialPassResources
Resources of this material are associated with a material pass.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class MaterialPassResources : DisposableObject
Constructors
MaterialPassResources(BaseMaterial, string[], string)
Initializes a new instance of the MaterialPassResources class.
Declaration
public MaterialPassResources(BaseMaterial material, string[] activeDirectives, string passName)
Parameters
Type | Name | Description |
---|---|---|
BaseMaterial | material | The material. |
string[] | activeDirectives | The active directives. |
string | passName | The pass name. |
Fields
ActiveDirectives
The active directives.
Declaration
public readonly string[] ActiveDirectives
Field Value
Type | Description |
---|---|
string[] |
EffectTechnique
The effect technique.
Declaration
public readonly EffectTechnique EffectTechnique
Field Value
Type | Description |
---|---|
EffectTechnique |
Material
The related material.
Declaration
public readonly BaseMaterial Material
Field Value
Type | Description |
---|---|
BaseMaterial |
PassName
The name of the pass.
Declaration
public readonly string PassName
Field Value
Type | Description |
---|---|
string |
Properties
RenderStates
Gets the combination of RenderStates between Material and Effect pass.
Declaration
public RenderStateDescription RenderStates { get; }
Property Value
Type | Description |
---|---|
RenderStateDescription |
ResourceLayout
Gets the resource layout associated with this technique.
Declaration
public ResourceLayout ResourceLayout { get; }
Property Value
Type | Description |
---|---|
ResourceLayout |
ResourceSet
Gets the global resource set for this material pass's resources.
Declaration
public ResourceSet ResourceSet { get; }
Property Value
Type | Description |
---|---|
ResourceSet |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
DisposePendingResources()
Disposes of pending resources.
Declaration
public void DisposePendingResources()
FindResourceUsage(GraphicsResourceInfo)
Gets the resource usage of the specified resource.
Declaration
public GraphicsResourceUsage FindResourceUsage(GraphicsResourceInfo info)
Parameters
Type | Name | Description |
---|---|---|
GraphicsResourceInfo | info | The resource information. |
Returns
Type | Description |
---|---|
GraphicsResourceUsage | The resource usage. |
FireResourceSetchanged()
Mark the resource set of this technique as dirty.
Declaration
public void FireResourceSetchanged()
UpdateCBufferSetters(MaterialResourceSetters)
Updates the specified material setters with this technique.
Declaration
public void UpdateCBufferSetters(MaterialResourceSetters materialSetters)
Parameters
Type | Name | Description |
---|---|---|
MaterialResourceSetters | materialSetters | The material setter to update. |
UpdateMaterialSetters(MaterialResourceSetters, bool, bool)
Update the specified material setters with this technique.
Declaration
public void UpdateMaterialSetters(MaterialResourceSetters materialSetters, bool cbuferSetters = true, bool textureSetters = true)
Parameters
Type | Name | Description |
---|---|---|
MaterialResourceSetters | materialSetters | The material setters to update. |
bool | cbuferSetters | Update constant buffer setters. |
bool | textureSetters | Update texture setters. |
Events
ResourceSetChanged
Event fired when the material resource set is changed.
Declaration
public event EventHandler ResourceSetChanged
Event Type
Type | Description |
---|---|
EventHandler |