Click or drag to resize
AB4D logo

MultiMapMaterialSetTextureMap(TextureMapTypes, ShaderResourceView, 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 also set the SamplerState, you can use SetTextureMap(TextureMapTypes, ShaderResourceView, SamplerState, String) method.

Namespace: Ab3d.DirectX.Materials
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public ShaderResourceView SetTextureMap(
	TextureMapTypes mapType,
	ShaderResourceView newShaderResourceView,
	string textureResourceName = null
)

Parameters

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

Return Value

ShaderResourceView
newShaderResourceView
See Also