|
TextureLoaderCreateOnePixelTexture Method |
CreateOnePixelTexture creates a 1 x 1 texture with the specified color (color is converted into BGRA byte values) and returns the texture as ShaderResourceView.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax public static ShaderResourceView CreateOnePixelTexture(
Device device,
Color4 color,
Format dxgiFormat = Format.B8G8R8A8_UNorm
)
Parameters
- device Device
- DirectX 11 device
- color Color4
- color as Color4
- dxgiFormat Format (Optional)
- optional texture format (B8G8R8A8_UNorm by default)
Return Value
ShaderResourceViewShaderResourceView for a 1x1 texture with specified color
See Also