在本页

TextureProviderExtension QML Type

用于纹理提供程序扩展的不可创建的抽象基础类型。更多

Import Statement: import QtQuick3D
Since: Qt 6.11
In C++: QQuick3DTextureProviderExtension
Inherits:

RenderExtension

属性

详细说明

另请参见 QQuick3DTextureProviderExtensionQSSGRenderExtension

属性文档

samplerHint : enumeration

此属性包含扩展将提供的纹理类型的提示。这是必要的,因为纹理数据在必要时才会提供,但使用纹理组件的材质需要知道提供哪种类型的采样器。该属性应设置为以下值之一:

常量说明
TextureProviderExtension.Sampler2D纹理将是二维纹理。
TextureProviderExtension.Sampler2DArray数组纹理。
TextureProviderExtension.Sampler3D三维纹理。
TextureProviderExtension.SamplerCube立方体贴图纹理。
TextureProviderExtension.SamplerCubeArray该纹理将是一个立方体贴图纹理数组。
TextureProviderExtension.SamplerBuffer缓冲纹理。

默认值为TextureProviderExtension.Sampler2D

注: 此属性仅在使用自定义材质时使用。

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