|
WpfMaterialLoadTexture2D(DXDevice, String, TextureInfo) Method |
Namespace: Ab3d.DirectX.MaterialsAssembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.1.9105.2048
Syntax public static ShaderResourceView LoadTexture2D(
DXDevice dxDevice,
string fileName,
out TextureInfo textureInfo
)
Parameters
- dxDevice DXDevice
- DXDevice used to create the texture
- fileName String
- file name of the texture
- textureInfo TextureInfo
- TextureInfo class that provides information about the loaded bitmap
Return Value
ShaderResourceViewShaderResourceView for the loaded 2D Texture or null if the texture cannot be created.
See Also