Hide members from editors.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
namespace Dashboard
|
namespace Dashboard
|
||||||
@@ -7,7 +7,7 @@ namespace Dashboard
|
|||||||
/// Pixel format for images.
|
/// Pixel format for images.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum PixelFormat
|
public enum PixelFormat : byte
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
||||||
@@ -20,58 +20,67 @@ namespace Dashboard
|
|||||||
Rgb16F = Rgb | F16,
|
Rgb16F = Rgb | F16,
|
||||||
Rgba16F = Rgba | F16,
|
Rgba16F = Rgba | F16,
|
||||||
|
|
||||||
// Channels
|
// Channels (hide these from editors)
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
R = 0x01,
|
R = 0x01,
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
Rg = 0x02,
|
Rg = 0x02,
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
Rgb = 0x03,
|
Rgb = 0x03,
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
Rgba = 0x04,
|
Rgba = 0x04,
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
A = 0x05,
|
A = 0x05,
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
ColorMask = 0x0F,
|
ColorMask = 0x0F,
|
||||||
|
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
I8 = 0x10,
|
I8 = 0x10,
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
F16 = 0x20,
|
F16 = 0x20,
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||||
TypeMask = 0xF0,
|
TypeMask = 0xF0,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color channels for images.
|
/// Color channels for images.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum ColorChannel
|
public enum ColorChannel : byte
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// An invalid swizzle mask.
|
||||||
|
/// </summary>
|
||||||
|
Unknown = 0b00000,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The zero channel. Used for swizzle masks.
|
/// The zero channel. Used for swizzle masks.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Zero = 0,
|
Zero = 0b10000,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The one channel. Used for swizzle masks.
|
/// The one channel. Used for swizzle masks.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
One = 1,
|
One = 0b11110,
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// An invalid swizzle mask.
|
|
||||||
/// </summary>
|
|
||||||
Unknown = 2,
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The red channel.
|
/// The red channel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Red = 4,
|
Red = 0b11000,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The green channel.
|
/// The green channel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Green = 5,
|
Green = 0b10100,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The blue channel.
|
/// The blue channel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Blue = 6,
|
Blue = 0b10010,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The alpha channel.
|
/// The alpha channel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Alpha = 7,
|
Alpha = 0b10001,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
|
using System.ComponentModel;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Dashboard.Layout;
|
using Dashboard.Layout;
|
||||||
|
|
||||||
namespace Dashboard
|
namespace Dashboard
|
||||||
{
|
{
|
||||||
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
public static class LayoutExtensions
|
public static class LayoutExtensions
|
||||||
{
|
{
|
||||||
extension<T>(T item)
|
extension<T>(T item)
|
||||||
|
|||||||
Reference in New Issue
Block a user