mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Composit Target and gamma correct rendering
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#if GE_GRAPHICS_DX11
|
||||
|
||||
using System;
|
||||
|
||||
namespace GlitchyEngine.Math
|
||||
{
|
||||
extension ColorRGBA
|
||||
{
|
||||
[Inline]
|
||||
#unwarn
|
||||
public static implicit operator DirectX.ColorRGBA(ColorRGBA self) => *(DirectX.ColorRGBA*)&self;
|
||||
}
|
||||
|
||||
extension ColorRGB
|
||||
{
|
||||
[Inline]
|
||||
#unwarn
|
||||
public static implicit operator DirectX.ColorRGB(ColorRGB self) => *(DirectX.ColorRGB*)&self;
|
||||
}
|
||||
|
||||
extension Color
|
||||
{
|
||||
[Inline]
|
||||
#unwarn
|
||||
public static implicit operator DirectX.Color(Color self) => *(DirectX.Color*)&self;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user