QRhiComputePipeline Class

파이프라인 상태 리소스를 계산합니다. 더 보기...

헤더: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
이후: Qt 6.6
상속합니다: QRhiResource

공용 형

enum Flag { CompileShadersWithDebugInfo }
flags Flags

공용 함수

QRhiComputePipeline::Flags flags() const
void setFlags(QRhiComputePipeline::Flags f)
void setShaderResourceBindings(QRhiShaderResourceBindings *srb)
void setShaderStage(const QRhiShaderStage &stage)
QRhiShaderResourceBindings *shaderResourceBindings() const
QRhiShaderStage shaderStage() const

재구현된 공용 함수

virtual QRhiResource::Type resourceType() const override

상세 설명

참고: 셰이더 리소스 바인딩 설정은 필수입니다. 참조된 QRhiShaderResourceBindings 은 create()가 호출될 때 이미 생성()이 호출되어 있어야 합니다.

참고: 셰이더 설정은 필수입니다.

참고: 호환성이 제한적으로 보장되는 RHI API이며, 자세한 내용은 QRhi 을 참조하세요.

멤버 유형 문서

열거형 QRhiComputePipeline::플래그
플래그 QRhiComputePipeline::플래그

파이프라인 옵션을 설명하기 위한 플래그 값입니다.

Constant설명
QRhiComputePipeline::CompileShadersWithDebugInfo1 << 0해당되는 경우 디버그 정보를 활성화한 셰이더 컴파일을 요청합니다. 자세한 내용은 QRhiGraphicsPipeline::CompileShadersWithDebugInfo 을 참조하십시오.

Flags 유형은 QFlags<Flag>에 대한 typedef입니다. 플래그 값의 OR 조합을 저장합니다.

멤버 함수 문서

QRhiComputePipeline::Flags QRhiComputePipeline::flags() const

현재 설정된 플래그를 반환합니다.

setFlags()도 참조하세요 .

[override virtual] QRhiResource::Type QRhiComputePipeline::resourceType() const

재구현합니다: QRhiResource::resourceType() const.

리소스 타입을 리턴합니다.

void QRhiComputePipeline::setFlags(QRhiComputePipeline::Flags f)

플래그를 설정합니다 f.

flags()도 참조하세요 .

void QRhiComputePipeline::setShaderResourceBindings(QRhiShaderResourceBindings *srb)

리소스 바인딩 레이아웃을 설명하는 srb 및 리소스 (QRhiBuffer, QRhiTexture) 자체와 연결됩니다. 후자는 선택 사항입니다. 그래픽 파이프라인과 마찬가지로, 여기에 전달된 srb 은 디스패치 호출을 기록하기 전에 setShaderResources()를 통해 바인딩된 다른 layout-compatible QRhiShaderResourceBindings 이 있는 한 실제 버퍼 또는 텍스처 객체를 지정하지 않은 채로(nullptr) 둘 수 있습니다.

shaderResourceBindings()도 참조하세요 .

void QRhiComputePipeline::setShaderStage(const QRhiShaderStage &stage)

사용할 셰이더를 설정합니다. stagecompute stage 만 참조할 수 있습니다.

shaderStage()도 참조하세요 .

QRhiShaderResourceBindings *QRhiComputePipeline::shaderResourceBindings() const

현재 연결된 QRhiShaderResourceBindings 객체를 반환합니다.

setShaderResourceBindings()도 참조하세요 .

QRhiShaderStage QRhiComputePipeline::shaderStage() const

현재 설정된 셰이더를 반환합니다.

setShaderStage()도 참조하세요 .

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.