Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QD3D11ComputePipeline Struct Reference

#include <qrhid3d11_p.h>

Inheritance diagram for QD3D11ComputePipeline:
Collaboration diagram for QD3D11ComputePipeline:

Classes

struct  [struct].cs
struct  [struct].pushConstants

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 ff)
 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 &namename)
 Sets a name for the object.
quint64 globalResourceId () const
QRhi * rhi () const

Public Attributes

struct  cs
struct  pushConstants
uint generation = 0

Friends

class QRhiD3D11

Additional Inherited Members

Public Types inherited from QRhiComputePipeline
enum  Flag { CompileShadersWithDebugInfo = 1 << 0 }
 Flag values for describing pipeline options. More...
Public Types inherited from QRhiResource
enum  Type {
  Buffer , Texture , Sampler , RenderBuffer ,
  RenderPassDescriptor , SwapChainRenderTarget , TextureRenderTarget , ShaderResourceBindings ,
  GraphicsPipeline , SwapChain , ComputePipeline , CommandBuffer ,
  ShadingRateMap , IndirectCommandBuffer
}
 Specifies type of the resource. More...
Protected Member Functions inherited from QRhiComputePipeline
 QRhiComputePipeline (QRhiImplementation *rhi)
Protected Member Functions inherited from QRhiResource
 QRhiResource (QRhiImplementation *rhi)
Protected Attributes inherited from QRhiComputePipeline
Flags m_flags
QRhiShaderStage m_shaderStage
QRhiShaderResourceBindings * m_shaderResourceBindings = nullptr
Protected Attributes inherited from QRhiResource
QRhiImplementation * m_rhi = nullptr
quint64 m_id
QByteArray m_objectName

Detailed Description

Definition at line 392 of file qrhid3d11_p.h.

Constructor & Destructor Documentation

◆ QD3D11ComputePipeline()

QD3D11ComputePipeline::QD3D11ComputePipeline ( QRhiImplementation * rhi)

Definition at line 5385 of file qrhid3d11.cpp.

References QD3D11ComputePipeline().

Referenced by QD3D11ComputePipeline().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~QD3D11ComputePipeline()

QD3D11ComputePipeline::~QD3D11ComputePipeline ( )

Definition at line 5390 of file qrhid3d11.cpp.

References destroy().

Here is the call graph for this function:

Member Function Documentation

◆ create()

bool QD3D11ComputePipeline::create ( )
overridevirtual

Implements QRhiComputePipeline.

Definition at line 5410 of file qrhid3d11.cpp.

References QRhiD3D11::clearShaderCache(), destroy(), and generation.

Here is the call graph for this function:

◆ destroy()

void QD3D11ComputePipeline::destroy ( )
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.

Note
Resources referenced by commands for the current frame should not be released until the frame is submitted by QRhi::endFrame().

The QRhiResource destructor also performs the same task, so calling this function is not necessary before deleting a QRhiResource.

See also
deleteLater()

Implements QRhiResource.

Definition at line 5395 of file qrhid3d11.cpp.

Referenced by ~QD3D11ComputePipeline(), and create().

Here is the caller graph for this function:

◆ QRhiD3D11

friend class QRhiD3D11
friend

Definition at line 408 of file qrhid3d11_p.h.

Member Data Documentation

◆ cs

struct QD3D11ComputePipeline::[struct].cs QD3D11ComputePipeline::cs

◆ generation

uint QD3D11ComputePipeline::generation = 0

Definition at line 407 of file qrhid3d11_p.h.

Referenced by create(), and QRhiD3D11::setComputePipeline().

◆ pushConstants

struct QD3D11ComputePipeline::[struct].pushConstants QD3D11ComputePipeline::pushConstants

The documentation for this struct was generated from the following files: