PS5 graphics (#42)

This commit is contained in:
InoriRus
2022-07-31 21:09:53 +03:00
parent 96b0202858
commit e110bd0f63
11 changed files with 2232 additions and 535 deletions
@@ -18,14 +18,16 @@ public:
static constexpr int PARAM_HEIGHT = 2;
static constexpr int PARAM_HTILE = 3;
static constexpr int PARAM_NEO = 4;
static constexpr int PARAM_USAGE = 5;
DepthStencilBufferObject(uint64_t vk_format, uint32_t width, uint32_t height, bool htile, bool neo)
DepthStencilBufferObject(uint64_t vk_format, uint32_t width, uint32_t height, bool htile, bool neo, bool sampled)
{
params[PARAM_FORMAT] = vk_format;
params[PARAM_WIDTH] = width;
params[PARAM_HEIGHT] = height;
params[PARAM_HTILE] = htile ? 1 : 0;
params[PARAM_NEO] = neo ? 1 : 0;
params[PARAM_USAGE] = sampled ? 1 : 0;
check_hash = false;
type = Graphics::GpuMemoryObjectType::DepthStencilBuffer;
}