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

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

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

import io.qt.*;


/**
 * 

Describes a single vertex input element

*

Java wrapper for Qt class QRhiVertexInputAttribute

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

Java wrapper for Qt enum QRhiVertexInputAttribute::Format

*/ public enum Format implements QtEnumerator { /** *

Representing QRhiVertexInputAttribute::Float4

*/ Float4(0), /** *

Representing QRhiVertexInputAttribute::Float3

*/ Float3(1), /** *

Representing QRhiVertexInputAttribute::Float2

*/ Float2(2), /** *

Representing QRhiVertexInputAttribute::Float

*/ Float(3), /** *

Representing QRhiVertexInputAttribute::UNormByte4

*/ UNormByte4(4), /** *

Representing QRhiVertexInputAttribute::UNormByte2

*/ UNormByte2(5), /** *

Representing QRhiVertexInputAttribute::UNormByte

*/ UNormByte(6), /** *

Representing QRhiVertexInputAttribute::UInt4

*/ UInt4(7), /** *

Representing QRhiVertexInputAttribute::UInt3

*/ UInt3(8), /** *

Representing QRhiVertexInputAttribute::UInt2

*/ UInt2(9), /** *

Representing QRhiVertexInputAttribute::UInt

*/ UInt(10), /** *

Representing QRhiVertexInputAttribute::SInt4

*/ SInt4(11), /** *

Representing QRhiVertexInputAttribute::SInt3

*/ SInt3(12), /** *

Representing QRhiVertexInputAttribute::SInt2

*/ SInt2(13), /** *

Representing QRhiVertexInputAttribute::SInt

*/ SInt(14), /** *

Representing QRhiVertexInputAttribute::Half4

*/ Half4(15), /** *

Representing QRhiVertexInputAttribute::Half3

*/ Half3(16), /** *

Representing QRhiVertexInputAttribute::Half2

*/ Half2(17), /** *

Representing QRhiVertexInputAttribute::Half

*/ Half(18); static { QtJambi_LibraryUtilities.initialize(); } private Format(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Format resolve(int value) { switch (value) { case 0: return Float4; case 1: return Float3; case 2: return Float2; case 3: return Float; case 4: return UNormByte4; case 5: return UNormByte2; case 6: return UNormByte; case 7: return UInt4; case 8: return UInt3; case 9: return UInt2; case 10: return UInt; case 11: return SInt4; case 12: return SInt3; case 13: return SInt2; case 14: return SInt; case 15: return Half4; case 16: return Half3; case 17: return Half2; case 18: return Half; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QRhiVertexInputAttribute::QRhiVertexInputAttribute()

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

See QRhiVertexInputAttribute::QRhiVertexInputAttribute(QRhiVertexInputAttribute)

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

See QRhiVertexInputAttribute::QRhiVertexInputAttribute(int,int,QRhiVertexInputAttribute::Format,quint32,int)

*/ public QRhiVertexInputAttribute(int binding, int location, io.qt.gui.rhi.QRhiVertexInputAttribute.@NonNull Format format, int offset, int matrixSlice){ super((QPrivateConstructor)null); initialize_native(this, binding, location, format, offset, matrixSlice); } private native static void initialize_native(QRhiVertexInputAttribute instance, int binding, int location, io.qt.gui.rhi.QRhiVertexInputAttribute.Format format, int offset, int matrixSlice); /** *

See QRhiVertexInputAttribute::binding()const

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

See QRhiVertexInputAttribute::format()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiVertexInputAttribute.@NonNull Format format(){ return io.qt.gui.rhi.QRhiVertexInputAttribute.Format.resolve(format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int format_native_constfct(long __this__nativeId); /** *

See QRhiVertexInputAttribute::location()const

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

See QRhiVertexInputAttribute::matrixSlice()const

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

See QRhiVertexInputAttribute::offset()const

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

See operator==(QRhiVertexInputAttribute,QRhiVertexInputAttribute)

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

See QRhiVertexInputAttribute::setBinding(int)

*/ @QtUninvokable public final void setBinding(int b){ setBinding_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), b); } @QtUninvokable private native void setBinding_native_int(long __this__nativeId, int b); /** *

See QRhiVertexInputAttribute::setFormat(QRhiVertexInputAttribute::Format)

*/ @QtUninvokable public final void setFormat(io.qt.gui.rhi.QRhiVertexInputAttribute.@NonNull Format f){ setFormat_native_QRhiVertexInputAttribute_Format(QtJambi_LibraryUtilities.internal.nativeId(this), f.value()); } @QtUninvokable private native void setFormat_native_QRhiVertexInputAttribute_Format(long __this__nativeId, int f); /** *

See QRhiVertexInputAttribute::setLocation(int)

*/ @QtUninvokable public final void setLocation(int loc){ setLocation_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), loc); } @QtUninvokable private native void setLocation_native_int(long __this__nativeId, int loc); /** *

See QRhiVertexInputAttribute::setMatrixSlice(int)

*/ @QtUninvokable public final void setMatrixSlice(int slice){ setMatrixSlice_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), slice); } @QtUninvokable private native void setMatrixSlice_native_int(long __this__nativeId, int slice); /** *

See QRhiVertexInputAttribute::setOffset(quint32)

*/ @QtUninvokable public final void setOffset(int ofs){ setOffset_native_quint32(QtJambi_LibraryUtilities.internal.nativeId(this), ofs); } @QtUninvokable private native void setOffset_native_quint32(long __this__nativeId, int ofs); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiVertexInputAttribute(QPrivateConstructor p) { super(p); } /** *

See operator==(QRhiVertexInputAttribute,QRhiVertexInputAttribute)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.rhi.QRhiVertexInputAttribute) { return equals((io.qt.gui.rhi.QRhiVertexInputAttribute) other); } return false; } /** * Returns the objects's hash code computed by qHash(QRhiVertexInputAttribute). */ @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,QRhiVertexInputAttribute)

*/ @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 QRhiVertexInputAttribute::QRhiVertexInputAttribute(QRhiVertexInputAttribute)

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

Overloaded constructor for {@link #QRhiVertexInputAttribute(int, int, io.qt.gui.rhi.QRhiVertexInputAttribute.Format, int, int)} * with matrixSlice = -1.

*/ public QRhiVertexInputAttribute(int binding, int location, io.qt.gui.rhi.QRhiVertexInputAttribute.@NonNull Format format, int offset) { this(binding, location, format, offset, (int)-1); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy