Click or drag to resize
AB4D logo

MultiMapMaterialSetTextureMap(IMultiMapMaterial, TextureMapTypes, ShaderResourceView, SamplerState, String) Method

SetTextureMap updates existing TextureMapInfo (when TextureMapInfo with the same mapType was already added) or adds a new TextureMapInfo to the TextureMaps list. To preserve the existing SamplerState, you can use SetTextureMap(TextureMapTypes, ShaderResourceView, String) method.

Namespace: Ab3d.DirectX.Materials
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public static void SetTextureMap(
	IMultiMapMaterial multiMapMaterial,
	TextureMapTypes mapType,
	ShaderResourceView newShaderResourceView,
	SamplerState newSamplerState,
	string textureResourceName = null
)

Parameters

multiMapMaterial  IMultiMapMaterial
IMultiMapMaterial
mapType  TextureMapTypes
type of texture map - one of TextureMapTypes
newShaderResourceView  ShaderResourceView
ShaderResourceView
newSamplerState  SamplerState
SamplerState
textureResourceName  String  (Optional)
File name or resource name of the texture map (optional and can be null)

Return Value

newShaderResourceView
See Also