![]() |
Qt 6.x
The Qt SDK
|
#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 |
![]() | |
QRhiResource::Type | resourceType () const override |
virtual bool | create ()=0 |
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. | |
![]() | |
virtual | ~QRhiResource () |
Destructor. | |
virtual Type | resourceType () const =0 |
virtual void | destroy ()=0 |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
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 | |
uint | generation = 0 | |
Friends | |
class | QRhiD3D11 |
Additional Inherited Members | |
![]() | |
enum | Flag { CompileShadersWithDebugInfo = 1 << 0 } |
Flag values for describing pipeline options. More... | |
![]() | |
enum | Type { Buffer , Texture , Sampler , RenderBuffer , RenderPassDescriptor , SwapChainRenderTarget , TextureRenderTarget , ShaderResourceBindings , GraphicsPipeline , SwapChain , ComputePipeline , CommandBuffer } |
Specifies type of the resource. More... | |
![]() | |
QRhiComputePipeline (QRhiImplementation *rhi) | |
![]() | |
QRhiResource (QRhiImplementation *rhi) | |
![]() | |
Flags | m_flags |
QRhiShaderStage | m_shaderStage |
QRhiShaderResourceBindings * | m_shaderResourceBindings = nullptr |
![]() | |
QRhiImplementation * | m_rhi = nullptr |
quint64 | m_id |
QByteArray | m_objectName |
Definition at line 330 of file qrhid3d11_p.h.
QD3D11ComputePipeline::QD3D11ComputePipeline | ( | QRhiImplementation * | rhi | ) |
Definition at line 4608 of file qrhid3d11.cpp.
QD3D11ComputePipeline::~QD3D11ComputePipeline | ( | ) |
Definition at line 4613 of file qrhid3d11.cpp.
References destroy().
|
overridevirtual |
Implements QRhiComputePipeline.
Definition at line 4632 of file qrhid3d11.cpp.
References QRhiComputePipeline::CompileShadersWithDebugInfo, QByteArray::constData(), cs, destroy(), error, generation, QMap< Key, T >::insert(), QByteArray::isEmpty(), QRhiComputePipeline::m_flags, QRhiComputePipeline::m_shaderStage, QRhiImplementation::MAX_SHADER_CACHE_ENTRIES, QShader::nativeResourceBindingMap(), qPrintable, QRHI_RES_RHI, qWarning, QRhiShaderStage::shader(), QRhiShaderStage::shaderVariant(), and QByteArray::size().
|
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 4618 of file qrhid3d11.cpp.
References cs, and QRHI_RES_RHI.
Referenced by ~QD3D11ComputePipeline(), and create().
|
friend |
Definition at line 342 of file qrhid3d11_p.h.
struct { ... } QD3D11ComputePipeline::cs |
Referenced by create(), destroy(), and QRhiD3D11::setShaderResources().
uint QD3D11ComputePipeline::generation = 0 |
Definition at line 341 of file qrhid3d11_p.h.
Referenced by create(), and QRhiD3D11::setComputePipeline().
QShader::NativeResourceBindingMap QD3D11ComputePipeline::nativeResourceBindingMap |
Definition at line 339 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::setShaderResources().
ID3D11ComputeShader* QD3D11ComputePipeline::shader = nullptr |
Definition at line 338 of file qrhid3d11_p.h.