[PICA] Depth buffering v1

This commit is contained in:
wheremyfoodat 2023-03-03 00:59:55 +02:00
parent d79fd1e198
commit eaab13b264
3 changed files with 67 additions and 7 deletions

View file

@ -72,12 +72,19 @@ public:
void setColourFormat(u32 format) { colourBufferFormat = static_cast<ColourBuffer::Formats>(format); }
void setDepthFormat(DepthBuffer::Formats format) { depthBufferFormat = format; }
void setDepthFormat(u32 format) { depthBufferFormat = static_cast<DepthBuffer::Formats>(format); }
void setDepthFormat(u32 format) {
if (format == 2) {
Helpers::panic("[PICA] Undocumented depth-stencil mode!");
}
depthBufferFormat = static_cast<DepthBuffer::Formats>(format);
}
void setColourBufferLoc(u32 loc) { colourBufferLoc = loc; }
void setDepthBufferLoc(u32 loc) { depthBufferLoc = loc; }
void setupBlending();
void bindDepthBuffer();
static constexpr u32 vertexBufferSize = 0x1500;
};