![]() |
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>
Classes | |
| struct | [struct].vs |
| struct | [struct].hs |
| struct | [struct].ds |
| struct | [struct].gs |
| struct | [struct].fs |
| struct | [struct].pushConstants |
Public Member Functions | |
| QD3D11GraphicsPipeline (QRhiImplementation *rhi) | |
| ~QD3D11GraphicsPipeline () | |
| void | destroy () override |
| Releases (or requests deferred releasing of) the underlying native graphics resources. | |
| bool | create () override |
| Creates the corresponding native graphics resources. | |
| Public Member Functions inherited from QRhiGraphicsPipeline | |
| QRhiResource::Type | resourceType () const override |
| Flags | flags () const |
| void | setFlags (Flags ff) |
| Sets the flags f. | |
| Topology | topology () const |
| void | setTopology (Topology tt) |
| Sets the primitive topology t. | |
| CullMode | cullMode () const |
| void | setCullMode (CullMode modemode) |
| Sets the specified face culling mode. | |
| FrontFace | frontFace () const |
| void | setFrontFace (FrontFace ff) |
| Sets the front face mode f. | |
| void | setTargetBlends (std::initializer_list< TargetBlend > list) |
| Sets the list of render target blend settings. | |
| template<typename InputIterator> | |
| void | setTargetBlends (InputIterator firstfirst, InputIterator last) |
| Sets the list of render target blend settings from the iterators first and last. | |
| const TargetBlend * | cbeginTargetBlends () const |
| const TargetBlend * | cendTargetBlends () const |
| const TargetBlend * | targetBlendAt (qsizetype indexindex) const |
| qsizetype | targetBlendCount () const |
| bool | hasDepthTest () const |
| void | setDepthTest (bool enableenable) |
| Enables or disables depth testing based on enable. | |
| bool | hasDepthWrite () const |
| void | setDepthWrite (bool enableenable) |
| Controls the writing out of depth data into the depth buffer based on enable. | |
| bool | hasDepthClamp () const |
| void | setDepthClamp (bool enableenable) |
| Enables depth clamping when enable is true. | |
| CompareOp | depthOp () const |
| void | setDepthOp (CompareOp op) |
| Sets the depth comparison function op. | |
| bool | hasStencilTest () const |
| void | setStencilTest (bool enableenable) |
| Enables or disables stencil tests based on enable. | |
| StencilOpState | stencilFront () const |
| void | setStencilFront (const StencilOpState &state) |
| Sets the stencil test state for front faces. | |
| StencilOpState | stencilBack () const |
| void | setStencilBack (const StencilOpState &state) |
| Sets the stencil test state for back faces. | |
| quint32 | stencilReadMask () const |
| void | setStencilReadMask (quint32 maskmask) |
| Sets the stencil read mask. | |
| quint32 | stencilWriteMask () const |
| void | setStencilWriteMask (quint32 maskmask) |
| Sets the stencil write mask. | |
| int | sampleCount () const |
| void | setSampleCount (int ss) |
| Sets the sample count. | |
| float | lineWidth () const |
| void | setLineWidth (float widthwidth) |
| Sets the line width. | |
| int | depthBias () const |
| void | setDepthBias (int biasbias) |
| Sets the depth bias. | |
| float | slopeScaledDepthBias () const |
| void | setSlopeScaledDepthBias (float biasbias) |
| Sets the slope scaled depth bias. | |
| void | setShaderStages (std::initializer_list< QRhiShaderStage > list) |
| Sets the list of shader stages. | |
| template<typename InputIterator> | |
| void | setShaderStages (InputIterator firstfirst, InputIterator last) |
| Sets the list of shader stages from the iterators first and last. | |
| const QRhiShaderStage * | cbeginShaderStages () const |
| const QRhiShaderStage * | cendShaderStages () const |
| const QRhiShaderStage * | shaderStageAt (qsizetype indexindex) const |
| qsizetype | shaderStageCount () const |
| QRhiVertexInputLayout | vertexInputLayout () const |
| void | setVertexInputLayout (const QRhiVertexInputLayout &layout) |
| Specifies the vertex input layout. | |
| QRhiShaderResourceBindings * | shaderResourceBindings () const |
| void | setShaderResourceBindings (QRhiShaderResourceBindings *srb) |
| Associates with srb describing the resource binding layout and the resources (QRhiBuffer, QRhiTexture) themselves. | |
| QRhiRenderPassDescriptor * | renderPassDescriptor () const |
| void | setRenderPassDescriptor (QRhiRenderPassDescriptor *desc) |
| Associates with the specified QRhiRenderPassDescriptor desc. | |
| int | patchControlPointCount () const |
| void | setPatchControlPointCount (int countcount) |
| Sets the number of patch control points to count. | |
| PolygonMode | polygonMode () const |
| void | setPolygonMode (PolygonMode modemode) |
| Sets the polygon mode. | |
| int | multiViewCount () const |
| void | setMultiViewCount (int countcount) |
| Sets the view count for multiview rendering. | |
| 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 | |
| ID3D11DepthStencilState * | dsState = nullptr |
| ID3D11BlendState * | blendState = nullptr |
| struct | vs |
| struct | hs |
| struct | ds |
| struct | gs |
| struct | fs |
| struct | pushConstants |
| ID3D11InputLayout * | inputLayout = nullptr |
| D3D11_PRIMITIVE_TOPOLOGY | d3dTopology = D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST |
| ID3D11RasterizerState * | rastState = nullptr |
| uint | generation = 0 |
Friends | |
| class | QRhiD3D11 |
Definition at line 351 of file qrhid3d11_p.h.
| QD3D11GraphicsPipeline::QD3D11GraphicsPipeline | ( | QRhiImplementation * | rhi | ) |
Definition at line 4718 of file qrhid3d11.cpp.
References QD3D11GraphicsPipeline().
Referenced by QD3D11GraphicsPipeline().
| QD3D11GraphicsPipeline::~QD3D11GraphicsPipeline | ( | ) |
Definition at line 4723 of file qrhid3d11.cpp.
References destroy().
|
overridevirtual |
Creates the corresponding native graphics resources.
If there are already resources present due to an earlier create() with no corresponding destroy(), then destroy() is called implicitly first.
true when successful, false when a graphics operation failed. Regardless of the return value, calling destroy() is always safe.VkPipelineCache to improve data reuse during the lifetime of the application.Implements QRhiGraphicsPipeline.
Definition at line 5118 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 4738 of file qrhid3d11.cpp.
Referenced by ~QD3D11GraphicsPipeline(), and create().
|
friend |
Definition at line 389 of file qrhid3d11_p.h.
| ID3D11BlendState* QD3D11GraphicsPipeline::blendState = nullptr |
Definition at line 359 of file qrhid3d11_p.h.
| D3D11_PRIMITIVE_TOPOLOGY QD3D11GraphicsPipeline::d3dTopology = D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST |
Definition at line 386 of file qrhid3d11_p.h.
| struct QD3D11GraphicsPipeline::[struct].ds QD3D11GraphicsPipeline::ds |
| ID3D11DepthStencilState* QD3D11GraphicsPipeline::dsState = nullptr |
Definition at line 358 of file qrhid3d11_p.h.
| struct QD3D11GraphicsPipeline::[struct].fs QD3D11GraphicsPipeline::fs |
| uint QD3D11GraphicsPipeline::generation = 0 |
Definition at line 388 of file qrhid3d11_p.h.
Referenced by create(), and QRhiD3D11::setGraphicsPipeline().
| struct QD3D11GraphicsPipeline::[struct].gs QD3D11GraphicsPipeline::gs |
| struct QD3D11GraphicsPipeline::[struct].hs QD3D11GraphicsPipeline::hs |
| ID3D11InputLayout* QD3D11GraphicsPipeline::inputLayout = nullptr |
Definition at line 385 of file qrhid3d11_p.h.
| struct QD3D11GraphicsPipeline::[struct].pushConstants QD3D11GraphicsPipeline::pushConstants |
| ID3D11RasterizerState* QD3D11GraphicsPipeline::rastState = nullptr |
Definition at line 387 of file qrhid3d11_p.h.
| struct QD3D11GraphicsPipeline::[struct].vs QD3D11GraphicsPipeline::vs |