Class MaterialPassResources
Resources of this material associated to a material pass.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class MaterialPassResources : DisposableObject, IDisposable
Constructors
MaterialPassResources(BaseMaterial, string[], string)
Initializes a new instance of the Material
Declaration
public MaterialPassResources(BaseMaterial material, string[] activeDirectives, string passName)
Parameters
Type | Name | Description |
---|---|---|
Base |
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 |
---|---|
Effect |
Material
The associated material.
Declaration
public readonly BaseMaterial Material
Field Value
Type | Description |
---|---|
Base |
PassName
The pass name.
Declaration
public readonly string PassName
Field Value
Type | Description |
---|---|
string |
Properties
RenderStates
Gets the RenderStates combination between Material and Effect pass.
Declaration
public RenderStateDescription RenderStates { get; }
Property Value
Type | Description |
---|---|
Render |
ResourceLayout
Gets the resource layout associated to this technique.
Declaration
public ResourceLayout ResourceLayout { get; }
Property Value
Type | Description |
---|---|
Resource |
ResourceSet
Gets the global resource set of this material pass resources.
Declaration
public ResourceSet ResourceSet { get; }
Property Value
Type | Description |
---|---|
Resource |
Methods
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
FindResourceUsage(GraphicsResourceInfo)
Gets the resource usage of the specified resource.
Declaration
public GraphicsResourceUsage FindResourceUsage(GraphicsResourceInfo info)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
info | The resource info. |
Returns
Type | Description |
---|---|
Graphics |
The resource usage. |
FireResourceSetchanged()
Make the resource set of this technique dirty.
Declaration
public void FireResourceSetchanged()
UpdateCBufferSetters(MaterialResourceSetters)
Update the specified material setters with this technique.
Declaration
public void UpdateCBufferSetters(MaterialResourceSetters materialSetters)
Parameters
Type | Name | Description |
---|---|---|
Material |
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 |
---|---|---|
Material |
materialSetters | The material setter to update. |
bool | cbuferSetters | Update Constant Buffer setters. |
bool | textureSetters | Update Texturesetters. |
Events
ResourceSetChanged
Event fired when material resource set is changed.
Declaration
public event EventHandler ResourceSetChanged
Event Type
Type | Description |
---|---|
Event |