Class MaterialResourceSetters
Material Resource setters collection.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class MaterialResourceSetters
  Fields
cBufferSetters
Setters Collection.
Declaration
public CBufferEngineData[] cBufferSetters
  Field Value
| Type | Description | 
|---|---|
| CBufferEngineData[] | 
textureInfoSetter
Texture info collection.
Declaration
public TextureInfo[] textureInfoSetter
  Field Value
| Type | Description | 
|---|---|
| TextureInfo[] | 
Methods
SetAutoTextures(IEngineShaderParameters, BaseMaterial)
Set texture resources too the material.
Declaration
public void SetAutoTextures(IEngineShaderParameters shaderParameters, BaseMaterial material)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEngineShaderParameters | shaderParameters | Th shader parameters.  | 
      
| BaseMaterial | material | The material to set resources.  | 
      
SetAutoTextures(IEngineShaderParameters, TextureSlot[])
Set texture resources too the material.
Declaration
public bool SetAutoTextures(IEngineShaderParameters shaderParameters, TextureSlot[] textureSlots)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEngineShaderParameters | shaderParameters | Th shader parameters.  | 
      
| TextureSlot[] | textureSlots | The material to set resources.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | true if some texture has changed.  | 
      
SetCBufferResources(IEngineShaderParameters, BaseMaterial, uint[])
Set constant buffer parameters to the specified material.
Declaration
public void SetCBufferResources(IEngineShaderParameters shaderParameters, BaseMaterial material, uint[] dynamicConstantBufferOffsets = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEngineShaderParameters | shaderParameters | The shader parameters.  | 
      
| BaseMaterial | material | The material to set resources.  | 
      
| uint[] | dynamicConstantBufferOffsets | The dynamic offsets.  | 
      
SetResources(UpdatePolicy, IEngineShaderParameters, BaseMaterial, uint[])
Set resources to the specified material.
Declaration
public void SetResources(UpdatePolicy updatePolicies, IEngineShaderParameters shaderParameters, BaseMaterial material, uint[] dynamicConstantBufferOffsets = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| UpdatePolicy | updatePolicies | The update policy.  | 
      
| IEngineShaderParameters | shaderParameters | Th shader parameters.  | 
      
| BaseMaterial | material | The material to set resources.  | 
      
| uint[] | dynamicConstantBufferOffsets | The dynamic offsets.  | 
      
SetResources(IEngineShaderParameters, BaseMaterial, uint[])
Set resources to the specified material.
Declaration
public void SetResources(IEngineShaderParameters shaderParameters, BaseMaterial material, uint[] dynamicConstantBufferOffsets = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IEngineShaderParameters | shaderParameters | Th shader parameters.  | 
      
| BaseMaterial | material | The material to set resources.  | 
      
| uint[] | dynamicConstantBufferOffsets | The dynamic offsets.  |