java.lang.Object
io.qt.QtObject
io.qt.gui.rhi.QShader
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Contains multiple versions of a shader translated to multiple shading languages, together with reflection metadata
Java wrapper for Qt class QShader
- Since:
- This class was introduced in Qt 6.6.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Additional metadata about the native shader codestatic class
Mapping metadata for sampler uniformsstatic enum
Java wrapper for Qt enumQShader::SerializedFormatVersion
static enum
Java wrapper for Qt enumQShader::Source
static enum
Java wrapper for Qt enumQShader::Stage
static enum
Java wrapper for Qt enumQShader::Variant
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
final QList<QShaderKey>
clone()
Creates and returns a copy of this object.final QShaderDescription
final void
detach()
SeeQShader::
detach() final boolean
boolean
static QShader
fromSerialized
(byte [] data) Overloaded function forfromSerialized(io.qt.core.QByteArray)
.static QShader
fromSerialized
(QByteArray data) int
hashCode()
Returns the objects's hash code computed byqHash(QShader)
.final boolean
isValid()
final QShader.NativeShaderInfo
final void
final void
final void
final void
removeShader
(QShaderKey key) final QByteArray
Overloaded function forserialized(io.qt.gui.rhi.QShader.SerializedFormatVersion)
withversion = io.qt.gui.rhi.QShader.SerializedFormatVersion.Latest
.final QByteArray
final void
final void
final void
setResourceBindingMap
(QShaderKey key, Map<@QtPrimitiveType Integer, ? extends QPair<@QtPrimitiveType Integer, @QtPrimitiveType Integer>> map) final void
setSeparateToCombinedImageSamplerMappingList
(QShaderKey key, Collection<? extends QShader.SeparateToCombinedImageSamplerMapping> list) final void
setShader
(QShaderKey key, QByteArray shader) Overloaded function forsetShader(io.qt.gui.rhi.QShaderKey, io.qt.gui.rhi.QShaderCode)
.final void
setShader
(QShaderKey key, QShaderCode shader) final void
setStage
(QShader.Stage stage) final QShaderCode
shader
(QShaderKey key) final QShader.Stage
stage()
final void
toString()
Seeoperator<<(QDebug,
QShader) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QShader
public QShader() -
QShader
- Parameters:
other
-
-
-
Method Details
-
availableShaders
- Returns:
-
description
- Returns:
-
detach
See
QShader::
detach() -
isValid
- Returns:
-
nativeResourceBindingMap
@QtUninvokable public final QMap<@QtPrimitiveType Integer,QPair<@QtPrimitiveType Integer, nativeResourceBindingMap@QtPrimitiveType Integer>> (QShaderKey key) - Parameters:
key
-- Returns:
-
nativeShaderInfo
- Parameters:
key
-- Returns:
-
assign
- Parameters:
other
-
-
equals
- Parameters:
arg__2
-- Returns:
-
removeNativeShaderInfo
- Parameters:
key
-
-
removeResourceBindingMap
- Parameters:
key
-
-
removeSeparateToCombinedImageSamplerMappingList
- Parameters:
key
-
-
removeShader
- Parameters:
key
-
-
separateToCombinedImageSamplerMappingList
@QtUninvokable public final QList<QShader.SeparateToCombinedImageSamplerMapping> separateToCombinedImageSamplerMappingList(QShaderKey key) - Parameters:
key
-- Returns:
-
serialized
- Parameters:
version
-- Returns:
-
setDescription
- Parameters:
desc
-
-
setNativeShaderInfo
- Parameters:
key
-info
-
-
setResourceBindingMap
@QtUninvokable public final void setResourceBindingMap(QShaderKey key, Map<@QtPrimitiveType Integer, ? extends QPair<@QtPrimitiveType Integer, @QtPrimitiveType Integer>> map) - Parameters:
key
-map
-
-
setSeparateToCombinedImageSamplerMappingList
@QtUninvokable public final void setSeparateToCombinedImageSamplerMappingList(QShaderKey key, Collection<? extends QShader.SeparateToCombinedImageSamplerMapping> list) - Parameters:
key
-list
-
-
setShader
- Parameters:
key
-shader
-
-
setStage
- Parameters:
stage
-
-
shader
- Parameters:
key
-- Returns:
-
stage
- Returns:
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 6.7.
-
fromSerialized
- Parameters:
data
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QShader)
. -
toString
See
operator<<(QDebug,
QShader) -
clone
Creates and returns a copy of this object.
-
serialized
Overloaded function for
serialized(io.qt.gui.rhi.QShader.SerializedFormatVersion)
withversion = io.qt.gui.rhi.QShader.SerializedFormatVersion.Latest
. -
setShader
Overloaded function for
setShader(io.qt.gui.rhi.QShaderKey, io.qt.gui.rhi.QShaderCode)
. -
fromSerialized
Overloaded function for
fromSerialized(io.qt.core.QByteArray)
.
-