![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qrhid3d11_p.h>
Public Member Functions | |
| QD3D11Sampler (QRhiImplementation *rhi, Filter magFilter, Filter minFilter, Filter mipmapMode, AddressMode u, AddressMode vv, AddressMode ww) | |
| ~QD3D11Sampler () | |
| void | destroy () override |
| Releases (or requests deferred releasing of) the underlying native graphics resources. | |
| bool | create () override |
| Public Member Functions inherited from QRhiSampler | |
| QRhiResource::Type | resourceType () const override |
| Filter | magFilter () const |
| void | setMagFilter (Filter ff) |
| Sets the magnification filter mode to f. | |
| Filter | minFilter () const |
| void | setMinFilter (Filter ff) |
| Sets the minification filter mode to f. | |
| Filter | mipmapMode () const |
| void | setMipmapMode (Filter ff) |
| Sets the mipmap filter mode to f. | |
| AddressMode | addressU () const |
| void | setAddressU (AddressMode modemode) |
| Sets the horizontal wrap mode. | |
| AddressMode | addressV () const |
| void | setAddressV (AddressMode modemode) |
| Sets the vertical wrap mode. | |
| AddressMode | addressW () const |
| void | setAddressW (AddressMode modemode) |
| Sets the depth wrap mode. | |
| CompareOp | textureCompareOp () const |
| void | setTextureCompareOp (CompareOp op) |
| Sets the texture comparison function op. | |
| Public Member Functions inherited from QRhiResource | |
| 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 &namename) |
| Sets a name for the object. | |
| quint64 | globalResourceId () const |
| QRhi * | rhi () const |
Public Attributes | |
| ID3D11SamplerState * | samplerState = nullptr |
| uint | generation = 0 |
Friends | |
| class | QRhiD3D11 |
Definition at line 108 of file qrhid3d11_p.h.
| QD3D11Sampler::QD3D11Sampler | ( | QRhiImplementation * | rhi, |
| Filter | magFilter, | ||
| Filter | minFilter, | ||
| Filter | mipmapMode, | ||
| AddressMode | u, | ||
| AddressMode | v, | ||
| AddressMode | w ) |
Definition at line 4235 of file qrhid3d11.cpp.
References QD3D11Sampler().
Referenced by QD3D11Sampler().
| QD3D11Sampler::~QD3D11Sampler | ( | ) |
Definition at line 4241 of file qrhid3d11.cpp.
References destroy().
|
overridevirtual |
Implements QRhiSampler.
Definition at line 4331 of file qrhid3d11.cpp.
References destroy(), and generation.
|
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 4246 of file qrhid3d11.cpp.
Referenced by ~QD3D11Sampler(), and create().
|
friend |
Definition at line 118 of file qrhid3d11_p.h.
| uint QD3D11Sampler::generation = 0 |
Definition at line 117 of file qrhid3d11_p.h.
Referenced by create(), QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
| ID3D11SamplerState* QD3D11Sampler::samplerState = nullptr |
Definition at line 116 of file qrhid3d11_p.h.