Class MaterialPassResources
Resources of this material associated to 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 associated material.
Declaration
public readonly BaseMaterial Material
Field Value
Type | Description |
---|---|
BaseMaterial |
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 |
---|---|
RenderStateDescription |
ResourceLayout
Gets the resource layout associated to this technique.
Declaration
public ResourceLayout ResourceLayout { get; }
Property Value
Type | Description |
---|---|
ResourceLayout |
ResourceSet
Gets the global resource set of this material pass resources.
Declaration
public ResourceSet ResourceSet { get; }
Property Value
Type | Description |
---|---|
ResourceSet |
Methods
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
DisposePendingResources()
Dispose 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 info. |
Returns
Type | Description |
---|---|
GraphicsResourceUsage | 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 |
---|---|---|
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 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 |
---|---|
EventHandler |