All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.rhi.QShader Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui.rhi;

import io.qt.*;


/**
 * 

Contains multiple versions of a shader translated to multiple shading languages, together with reflection metadata

*

Java wrapper for Qt class QShader

*

This class was introduced in Qt 6.6.

*/ public class QShader extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QShader::SerializedFormatVersion

*/ public enum SerializedFormatVersion implements QtEnumerator { /** *

Representing QShader::SerializedFormatVersion::Latest

*/ Latest(0), /** *

Representing QShader::SerializedFormatVersion::Qt_6_5

*/ Qt_6_5(1), /** *

Representing QShader::SerializedFormatVersion::Qt_6_4

*/ Qt_6_4(2); static { QtJambi_LibraryUtilities.initialize(); } private SerializedFormatVersion(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull SerializedFormatVersion resolve(int value) { switch (value) { case 0: return Latest; case 1: return Qt_6_5; case 2: return Qt_6_4; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QShader::Source

*/ public enum Source implements QtEnumerator { /** *

Representing QShader::SpirvShader

*/ SpirvShader(0), /** *

Representing QShader::GlslShader

*/ GlslShader(1), /** *

Representing QShader::HlslShader

*/ HlslShader(2), /** *

Representing QShader::DxbcShader

*/ DxbcShader(3), /** *

Representing QShader::MslShader

*/ MslShader(4), /** *

Representing QShader::DxilShader

*/ DxilShader(5), /** *

Representing QShader::MetalLibShader

*/ MetalLibShader(6), /** *

Representing QShader::WgslShader

*/ WgslShader(7); static { QtJambi_LibraryUtilities.initialize(); } private Source(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Source resolve(int value) { switch (value) { case 0: return SpirvShader; case 1: return GlslShader; case 2: return HlslShader; case 3: return DxbcShader; case 4: return MslShader; case 5: return DxilShader; case 6: return MetalLibShader; case 7: return WgslShader; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QShader::Stage

*/ public enum Stage implements QtEnumerator { /** *

Representing QShader::VertexStage

*/ VertexStage(0), /** *

Representing QShader::TessellationControlStage

*/ TessellationControlStage(1), /** *

Representing QShader::TessellationEvaluationStage

*/ TessellationEvaluationStage(2), /** *

Representing QShader::GeometryStage

*/ GeometryStage(3), /** *

Representing QShader::FragmentStage

*/ FragmentStage(4), /** *

Representing QShader::ComputeStage

*/ ComputeStage(5); static { QtJambi_LibraryUtilities.initialize(); } private Stage(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Stage resolve(int value) { switch (value) { case 0: return VertexStage; case 1: return TessellationControlStage; case 2: return TessellationEvaluationStage; case 3: return GeometryStage; case 4: return FragmentStage; case 5: return ComputeStage; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QShader::Variant

*/ public enum Variant implements QtEnumerator { /** *

Representing QShader::StandardShader

*/ StandardShader(0), /** *

Representing QShader::BatchableVertexShader

*/ BatchableVertexShader(1), /** *

Representing QShader::UInt16IndexedVertexAsComputeShader

*/ UInt16IndexedVertexAsComputeShader(2), /** *

Representing QShader::UInt32IndexedVertexAsComputeShader

*/ UInt32IndexedVertexAsComputeShader(3), /** *

Representing QShader::NonIndexedVertexAsComputeShader

*/ NonIndexedVertexAsComputeShader(4); static { QtJambi_LibraryUtilities.initialize(); } private Variant(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Variant resolve(int value) { switch (value) { case 0: return StandardShader; case 1: return BatchableVertexShader; case 2: return UInt16IndexedVertexAsComputeShader; case 3: return UInt32IndexedVertexAsComputeShader; case 4: return NonIndexedVertexAsComputeShader; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Mapping metadata for sampler uniforms

*

Java wrapper for Qt class QShader::SeparateToCombinedImageSamplerMapping

*/ public static class SeparateToCombinedImageSamplerMapping extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QShader::SeparateToCombinedImageSamplerMapping::SeparateToCombinedImageSamplerMapping()

*/ public SeparateToCombinedImageSamplerMapping(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(SeparateToCombinedImageSamplerMapping instance); /** *

See QShader::SeparateToCombinedImageSamplerMapping::SeparateToCombinedImageSamplerMapping(QShader::SeparateToCombinedImageSamplerMapping)

*/ public SeparateToCombinedImageSamplerMapping(io.qt.gui.rhi.QShader.@StrictNonNull SeparateToCombinedImageSamplerMapping other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(SeparateToCombinedImageSamplerMapping instance, io.qt.gui.rhi.QShader.SeparateToCombinedImageSamplerMapping other); /** *

See QShader::SeparateToCombinedImageSamplerMapping::SeparateToCombinedImageSamplerMapping{QByteArray,int,int}

*/ public SeparateToCombinedImageSamplerMapping(io.qt.core.@NonNull QByteArray combinedSamplerName, int textureBinding, int samplerBinding){ super((QPrivateConstructor)null); initialize_native(this, combinedSamplerName, textureBinding, samplerBinding); } private native static void initialize_native(SeparateToCombinedImageSamplerMapping instance, io.qt.core.QByteArray combinedSamplerName, int textureBinding, int samplerBinding); /** *

See QShader::SeparateToCombinedImageSamplerMapping::combinedSamplerName

*/ @QtUninvokable public final void setCombinedSamplerName(io.qt.core.@NonNull QByteArray combinedSamplerName){ setCombinedSamplerName_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(combinedSamplerName)); } @QtUninvokable private native void setCombinedSamplerName_native_cref_QByteArray(long __this__nativeId, long combinedSamplerName); /** *

See QShader::SeparateToCombinedImageSamplerMapping::combinedSamplerName

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray combinedSamplerName(){ return combinedSamplerName_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QByteArray combinedSamplerName_native(long __this__nativeId); /** *

See QShader::SeparateToCombinedImageSamplerMapping::samplerBinding

*/ @QtUninvokable public final void setSamplerBinding(int samplerBinding){ setSamplerBinding_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), samplerBinding); } @QtUninvokable private native void setSamplerBinding_native_int(long __this__nativeId, int samplerBinding); /** *

See QShader::SeparateToCombinedImageSamplerMapping::samplerBinding

*/ @QtUninvokable public final int samplerBinding(){ return samplerBinding_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int samplerBinding_native(long __this__nativeId); /** *

See QShader::SeparateToCombinedImageSamplerMapping::textureBinding

*/ @QtUninvokable public final void setTextureBinding(int textureBinding){ setTextureBinding_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), textureBinding); } @QtUninvokable private native void setTextureBinding_native_int(long __this__nativeId, int textureBinding); /** *

See QShader::SeparateToCombinedImageSamplerMapping::textureBinding

*/ @QtUninvokable public final int textureBinding(){ return textureBinding_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int textureBinding_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected SeparateToCombinedImageSamplerMapping(QPrivateConstructor p) { super(p); } /** *

Creates and returns a copy of this object.

See QShader::SeparateToCombinedImageSamplerMapping::SeparateToCombinedImageSamplerMapping(QShader::SeparateToCombinedImageSamplerMapping)

*/ @QtUninvokable @Override public SeparateToCombinedImageSamplerMapping clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native SeparateToCombinedImageSamplerMapping clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #SeparateToCombinedImageSamplerMapping(io.qt.core.QByteArray, int, int)}.

*/ public SeparateToCombinedImageSamplerMapping(byte @NonNull[] combinedSamplerName, int textureBinding, int samplerBinding) { this(new io.qt.core.QByteArray(combinedSamplerName), textureBinding, samplerBinding); } /** *

Overloaded function for {@link #setCombinedSamplerName(io.qt.core.QByteArray)}.

*/ @QtUninvokable public final void setCombinedSamplerName(byte @NonNull[] combinedSamplerName) { setCombinedSamplerName(new io.qt.core.QByteArray(combinedSamplerName)); } /** * @hidden *

Kotlin property getter. In Java use {@link #combinedSamplerName()} instead.

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray getCombinedSamplerName() { return combinedSamplerName(); } /** * @hidden *

Kotlin property getter. In Java use {@link #samplerBinding()} instead.

*/ @QtUninvokable public final int getSamplerBinding() { return samplerBinding(); } /** * @hidden *

Kotlin property getter. In Java use {@link #textureBinding()} instead.

*/ @QtUninvokable public final int getTextureBinding() { return textureBinding(); } } /** *

Additional metadata about the native shader code

*

Java wrapper for Qt class QShader::NativeShaderInfo

*/ public static class NativeShaderInfo extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QShader::NativeShaderInfo::NativeShaderInfo()

*/ public NativeShaderInfo(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(NativeShaderInfo instance); /** *

See QShader::NativeShaderInfo::NativeShaderInfo(QShader::NativeShaderInfo)

*/ public NativeShaderInfo(io.qt.gui.rhi.QShader.@StrictNonNull NativeShaderInfo other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(NativeShaderInfo instance, io.qt.gui.rhi.QShader.NativeShaderInfo other); /** *

See QShader::NativeShaderInfo::NativeShaderInfo{int,QMap<int,int>}

*/ public NativeShaderInfo(int flags, java.util.@NonNull Map extraBufferBindings){ super((QPrivateConstructor)null); initialize_native(this, flags, extraBufferBindings); } private native static void initialize_native(NativeShaderInfo instance, int flags, java.util.Map extraBufferBindings); /** *

See QShader::NativeShaderInfo::extraBufferBindings

*/ @QtUninvokable public final void setExtraBufferBindings(java.util.@NonNull Map extraBufferBindings){ setExtraBufferBindings_native_cref_QMap(QtJambi_LibraryUtilities.internal.nativeId(this), extraBufferBindings); } @QtUninvokable private native void setExtraBufferBindings_native_cref_QMap(long __this__nativeId, java.util.Map extraBufferBindings); /** *

See QShader::NativeShaderInfo::extraBufferBindings

*/ @QtUninvokable public final io.qt.core.@NonNull QMap extraBufferBindings(){ return extraBufferBindings_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMap extraBufferBindings_native(long __this__nativeId); /** *

See QShader::NativeShaderInfo::flags

*/ @QtUninvokable public final void setFlags(int flags){ setFlags_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), flags); } @QtUninvokable private native void setFlags_native_int(long __this__nativeId, int flags); /** *

See QShader::NativeShaderInfo::flags

*/ @QtUninvokable public final int flags(){ return flags_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int flags_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected NativeShaderInfo(QPrivateConstructor p) { super(p); } /** *

Creates and returns a copy of this object.

See QShader::NativeShaderInfo::NativeShaderInfo(QShader::NativeShaderInfo)

*/ @QtUninvokable @Override public NativeShaderInfo clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native NativeShaderInfo clone_native(long __this_nativeId); /** * @hidden *

Kotlin property getter. In Java use {@link #extraBufferBindings()} instead.

*/ @QtUninvokable public final io.qt.core.@NonNull QMap getExtraBufferBindings() { return extraBufferBindings(); } /** * @hidden *

Kotlin property getter. In Java use {@link #flags()} instead.

*/ @QtUninvokable public final int getFlags() { return flags(); } } /** *

See QShader::QShader()

*/ public QShader(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QShader instance); /** *

See QShader::QShader(QShader)

*/ public QShader(io.qt.gui.rhi.@StrictNonNull QShader other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(QShader instance, io.qt.gui.rhi.QShader other); /** *

See QShader::availableShaders()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList availableShaders(){ return availableShaders_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList availableShaders_native_constfct(long __this__nativeId); /** *

See QShader::description()const

*/ @QtUninvokable public final io.qt.gui.rhi.@NonNull QShaderDescription description(){ return description_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QShaderDescription description_native_constfct(long __this__nativeId); /** *

See QShader::detach()

*/ @QtUninvokable public final void detach(){ detach_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void detach_native(long __this__nativeId); /** *

See QShader::isValid()const

*/ @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QShader::nativeResourceBindingMap(QShaderKey)const

*/ @QtUninvokable public final io.qt.core.@NonNull QMap> nativeResourceBindingMap(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); return nativeResourceBindingMap_native_cref_QShaderKey_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native io.qt.core.QMap> nativeResourceBindingMap_native_cref_QShaderKey_constfct(long __this__nativeId, long key); /** *

See QShader::nativeShaderInfo(QShaderKey)const

*/ @QtUninvokable public final io.qt.gui.rhi.QShader.@NonNull NativeShaderInfo nativeShaderInfo(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); return nativeShaderInfo_native_cref_QShaderKey_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native io.qt.gui.rhi.QShader.NativeShaderInfo nativeShaderInfo_native_cref_QShaderKey_constfct(long __this__nativeId, long key); /** *

See QShader::operator=(QShader)

*/ @QtUninvokable public final void assign(io.qt.gui.rhi.@StrictNonNull QShader other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); assign_native_cref_QShader(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QShader(long __this__nativeId, long other); /** *

See operator==(QShader,QShader)

*/ @QtUninvokable public final boolean equals(io.qt.gui.rhi.@StrictNonNull QShader arg__2){ java.util.Objects.requireNonNull(arg__2, "Argument 'arg__2': null not expected."); return equals_native_cref_QShader(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2)); } @QtUninvokable private native boolean equals_native_cref_QShader(long __this__nativeId, long arg__2); /** *

See QShader::removeNativeShaderInfo(QShaderKey)

*/ @QtUninvokable public final void removeNativeShaderInfo(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); removeNativeShaderInfo_native_cref_QShaderKey(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native void removeNativeShaderInfo_native_cref_QShaderKey(long __this__nativeId, long key); /** *

See QShader::removeResourceBindingMap(QShaderKey)

*/ @QtUninvokable public final void removeResourceBindingMap(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); removeResourceBindingMap_native_cref_QShaderKey(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native void removeResourceBindingMap_native_cref_QShaderKey(long __this__nativeId, long key); /** *

See QShader::removeSeparateToCombinedImageSamplerMappingList(QShaderKey)

*/ @QtUninvokable public final void removeSeparateToCombinedImageSamplerMappingList(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); removeSeparateToCombinedImageSamplerMappingList_native_cref_QShaderKey(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native void removeSeparateToCombinedImageSamplerMappingList_native_cref_QShaderKey(long __this__nativeId, long key); /** *

See QShader::removeShader(QShaderKey)

*/ @QtUninvokable public final void removeShader(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); removeShader_native_cref_QShaderKey(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native void removeShader_native_cref_QShaderKey(long __this__nativeId, long key); /** *

See QShader::separateToCombinedImageSamplerMappingList(QShaderKey)const

*/ @QtUninvokable public final io.qt.core.@NonNull QList separateToCombinedImageSamplerMappingList(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); return separateToCombinedImageSamplerMappingList_native_cref_QShaderKey_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native io.qt.core.QList separateToCombinedImageSamplerMappingList_native_cref_QShaderKey_constfct(long __this__nativeId, long key); /** *

See QShader::serialized(QShader::SerializedFormatVersion)const

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray serialized(io.qt.gui.rhi.QShader.@NonNull SerializedFormatVersion version){ return serialized_native_QShader_SerializedFormatVersion_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), version.value()); } @QtUninvokable private native io.qt.core.QByteArray serialized_native_QShader_SerializedFormatVersion_constfct(long __this__nativeId, int version); /** *

See QShader::setDescription(QShaderDescription)

*/ @QtUninvokable public final void setDescription(io.qt.gui.rhi.@StrictNonNull QShaderDescription desc){ java.util.Objects.requireNonNull(desc, "Argument 'desc': null not expected."); setDescription_native_cref_QShaderDescription(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(desc)); } @QtUninvokable private native void setDescription_native_cref_QShaderDescription(long __this__nativeId, long desc); /** *

See QShader::setNativeShaderInfo(QShaderKey,QShader::NativeShaderInfo)

*/ @QtUninvokable public final void setNativeShaderInfo(io.qt.gui.rhi.@StrictNonNull QShaderKey key, io.qt.gui.rhi.QShader.@StrictNonNull NativeShaderInfo info){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); java.util.Objects.requireNonNull(info, "Argument 'info': null not expected."); setNativeShaderInfo_native_cref_QShaderKey_cref_QShader_NativeShaderInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key), QtJambi_LibraryUtilities.internal.checkedNativeId(info)); } @QtUninvokable private native void setNativeShaderInfo_native_cref_QShaderKey_cref_QShader_NativeShaderInfo(long __this__nativeId, long key, long info); /** *

See QShader::setResourceBindingMap(QShaderKey,QShader::NativeResourceBindingMap)

*/ @QtUninvokable public final void setResourceBindingMap(io.qt.gui.rhi.@StrictNonNull QShaderKey key, java.util.@NonNull Map> map){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); setResourceBindingMap_native_cref_QShaderKey_cref_QMap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key), map); } @QtUninvokable private native void setResourceBindingMap_native_cref_QShaderKey_cref_QMap(long __this__nativeId, long key, java.util.Map> map); /** *

See QShader::setSeparateToCombinedImageSamplerMappingList(QShaderKey,QShader::SeparateToCombinedImageSamplerMappingList)

*/ @QtUninvokable public final void setSeparateToCombinedImageSamplerMappingList(io.qt.gui.rhi.@StrictNonNull QShaderKey key, java.util.@NonNull Collection list){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); setSeparateToCombinedImageSamplerMappingList_native_cref_QShaderKey_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key), list); } @QtUninvokable private native void setSeparateToCombinedImageSamplerMappingList_native_cref_QShaderKey_cref_QList(long __this__nativeId, long key, java.util.Collection list); /** *

See QShader::setShader(QShaderKey,QShaderCode)

*/ @QtUninvokable public final void setShader(io.qt.gui.rhi.@StrictNonNull QShaderKey key, io.qt.gui.rhi.@StrictNonNull QShaderCode shader){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); java.util.Objects.requireNonNull(shader, "Argument 'shader': null not expected."); setShader_native_cref_QShaderKey_cref_QShaderCode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key), QtJambi_LibraryUtilities.internal.checkedNativeId(shader)); } @QtUninvokable private native void setShader_native_cref_QShaderKey_cref_QShaderCode(long __this__nativeId, long key, long shader); /** *

See QShader::setStage(QShader::Stage)

*/ @QtUninvokable public final void setStage(io.qt.gui.rhi.QShader.@NonNull Stage stage){ setStage_native_QShader_Stage(QtJambi_LibraryUtilities.internal.nativeId(this), stage.value()); } @QtUninvokable private native void setStage_native_QShader_Stage(long __this__nativeId, int stage); /** *

See QShader::shader(QShaderKey)const

*/ @QtUninvokable public final io.qt.gui.rhi.@NonNull QShaderCode shader(io.qt.gui.rhi.@StrictNonNull QShaderKey key){ java.util.Objects.requireNonNull(key, "Argument 'key': null not expected."); return shader_native_cref_QShaderKey_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native io.qt.gui.rhi.QShaderCode shader_native_cref_QShaderKey_constfct(long __this__nativeId, long key); /** *

See QShader::stage()const

*/ @QtUninvokable public final io.qt.gui.rhi.QShader.@NonNull Stage stage(){ return io.qt.gui.rhi.QShader.Stage.resolve(stage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int stage_native_constfct(long __this__nativeId); /** *

See QShader::swap(QShader&)

*

This function was introduced in Qt 6.7.

*/ @QtUninvokable public final void swap(io.qt.gui.rhi.@StrictNonNull QShader other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QShader(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QShader(long __this__nativeId, long other); /** *

See QShader::fromSerialized(QByteArray)

*/ public static io.qt.gui.rhi.@NonNull QShader fromSerialized(io.qt.core.@NonNull QByteArray data){ return fromSerialized_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } private native static io.qt.gui.rhi.QShader fromSerialized_native_cref_QByteArray(long data); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QShader(QPrivateConstructor p) { super(p); } /** *

See operator==(QShader,QShader)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other==null || other instanceof io.qt.gui.rhi.QShader) { return equals((io.qt.gui.rhi.QShader) other); } return false; } /** * Returns the objects's hash code computed by qHash(QShader). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

See operator<<(QDebug,QShader)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QShader::QShader(QShader)

*/ @QtUninvokable @Override public QShader clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QShader clone_native(long __this_nativeId); /** *

Overloaded function for {@link #serialized(io.qt.gui.rhi.QShader.SerializedFormatVersion)} * with version = io.qt.gui.rhi.QShader.SerializedFormatVersion.Latest.

*/ @QtUninvokable public final io.qt.core.@NonNull QByteArray serialized() { return serialized(io.qt.gui.rhi.QShader.SerializedFormatVersion.Latest); } /** *

Overloaded function for {@link #setShader(io.qt.gui.rhi.QShaderKey, io.qt.gui.rhi.QShaderCode)}.

*/ @QtUninvokable public final void setShader(io.qt.gui.rhi.@StrictNonNull QShaderKey key, io.qt.core.@NonNull QByteArray shader) { setShader(key, new io.qt.gui.rhi.QShaderCode(shader)); } /** *

Overloaded function for {@link #fromSerialized(io.qt.core.QByteArray)}.

*/ public static io.qt.gui.rhi.@NonNull QShader fromSerialized(byte @NonNull[] data) { return fromSerialized(new io.qt.core.QByteArray(data)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy