ppsspp/GPU/Common/Draw2D.h

29 lines
485 B
C
Raw Normal View History

2022-08-03 11:42:37 +02:00
#pragma once
#include "GPU/GPU.h"
2022-08-03 11:42:37 +02:00
// For framebuffer copies and similar things that just require passthrough.
struct Draw2DVertex {
float x;
float y;
float u;
float v;
};
enum Draw2DShader {
DRAW2D_COPY_COLOR,
DRAW2D_COPY_DEPTH,
DRAW2D_565_TO_DEPTH,
};
inline RasterChannel Draw2DSourceChannel(Draw2DShader shader) {
switch (shader) {
case DRAW2D_COPY_DEPTH:
return RASTER_DEPTH;
case DRAW2D_COPY_COLOR:
case DRAW2D_565_TO_DEPTH:
default:
return RASTER_COLOR;
}
}