mirror of
https://github.com/jndean/IPUDOOM.git
synced 2026-03-25 08:59:47 +00:00
Move to Supervisor renderer to facilitate exchanging. Drop into worker thread for FixedDiv
This commit is contained in:
@@ -12,18 +12,19 @@
|
||||
|
||||
|
||||
extern "C" {
|
||||
void R_InitTextures(int* maptex, R_Init_MiscValues_t* miscVals);
|
||||
void R_RenderPlayerView(player_t *player);
|
||||
void R_ExecuteSetViewSize(void);
|
||||
__SUPER__ void R_InitTextures(int* maptex, R_Init_MiscValues_t* miscVals);
|
||||
__SUPER__ void R_RenderPlayerView(player_t *player);
|
||||
__SUPER__ void R_ExecuteSetViewSize(void);
|
||||
};
|
||||
|
||||
|
||||
struct R_Init_Vertex: public poplar::Vertex {
|
||||
struct R_Init_Vertex: public poplar::SupervisorVertex {
|
||||
|
||||
poplar::Input<poplar::Vector<unsigned char>> miscValues;
|
||||
poplar::Input<poplar::Vector<unsigned char>> lumpBuf;
|
||||
poplar::Output<int> lumpNum;
|
||||
|
||||
__SUPER__
|
||||
void compute() {
|
||||
static int step = 0;
|
||||
|
||||
@@ -43,11 +44,11 @@ struct R_Init_Vertex: public poplar::Vertex {
|
||||
};
|
||||
|
||||
|
||||
struct R_RenderPlayerView_Vertex : public poplar::Vertex {
|
||||
struct R_RenderPlayerView_Vertex : public poplar::SupervisorVertex {
|
||||
poplar::Input<poplar::Vector<unsigned char>> miscValues;
|
||||
poplar::InOut<poplar::Vector<unsigned char>> frame;
|
||||
|
||||
void compute() {
|
||||
__SUPER__ void compute() {
|
||||
assert(&frame[0] == I_VideoBuffer);
|
||||
|
||||
IPU_R_RenderPlayerView_UnpackMiscValues(
|
||||
@@ -60,14 +61,14 @@ struct R_RenderPlayerView_Vertex : public poplar::Vertex {
|
||||
};
|
||||
|
||||
|
||||
class R_ExecuteSetViewSize_Vertex : public poplar::Vertex {
|
||||
class R_ExecuteSetViewSize_Vertex : public poplar::SupervisorVertex {
|
||||
public:
|
||||
poplar::Input<poplar::Vector<unsigned char>> miscValues;
|
||||
bool compute() {
|
||||
__SUPER__
|
||||
void compute() {
|
||||
IPU_R_ExecuteSetViewSize_UnpackMiscValues(
|
||||
(R_ExecuteSetViewSize_MiscValues_t*) &miscValues[0]
|
||||
);
|
||||
R_ExecuteSetViewSize();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user