Logo
BlendInfo.h
1#pragma once
2#include "gfx/GfxTypes.h"
3
4namespace SharpKmyGfx
5{
6 public value struct BlendInfo
7 {
8 public:
9 bool blend;
14
16 {
17 BlendInfo r;
18 r.blend = false;
25 return r;
26 }
27
29 {
30 BlendInfo r;
31 r.blend = true;
38 return r;
39 }
40 };
41}
Definition: Asset.h:4
BlendFactor
Definition: GfxTypes.h:91
EquationType
Definition: GfxTypes.h:104
Definition: BlendInfo.h:7
bool blend
Definition: BlendInfo.h:9
static BlendInfo noBlend()
Definition: BlendInfo.h:15
BlendFactor dstAlpha
Definition: BlendInfo.h:12
EquationType alphaEquation
Definition: BlendInfo.h:13
BlendFactor srcAlpha
Definition: BlendInfo.h:12
BlendFactor srcColor
Definition: BlendInfo.h:10
EquationType colorEquation
Definition: BlendInfo.h:11
static BlendInfo alphaBlend()
Definition: BlendInfo.h:28
BlendFactor dstColor
Definition: BlendInfo.h:10