![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qrhimetal_p.h>
Public Member Functions | |
QMetalShadingRateMap (QRhiImplementation *rhi) | |
~QMetalShadingRateMap () | |
void | destroy () override |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
bool | createFrom (NativeShadingRateMap src) override |
Sets up the shading rate map to use a native 3D API shading rate object src. | |
![]() | |
QRhiResource::Type | resourceType () const override |
virtual bool | createFrom (QRhiTexture *src) |
Sets up the shading rate map to use the texture src as the image containing the per-tile shading rates. | |
![]() | |
virtual | ~QRhiResource () |
Destructor. | |
void | deleteLater () |
When called without a frame being recorded, this function is equivalent to deleting the object. | |
QByteArray | name () const |
void | setName (const QByteArray &name) |
Sets a name for the object. | |
quint64 | globalResourceId () const |
QRhi * | rhi () const |
Public Attributes | |
QMetalShadingRateMapData * | d |
uint | generation = 0 |
int | lastActiveFrameSlot = -1 |
Friends | |
class | QRhiMetal |
Additional Inherited Members | |
![]() | |
enum | Type { Buffer , Texture , Sampler , RenderBuffer , RenderPassDescriptor , SwapChainRenderTarget , TextureRenderTarget , ShaderResourceBindings , GraphicsPipeline , SwapChain , ComputePipeline , CommandBuffer , ShadingRateMap } |
Specifies type of the resource. More... | |
![]() | |
QRhiShadingRateMap (QRhiImplementation *rhi) | |
\variable QRhiShadingRateMap::NativeShadingRateMap::object | |
![]() | |
QRhiResource (QRhiImplementation *rhi) | |
![]() | |
QRhiImplementation * | m_rhi = nullptr |
quint64 | m_id |
QByteArray | m_objectName |
Definition at line 110 of file qrhimetal_p.h.
QMetalShadingRateMap::QMetalShadingRateMap | ( | QRhiImplementation * | rhi | ) |
Definition at line 4140 of file qrhimetal.mm.
QMetalShadingRateMap::~QMetalShadingRateMap | ( | ) |
Definition at line 4146 of file qrhimetal.mm.
|
overridevirtual |
Sets up the shading rate map to use a native 3D API shading rate object src.
true
when successful, false
when not supported.object
field of src is expected to contain an id<MTLRasterizationRateMap>. Note that Qt does not perform anything else apart from passing the MTLRasterizationRateMap on to the MTLRenderPassDescriptor. If any special scaling is required, it is up to the application (or the XR compositor) to perform that. Reimplemented from QRhiShadingRateMap.
Definition at line 4171 of file qrhimetal.mm.
|
overridevirtual |
Releases (or requests deferred releasing of) the underlying native graphics resources.
Safe to call multiple times, subsequent invocations will be a no-op then.
Once destroy() is called, the QRhiResource instance can be reused, by calling create()
again. That will then result in creating new native graphics resources underneath.
The QRhiResource destructor also performs the same task, so calling this function is not necessary before deleting a QRhiResource.
Implements QRhiResource.
Definition at line 4152 of file qrhimetal.mm.
|
friend |
Definition at line 120 of file qrhimetal_p.h.
QMetalShadingRateMapData* QMetalShadingRateMap::d |
Definition at line 117 of file qrhimetal_p.h.
uint QMetalShadingRateMap::generation = 0 |
Definition at line 118 of file qrhimetal_p.h.
int QMetalShadingRateMap::lastActiveFrameSlot = -1 |
Definition at line 119 of file qrhimetal_p.h.