이 페이지에서

QRhiComputePipeline Class

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

헤더: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
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

상세 설명

참고: 셰이더 리소스 바인딩을설정해야 합니다. create()가 호출될 때쯤에는 참조된 QRhiShaderResourceBindings 에 대해 이미 create()가 호출되어 있어야 합니다.

참고: 셰이더를설정해야 합니다.

참고: 이 API는 호환성이 제한적으로 보장되는 RHI API입니다. 자세한 내용은 QRhi 를 참조하십시오.

멤버 유형 설명

enum QRhiComputePipeline::Flag
flags QRhiComputePipeline::Flags

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

상수값설명
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)

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

shaderStage()도 참조하십시오 .

QRhiShaderResourceBindings *QRhiComputePipeline::shaderResourceBindings() const

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

setShaderResourceBindings()도 참조하십시오 .

QRhiShaderStage QRhiComputePipeline::shaderStage() const

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

setShaderStage()도 참조하십시오 .

© 2026 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.