| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "../RhiCapabilitiesBase.h" |
| 4 |
#include "PvrDevice.h" |
| 5 |
#include "PvrRenderTarget.h" |
| 6 |
#include "PvrTexture.h" |
| 7 |
|
| 8 |
namespace nCine::RHI::PVR |
| 9 |
{ |
| 10 |
/** |
| 11 |
@brief Runtime capabilities of the PowerVR backend |
| 12 |
|
| 13 |
The tile accelerator has no queryable API context, so the limits come from the device the window |
| 14 |
backend has already created (see @ref RhiCapabilitiesBase::SetDeviceCapabilities()). |
| 15 |
*/ |
| 16 |
class PvrRhiCapabilities : public RhiCapabilitiesBase |
| 17 |
{ |
| 18 |
public: |
| 19 |
PvrRhiCapabilities() |
| 20 |
{ |
| 21 |
// The PowerVR CLX2 texture-dimension limit (1024) drives the tileset texture chunking in |
| 22 |
// ContentResolver; uniforms are plain host memory decoded by the draw dispatch |
| 23 |
SetDeviceCapabilities("PowerVR", PvrDevice::GetMaxTextureDimension(), std::int32_t(PvrTexture::MaxTextureUnits), |
| 24 |
64 * 1024, 16, std::int32_t(PvrRenderTarget::MaxColorAttachments)); |
| 25 |
|
| 26 |
LogCapabilities(); |
| 27 |
} |
| 28 |
}; |
| 29 |
} |