mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 13:39:54 +00:00
55 lines
1.0 KiB
C++
55 lines
1.0 KiB
C++
#pragma once
|
|
#include <cstdint>
|
|
#include "cdcSys/Array.h"
|
|
#include "cdc/dtp/postprocessing.h"
|
|
#include "PPTexture.h"
|
|
#include "PPVariable.h"
|
|
|
|
namespace cdc {
|
|
|
|
class CommonRenderTarget;
|
|
class CommonDepthBuffer;
|
|
struct RenderViewport;
|
|
|
|
}
|
|
|
|
struct PPUnknown2 {
|
|
uint32_t dword0;
|
|
uint32_t dword4;
|
|
uint32_t dword8;
|
|
uint32_t dwordC;
|
|
uint32_t dword10;
|
|
uint32_t dword14;
|
|
uint32_t dword18;
|
|
uint32_t dword1C;
|
|
uint32_t dword20;
|
|
uint32_t dword24;
|
|
uint32_t dword28;
|
|
uint32_t dword2C;
|
|
};
|
|
|
|
class PPManager {
|
|
public:
|
|
cdc::Array<dtp::PPActiveSet*> activeSets; // 4
|
|
cdc::Array<PPTexture> textures; // 10
|
|
cdc::Array<PPVariable> variables; // 1C
|
|
uint32_t rootPasses28;
|
|
uint32_t dwords2C[32];
|
|
uint32_t dwordsAC[32];
|
|
uint32_t dwords12C[32];
|
|
uint32_t width;
|
|
uint32_t height;
|
|
cdc::Array<PPUnknown2*> unknowns2; // 1B4
|
|
|
|
PPManager();
|
|
virtual ~PPManager() = default;
|
|
|
|
bool prepare();
|
|
bool createScene(
|
|
cdc::CommonRenderTarget*,
|
|
cdc::CommonRenderTarget*,
|
|
cdc::CommonDepthBuffer*,
|
|
cdc::RenderViewport*);
|
|
void addActiveSet(dtp::PPActiveSet *unk1, float f);
|
|
};
|