![]() |
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 | |
| QD3D11ComputePipeline (QRhiImplementation *rhi) | |
| ~QD3D11ComputePipeline () | |
| void | destroy () override |
| Releases (or requests deferred releasing of) the underlying native graphics resources. | |
| bool | create () override |
| Public Member Functions inherited from QRhiComputePipeline | |
| QRhiResource::Type | resourceType () const override |
| Flags | flags () const |
| void | setFlags (Flags f) |
| Sets the flags f. | |
| QRhiShaderStage | shaderStage () const |
| void | setShaderStage (const QRhiShaderStage &stage) |
| Sets the shader to use. | |
| QRhiShaderResourceBindings * | shaderResourceBindings () const |
| void | setShaderResourceBindings (QRhiShaderResourceBindings *srb) |
| Associates with srb describing the resource binding layout and the resources (QRhiBuffer, QRhiTexture) themselves. | |
| 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 &name) |
| Sets a name for the object. | |
| quint64 | globalResourceId () const |
| QRhi * | rhi () const |
Public Attributes | |
| struct { | |
| ID3D11ComputeShader * shader = nullptr | |
| QShader::NativeResourceBindingMap nativeResourceBindingMap | |
| } | cs |
| struct { | |
| int reg = -1 | |
| quint32 size = 0 | |
| } | pushConstants |
| uint | generation = 0 |
Friends | |
| class | QRhiD3D11 |
Definition at line 389 of file qrhid3d11_p.h.
| QD3D11ComputePipeline::QD3D11ComputePipeline | ( | QRhiImplementation * | rhi | ) |
Definition at line 5372 of file qrhid3d11.cpp.
References QD3D11ComputePipeline().
Referenced by QD3D11ComputePipeline().
| QD3D11ComputePipeline::~QD3D11ComputePipeline | ( | ) |
Definition at line 5377 of file qrhid3d11.cpp.
References destroy().
|
overridevirtual |
Implements QRhiComputePipeline.
Definition at line 5397 of file qrhid3d11.cpp.
References QRhiD3D11::clearShaderCache(), 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 5382 of file qrhid3d11.cpp.
Referenced by ~QD3D11ComputePipeline(), and create().
|
friend |
Definition at line 405 of file qrhid3d11_p.h.
| struct { ... } QD3D11ComputePipeline::cs |
| uint QD3D11ComputePipeline::generation = 0 |
Definition at line 404 of file qrhid3d11_p.h.
Referenced by create(), and QRhiD3D11::setComputePipeline().
| QShader::NativeResourceBindingMap QD3D11ComputePipeline::nativeResourceBindingMap |
Definition at line 398 of file qrhid3d11_p.h.
| struct { ... } QD3D11ComputePipeline::pushConstants |
| int QD3D11ComputePipeline::reg = -1 |
Definition at line 401 of file qrhid3d11_p.h.
| ID3D11ComputeShader* QD3D11ComputePipeline::shader = nullptr |
Definition at line 397 of file qrhid3d11_p.h.
| quint32 QD3D11ComputePipeline::size = 0 |
Definition at line 402 of file qrhid3d11_p.h.