One |
public class OnePixelTexture : SharedDXDeviceResource
The OnePixelTexture type exposes the following members.
Name | Description | |
---|---|---|
OnePixelTexture(Color4, DXDevice, String) | Constructor with default texture format (B8G8R8A8_UNorm) | |
OnePixelTexture(Color4, Format, DXDevice, String) | Constructor |
Name | Description | |
---|---|---|
PixelColor | Gets or sets the Color4 of the pixel. When setting the color, it is converted into BGRA byte values and written to texture memory. | |
ShaderResourceView | Gets the ShaderResourceView that represents a CubeMap and can be used in DirectX. |
Name | Description | |
---|---|---|
CreateOnePixelTexture | CreateOnePixelTexture creates a 1 x 1 texture with the specified color (color is converted into BGRA byte values) and returns the texture as ShaderResourceView. |