Enum nx::gpu::ColorFormat
source · [−]#[repr(u64)]
pub enum ColorFormat {
Show 230 variants
Unspecified,
NonColor8,
NonColor16,
NonColor24,
NonColor32,
X4C4,
A4L4,
A8L8,
Float_A16L16,
A1B5G5R5,
A4B4G4R4,
A5B5G5R1,
A2B10G10R10,
A8B8G8R8,
A16B16G16R16,
Float_A16B16G16R16,
A1R5G5B5,
A4R4G4B4,
A5R1G5B5,
A2R10G10B10,
A8R8G8B8,
A1,
A2,
A4,
A8,
A16,
A32,
Float_A16,
L4A4,
L8A8,
B4G4R4A4,
B5G5R1A5,
B5G5R5A1,
B8G8R8A8,
B10G10R10A2,
R1G5B5A5,
R4G4B4A4,
R5G5B5A1,
R8G8B8A8,
R10G10B10A2,
L1,
L2,
L4,
L8,
L16,
L32,
Float_L16,
B5G6R5,
B6G5R5,
B5G5R5X1,
B8_G8_R8,
B8G8R8X8,
Float_B10G11R11,
X1B5G5R5,
X8B8G8R8,
X16B16G16R16,
Float_X16B16G16R16,
R3G3B2,
R5G5B6,
R5G6B5,
R5G5B5X1,
R8_G8_B8,
R8G8B8X8,
X1R5G5B5,
X8R8G8B8,
RG8,
R16G16,
Float_R16G16,
R8,
R16,
Float_R16,
A2B10G10R10_sRGB,
A8B8G8R8_sRGB,
A16B16G16R16_sRGB,
A2R10G10B10_sRGB,
B10G10R10A2_sRGB,
R10G10B10A2_sRGB,
X8B8G8R8_sRGB,
X16B16G16R16_sRGB,
A2B10G10R10_709,
A8B8G8R8_709,
A16B16G16R16_709,
A2R10G10B10_709,
B10G10R10A2_709,
R10G10B10A2_709,
X8B8G8R8_709,
X16B16G16R16_709,
A2B10G10R10_709_Linear,
A8B8G8R8_709_Linear,
A16B16G16R16_709_Linear,
A2R10G10B10_709_Linear,
B10G10R10A2_709_Linear,
R10G10B10A2_709_Linear,
X8B8G8R8_709_Linear,
X16B16G16R16_709_Linear,
Float_A16B16G16R16_scRGB_Linear,
A2B10G10R10_2020,
A8B8G8R8_2020,
A16B16G16R16_2020,
A2R10G10B10_2020,
B10G10R10A2_2020,
R10G10B10A2_2020,
X8B8G8R8_2020,
X16B16G16R16_2020,
A2B10G10R10_2020_Linear,
A8B8G8R8_2020_Linear,
A16B16G16R16_2020_Linear,
Float_A16B16G16R16_2020_Linear,
A2R10G10B10_2020_Linear,
B10G10R10A2_2020_Linear,
R10G10B10A2_2020_Linear,
X8B8G8R8_2020_Linear,
X16B16G16R16_2020_Linear,
Float_A16B16G16R16_2020_PQ,
A4I4,
A8I8,
I4A4,
I8A8,
I1,
I2,
I4,
I8,
A8Y8U8V8,
A16Y16U16V16,
Y8U8V8A8,
V8_U8,
V8U8,
V10U10,
V12U12,
V8,
V10,
V12,
U8_V8,
U8V8,
U10V10,
U12V12,
U8,
U10,
U12,
Y8,
Y10,
Y12,
YVYU,
VYUY,
YUYV,
UYVY,
Y8_U8_V8,
V8_U8_RR,
V8U8_RR,
V8_RR,
U8_V8_RR,
U8V8_RR,
U8_RR,
Y8_RR,
V8_U8_ER,
V8U8_ER,
V8_ER,
U8_V8_ER,
U8V8_ER,
U8_ER,
Y8_ER,
V8_U8_709,
V8U8_709,
V10U10_709,
V12U12_709,
V8_709,
V10_709,
V12_709,
U8_V8_709,
U8V8_709,
U10V10_709,
U12V12_709,
U8_709,
U10_709,
U12_709,
Y8_709,
Y10_709,
Y12_709,
V8_U8_709_ER,
V8U8_709_ER,
V10U10_709_ER,
V12U12_709_ER,
V8_709_ER,
V10_709_ER,
V12_709_ER,
U8_V8_709_ER,
U8V8_709_ER,
U10V10_709_ER,
U12V12_709_ER,
U8_709_ER,
U10_709_ER,
U12_709_ER,
Y8_709_ER,
Y10_709_ER,
Y12_709_ER,
V10U10_2020,
V12U12_2020,
V10_2020,
V12_2020,
U10V10_2020,
U12V12_2020,
U10_2020,
U12_2020,
Y10_2020,
Y12_2020,
Bayer8RGGB,
Bayer16RGGB,
BayerS16RGGB,
X2Bayer14RGGB,
X4Bayer12RGGB,
X6Bayer10RGGB,
Bayer8BGGR,
Bayer16BGGR,
BayerS16BGGR,
X2Bayer14BGGR,
X4Bayer12BGGR,
X6Bayer10BGGR,
Bayer8GRBG,
Bayer16GRBG,
BayerS16GRBG,
X2Bayer14GRBG,
X4Bayer12GRBG,
X6Bayer10GRBG,
Bayer8GBRG,
Bayer16GBRG,
BayerS16GBRG,
X2Bayer14GBRG,
X4Bayer12GBRG,
X6Bayer10GBRG,
XYZ,
}
Variants
Unspecified
NonColor8
NonColor16
NonColor24
NonColor32
X4C4
A4L4
A8L8
Float_A16L16
A1B5G5R5
A4B4G4R4
A5B5G5R1
A2B10G10R10
A8B8G8R8
A16B16G16R16
Float_A16B16G16R16
A1R5G5B5
A4R4G4B4
A5R1G5B5
A2R10G10B10
A8R8G8B8
A1
A2
A4
A8
A16
A32
Float_A16
L4A4
L8A8
B4G4R4A4
B5G5R1A5
B5G5R5A1
B8G8R8A8
B10G10R10A2
R1G5B5A5
R4G4B4A4
R5G5B5A1
R8G8B8A8
R10G10B10A2
L1
L2
L4
L8
L16
L32
Float_L16
B5G6R5
B6G5R5
B5G5R5X1
B8_G8_R8
B8G8R8X8
Float_B10G11R11
X1B5G5R5
X8B8G8R8
X16B16G16R16
Float_X16B16G16R16
R3G3B2
R5G5B6
R5G6B5
R5G5B5X1
R8_G8_B8
R8G8B8X8
X1R5G5B5
X8R8G8B8
RG8
R16G16
Float_R16G16
R8
R16
Float_R16
A2B10G10R10_sRGB
A8B8G8R8_sRGB
A16B16G16R16_sRGB
A2R10G10B10_sRGB
B10G10R10A2_sRGB
R10G10B10A2_sRGB
X8B8G8R8_sRGB
X16B16G16R16_sRGB
A2B10G10R10_709
A8B8G8R8_709
A16B16G16R16_709
A2R10G10B10_709
B10G10R10A2_709
R10G10B10A2_709
X8B8G8R8_709
X16B16G16R16_709
A2B10G10R10_709_Linear
A8B8G8R8_709_Linear
A16B16G16R16_709_Linear
A2R10G10B10_709_Linear
B10G10R10A2_709_Linear
R10G10B10A2_709_Linear
X8B8G8R8_709_Linear
X16B16G16R16_709_Linear
Float_A16B16G16R16_scRGB_Linear
A2B10G10R10_2020
A8B8G8R8_2020
A16B16G16R16_2020
A2R10G10B10_2020
B10G10R10A2_2020
R10G10B10A2_2020
X8B8G8R8_2020
X16B16G16R16_2020
A2B10G10R10_2020_Linear
A8B8G8R8_2020_Linear
A16B16G16R16_2020_Linear
Float_A16B16G16R16_2020_Linear
A2R10G10B10_2020_Linear
B10G10R10A2_2020_Linear
R10G10B10A2_2020_Linear
X8B8G8R8_2020_Linear
X16B16G16R16_2020_Linear
Float_A16B16G16R16_2020_PQ
A4I4
A8I8
I4A4
I8A8
I1
I2
I4
I8
A8Y8U8V8
A16Y16U16V16
Y8U8V8A8
V8_U8
V8U8
V10U10
V12U12
V8
V10
V12
U8_V8
U8V8
U10V10
U12V12
U8
U10
U12
Y8
Y10
Y12
YVYU
VYUY
YUYV
UYVY
Y8_U8_V8
V8_U8_RR
V8U8_RR
V8_RR
U8_V8_RR
U8V8_RR
U8_RR
Y8_RR
V8_U8_ER
V8U8_ER
V8_ER
U8_V8_ER
U8V8_ER
U8_ER
Y8_ER
V8_U8_709
V8U8_709
V10U10_709
V12U12_709
V8_709
V10_709
V12_709
U8_V8_709
U8V8_709
U10V10_709
U12V12_709
U8_709
U10_709
U12_709
Y8_709
Y10_709
Y12_709
V8_U8_709_ER
V8U8_709_ER
V10U10_709_ER
V12U12_709_ER
V8_709_ER
V10_709_ER
V12_709_ER
U8_V8_709_ER
U8V8_709_ER
U10V10_709_ER
U12V12_709_ER
U8_709_ER
U10_709_ER
U12_709_ER
Y8_709_ER
Y10_709_ER
Y12_709_ER
V10U10_2020
V12U12_2020
V10_2020
V12_2020
U10V10_2020
U12V12_2020
U10_2020
U12_2020
Y10_2020
Y12_2020
Bayer8RGGB
Bayer16RGGB
BayerS16RGGB
X2Bayer14RGGB
X4Bayer12RGGB
X6Bayer10RGGB
Bayer8BGGR
Bayer16BGGR
BayerS16BGGR
X2Bayer14BGGR
X4Bayer12BGGR
X6Bayer10BGGR
Bayer8GRBG
Bayer16GRBG
BayerS16GRBG
X2Bayer14GRBG
X4Bayer12GRBG
X6Bayer10GRBG
Bayer8GBRG
Bayer16GBRG
BayerS16GBRG
X2Bayer14GBRG
X4Bayer12GBRG
X6Bayer10GBRG
XYZ
Trait Implementations
sourceimpl Clone for ColorFormat
impl Clone for ColorFormat
sourcefn clone(&self) -> ColorFormat
fn clone(&self) -> ColorFormat
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColorFormat
impl Debug for ColorFormat
sourceimpl Default for ColorFormat
impl Default for ColorFormat
sourcefn default() -> ColorFormat
fn default() -> ColorFormat
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ColorFormat> for ColorFormat
impl PartialEq<ColorFormat> for ColorFormat
sourcefn eq(&self, other: &ColorFormat) -> bool
fn eq(&self, other: &ColorFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
1.0.0fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Copy for ColorFormat
impl Eq for ColorFormat
impl StructuralEq for ColorFormat
impl StructuralPartialEq for ColorFormat
Auto Trait Implementations
impl RefUnwindSafe for ColorFormat
impl Send for ColorFormat
impl Sync for ColorFormat
impl Unpin for ColorFormat
impl UnwindSafe for ColorFormat
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RequestCommandParameter for T where
T: Copy,
impl<T> RequestCommandParameter for T where
T: Copy,
default fn before_request_write(
_raw: &T,
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<(), ResultCode>
default fn before_send_sync_request(
raw: &T,
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<(), ResultCode>
sourceimpl<T> RequestCommandParameter<T> for T where
T: Copy,
impl<T> RequestCommandParameter<T> for T where
T: Copy,
default fn after_request_read(
ctx: &mut ServerContext<'_>
) -> Result<T, ResultCode>
sourceimpl<T> ResponseCommandParameter for T where
T: Copy,
impl<T> ResponseCommandParameter for T where
T: Copy,
default fn before_response_write(
_raw: &T,
ctx: &mut ServerContext<'_>
) -> Result<(), ResultCode>
default fn after_response_write(
raw: &T,
ctx: &mut ServerContext<'_>
) -> Result<(), ResultCode>
sourceimpl<T> ResponseCommandParameter<T> for T where
T: Copy,
impl<T> ResponseCommandParameter<T> for T where
T: Copy,
default fn after_response_read(
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<T, ResultCode>
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more