Move hasStencil to regs.hpp
This commit is contained in:
@@ -150,6 +150,8 @@ namespace PICA {
|
|||||||
Depth24Stencil8 = 3,
|
Depth24Stencil8 = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline constexpr bool hasStencil(DepthFmt format) { return format == PICA::DepthFmt::Depth24Stencil8; }
|
||||||
|
|
||||||
// Size occupied by each pixel in bytes
|
// Size occupied by each pixel in bytes
|
||||||
|
|
||||||
// All formats are 16BPP except for RGBA8 (32BPP) and BGR8 (24BPP)
|
// All formats are 16BPP except for RGBA8 (32BPP) and BGR8 (24BPP)
|
||||||
|
|||||||
@@ -95,10 +95,6 @@ struct DepthBuffer {
|
|||||||
range = Interval<u32>(loc, (u32)endLoc);
|
range = Interval<u32>(loc, (u32)endLoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasStencil() {
|
|
||||||
return format == PICA::DepthFmt::Depth24Stencil8;
|
|
||||||
}
|
|
||||||
|
|
||||||
void allocate() {
|
void allocate() {
|
||||||
// Create texture for the FBO, setting up filters and the like
|
// Create texture for the FBO, setting up filters and the like
|
||||||
// Reading back the current texture is slow, but allocate calls should be few and far between.
|
// Reading back the current texture is slow, but allocate calls should be few and far between.
|
||||||
|
|||||||
Reference in New Issue
Block a user