Qt GUI Private C++ Classes

提供对私有图形用户界面功能的访问。更多

QRhi

加速 2D/3D 图形 API 抽象

QRhiBuffer

顶点、索引或统一(常量)缓冲区资源

QRhiBuffer::NativeBuffer

包含有关缓冲区底层本地资源的信息

QRhiColorAttachment

描述渲染目标的单一颜色附件

QRhiCommandBuffer

命令缓冲区资源

QRhiComputePipeline

计算管道状态资源

QRhiD3D11InitParams

Direct3D 11 特定初始化参数

QRhiD3D11NativeHandles

保存 QRhi 使用的 D3D 设备和设备上下文

QRhiD3D12CommandBufferNativeHandles

持有支持 QRhiCommandBuffer 的 ID3D12GraphicsCommandList1 对象

QRhiD3D12InitParams

Direct3D 12 特定初始化参数

QRhiD3D12NativeHandles

持有 QRhi 使用的 D3D12 设备

QRhiDepthStencilClearValue

指定深度或模版缓冲区的清除值

QRhiDriverInfo

描述初始化的 QRhi 所使用的物理设备、适配器或图形 API 实现

QRhiGles2InitParams

OpenGL 特定初始化参数

QRhiGles2NativeHandles

保存 QRhi 使用的 OpenGL 上下文

QRhiGraphicsPipeline

图形流水线状态资源

QRhiGraphicsPipeline::StencilOpState

描述模版操作状态

QRhiGraphicsPipeline::TargetBlend

描述单色附件的混合状态

QRhiInitParams

后端特定初始化参数的基类

QRhiMetalCommandBufferNativeHandles

持有支持 QRhiCommandBuffer 的 MTLCommandBuffer 和 MTLRenderCommandEncoder 对象

QRhiMetalInitParams

金属专用初始化参数

QRhiMetalNativeHandles

保存 QRhi 使用的 Metal 设备

QRhiNativeHandles

用于公开特定于后端本地资源对象集合的类的基类

QRhiNullInitParams

空后端特定初始化参数

QRhiNullNativeHandles

QRhiReadbackDescription

描述回读(从可能仅 GPU 的内存中读回纹理内容)操作

QRhiReadbackResult

描述潜在异步缓冲区或纹理回读操作的结果

QRhiRenderBuffer

渲染缓冲区资源

QRhiRenderBuffer::NativeRenderBuffer

封装本地渲染缓冲区对象

QRhiRenderPassDescriptor

渲染传递资源

QRhiRenderTarget

代表屏幕上(交换链)或屏幕外(纹理)的渲染目标

QRhiResource

封装本地资源对象的基类

QRhiResourceUpdateBatch

记录上传和复制类型的操作

QRhiSampler

采样器资源

QRhiScissor

指定一个剪刀矩形

QRhiShaderResourceBinding

描述单个绑定点的着色器资源

QRhiShaderResourceBindings

封装用于使着色器可见缓冲区、纹理和采样器资源的资源

QRhiShaderStage

为管道中的着色器阶段指定类型和着色器代码

QRhiShadingRateMap

封装纹理或其他本地 3D API 对象的对象

QRhiShadingRateMap::NativeShadingRateMap

封装本地着色速率贴图

QRhiStats

底层内存分配器提供的统计数据

QRhiSwapChain

交换链资源

QRhiSwapChainHdrInfo

描述交换链相关输出的高动态范围相关信息

QRhiSwapChainProxyData

描述建立交换链所需的本地对象的不透明数据

QRhiSwapChainRenderTarget

交换链渲染目标资源

QRhiTexture

纹理资源

QRhiTexture::NativeTexture

包含纹理底层本地资源的相关信息

QRhiTexture::ViewFormat

指定读取或写入纹理的视图格式

QRhiTextureCopyDescription

描述纹理到纹理的复制操作

QRhiTextureRenderTarget

纹理渲染目标资源

QRhiTextureRenderTargetDescription

描述渲染目标的颜色和深度或深度/模板附件

QRhiTextureSubresourceUploadDescription

描述纹理上传操作中图层中一个 mip 层的来源

QRhiTextureUploadDescription

描述纹理上传操作

QRhiTextureUploadEntry

描述纹理上传操作中的一个图层(立方体贴图中的面,三维纹理中的切片,纹理阵列中的元素)。

QRhiVertexInputAttribute

描述单个顶点输入元素

QRhiVertexInputBinding

描述顶点输入绑定

QRhiVertexInputLayout

描述顶点着色器消耗的顶点输入布局

QRhiViewport

指定视口矩形

QRhiVulkanCommandBufferNativeHandles

持有支持 QRhiCommandBuffer 的 Vulkan 命令缓冲区对象

QRhiVulkanInitParams

特定于 Vulkan 的初始化参数

QRhiVulkanNativeHandles

收集 QRhi 使用的设备、队列和其他 Vulkan 对象

QRhiVulkanRenderPassNativeHandles

持有支持 QRhiRenderPassDescriptor 的 Vulkan 渲染传递对象

详细说明

CMakeLists.txt 中使用以下 CMake 命令访问私有的Qt GUI API:

find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)

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