Struct ColorFormatConfiguration
- Namespace
- Bonsai.Shaders.Configuration
- Assembly
- Bonsai.Shaders.dll
Represents a configuration object specifying the color format of a draw buffer.
[TypeConverter(typeof(ColorFormatConfiguration.ColorFormatConfigurationConverter))]
public struct ColorFormatConfiguration
- Inherited Members
Constructors
ColorFormatConfiguration(int)
Initializes a new instance of the ColorFormatConfiguration structure using the specified total number of bits per pixel.
public ColorFormatConfiguration(int bpp)
Parameters
bpp
intThe total number of bits per pixel used by the color format.
ColorFormatConfiguration(int, int, int, int)
Initializes a new instance of the ColorFormatConfiguration structure using the specified number of bits per pixel for each channel.
public ColorFormatConfiguration(int red, int green, int blue, int alpha)
Parameters
red
intThe number of bits per pixel for the red channel.
green
intThe number of bits per pixel for the green channel.
blue
intThe number of bits per pixel for the blue channel.
alpha
intThe number of bits per pixel for the alpha channel.
Properties
Alpha
Gets or sets a value specifying the number of bits per pixel for the alpha channel.
public int Alpha { readonly get; set; }
Property Value
BitsPerPixel
Gets or sets a value specifying the total number of bits per pixel.
public int BitsPerPixel { get; set; }
Property Value
Blue
Gets or sets a value specifying the number of bits per pixel for the blue channel.
public int Blue { readonly get; set; }
Property Value
Green
Gets or sets a value specifying the number of bits per pixel for the green channel.
public int Green { readonly get; set; }
Property Value
Red
Gets or sets a value specifying the number of bits per pixel for the red channel.
public int Red { readonly get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current color format configuration.
public override string ToString()