io.qt.gui.rhi.QRhiShaderResourceBinding Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Describes the shader resource for a single binding point
* Java wrapper for Qt class QRhiShaderResourceBinding
*/
public class QRhiShaderResourceBinding extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QRhiShaderResourceBinding::StageFlag
*
* @see StageFlags
*/
public enum StageFlag implements QtFlagEnumerator {
/**
* Representing QRhiShaderResourceBinding:: VertexStage
*/
VertexStage(1),
/**
* Representing QRhiShaderResourceBinding:: TessellationControlStage
*/
TessellationControlStage(2),
/**
* Representing QRhiShaderResourceBinding:: TessellationEvaluationStage
*/
TessellationEvaluationStage(4),
/**
* Representing QRhiShaderResourceBinding:: GeometryStage
*/
GeometryStage(8),
/**
* Representing QRhiShaderResourceBinding:: FragmentStage
*/
FragmentStage(16),
/**
* Representing QRhiShaderResourceBinding:: ComputeStage
*/
ComputeStage(32);
static {
QtJambi_LibraryUtilities.initialize();
}
private StageFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull StageFlags asFlags() {
return new StageFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull StageFlags combined(@NonNull StageFlag e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull StageFlags cleared(@NonNull StageFlag e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link StageFlags} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull StageFlags flags(@Nullable StageFlag @NonNull... values) {
return new StageFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull StageFlag resolve(int value) {
switch (value) {
case 1: return VertexStage;
case 2: return TessellationControlStage;
case 4: return TessellationEvaluationStage;
case 8: return GeometryStage;
case 16: return FragmentStage;
case 32: return ComputeStage;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link StageFlag}
*/
public static final class StageFlags extends QFlags implements Comparable {
private static final long serialVersionUID = 0xc916737d7be20a21L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new StageFlags where the flags in args
are set.
* @param args enum entries
*/
public StageFlags(@Nullable StageFlag @NonNull... args){
super(args);
}
/**
* Creates a new StageFlags with given value
.
* @param value
*/
public StageFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new StageFlags
*/
@Override
public final @NonNull StageFlags combined(@StrictNonNull StageFlag e){
return new StageFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull StageFlags setFlag(@Nullable StageFlag e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull StageFlags setFlag(@Nullable StageFlag e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this StageFlags.
* @return array of enum entries
*/
@Override
public final @NonNull StageFlag @NonNull[] flags(){
return super.flags(StageFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull StageFlags clone(){
return new StageFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull StageFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QRhiShaderResourceBinding::Type
*/
public enum Type implements QtEnumerator {
/**
* Representing QRhiShaderResourceBinding:: UniformBuffer
*/
UniformBuffer(0),
/**
* Representing QRhiShaderResourceBinding:: SampledTexture
*/
SampledTexture(1),
/**
* Representing QRhiShaderResourceBinding:: Texture
*/
Texture(2),
/**
* Representing QRhiShaderResourceBinding:: Sampler
*/
Sampler(3),
/**
* Representing QRhiShaderResourceBinding:: ImageLoad
*/
ImageLoad(4),
/**
* Representing QRhiShaderResourceBinding:: ImageStore
*/
ImageStore(5),
/**
* Representing QRhiShaderResourceBinding:: ImageLoadStore
*/
ImageLoadStore(6),
/**
* Representing QRhiShaderResourceBinding:: BufferLoad
*/
BufferLoad(7),
/**
* Representing QRhiShaderResourceBinding:: BufferStore
*/
BufferStore(8),
/**
* Representing QRhiShaderResourceBinding:: BufferLoadStore
*/
BufferLoadStore(9);
static {
QtJambi_LibraryUtilities.initialize();
}
private Type(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 Type resolve(int value) {
switch (value) {
case 0: return UniformBuffer;
case 1: return SampledTexture;
case 2: return Texture;
case 3: return Sampler;
case 4: return ImageLoad;
case 5: return ImageStore;
case 6: return ImageLoadStore;
case 7: return BufferLoad;
case 8: return BufferStore;
case 9: return BufferLoadStore;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt class QRhiShaderResourceBinding::TextureAndSampler
*/
public static class TextureAndSampler extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcSampler = null;
@QtPropertyMember(enabled=false)
private Object __rcTex = null;
/**
* See QRhiShaderResourceBinding::TextureAndSampler:: TextureAndSampler()
*/
public TextureAndSampler(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(TextureAndSampler instance);
/**
* See QRhiShaderResourceBinding::TextureAndSampler:: TextureAndSampler(QRhiShaderResourceBinding::TextureAndSampler)
*/
public TextureAndSampler(io.qt.gui.rhi.QRhiShaderResourceBinding.@StrictNonNull TextureAndSampler other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(TextureAndSampler instance, io.qt.gui.rhi.QRhiShaderResourceBinding.TextureAndSampler other);
/**
* See QRhiShaderResourceBinding::TextureAndSampler:: TextureAndSampler{QRhiTexture*, QRhiSampler*}
*/
public TextureAndSampler(io.qt.gui.rhi.@Nullable QRhiTexture tex, io.qt.gui.rhi.@Nullable QRhiSampler sampler){
super((QPrivateConstructor)null);
initialize_native(this, tex, sampler);
}
private native static void initialize_native(TextureAndSampler instance, io.qt.gui.rhi.QRhiTexture tex, io.qt.gui.rhi.QRhiSampler sampler);
/**
* See QRhiShaderResourceBinding::TextureAndSampler:: sampler
*/
@QtUninvokable
public final void setSampler(io.qt.gui.rhi.@Nullable QRhiSampler sampler){
setSampler_native_QRhiSampler_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sampler));
__rcSampler = sampler;
}
@QtUninvokable
private native void setSampler_native_QRhiSampler_ptr(long __this__nativeId, long sampler);
/**
* See QRhiShaderResourceBinding::TextureAndSampler:: sampler
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiSampler sampler(){
return sampler_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiSampler sampler_native(long __this__nativeId);
/**
* See QRhiShaderResourceBinding::TextureAndSampler:: tex
*/
@QtUninvokable
public final void setTex(io.qt.gui.rhi.@Nullable QRhiTexture tex){
setTex_native_QRhiTexture_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(tex));
__rcTex = tex;
}
@QtUninvokable
private native void setTex_native_QRhiTexture_ptr(long __this__nativeId, long tex);
/**
* See QRhiShaderResourceBinding::TextureAndSampler:: tex
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiTexture tex(){
return tex_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiTexture tex_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected TextureAndSampler(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QRhiShaderResourceBinding::TextureAndSampler:: TextureAndSampler(QRhiShaderResourceBinding::TextureAndSampler)
*/
@QtUninvokable
@Override
public TextureAndSampler clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native TextureAndSampler clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #sampler()} instead.
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiSampler getSampler() {
return sampler();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #tex()} instead.
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiTexture getTex() {
return tex();
}
}
/**
* See QRhiShaderResourceBinding:: QRhiShaderResourceBinding()
*/
public QRhiShaderResourceBinding(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiShaderResourceBinding instance);
/**
* See QRhiShaderResourceBinding:: QRhiShaderResourceBinding(QRhiShaderResourceBinding)
*/
public QRhiShaderResourceBinding(io.qt.gui.rhi.@StrictNonNull QRhiShaderResourceBinding other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiShaderResourceBinding instance, io.qt.gui.rhi.QRhiShaderResourceBinding other);
/**
* See QRhiShaderResourceBinding:: isLayoutCompatible(QRhiShaderResourceBinding)const
*/
@QtUninvokable
public final boolean isLayoutCompatible(io.qt.gui.rhi.@StrictNonNull QRhiShaderResourceBinding other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
return isLayoutCompatible_native_cref_QRhiShaderResourceBinding_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean isLayoutCompatible_native_cref_QRhiShaderResourceBinding_constfct(long __this__nativeId, long other);
/**
* See operator==(QRhiShaderResourceBinding, QRhiShaderResourceBinding)
*/
@QtUninvokable
public final boolean equals(io.qt.gui.rhi.@StrictNonNull QRhiShaderResourceBinding b){
java.util.Objects.requireNonNull(b, "Argument 'b': null not expected.");
return equals_native_cref_QRhiShaderResourceBinding(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(b));
}
@QtUninvokable
private native boolean equals_native_cref_QRhiShaderResourceBinding(long __this__nativeId, long b);
/**
* See QRhiShaderResourceBinding:: bufferLoad(int, QRhiShaderResourceBinding::StageFlags, QRhiBuffer*)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding bufferLoad(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf){
return bufferLoad_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding bufferLoad_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(int binding, int stage, long buf);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding bufferLoad(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf, int offset, int size){
return bufferLoad_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), offset, size);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding bufferLoad_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(int binding, int stage, long buf, int offset, int size);
/**
* See QRhiShaderResourceBinding:: bufferLoadStore(int, QRhiShaderResourceBinding::StageFlags, QRhiBuffer*)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding bufferLoadStore(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf){
return bufferLoadStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding bufferLoadStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(int binding, int stage, long buf);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding bufferLoadStore(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf, int offset, int size){
return bufferLoadStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), offset, size);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding bufferLoadStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(int binding, int stage, long buf, int offset, int size);
/**
* See QRhiShaderResourceBinding:: bufferStore(int, QRhiShaderResourceBinding::StageFlags, QRhiBuffer*)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding bufferStore(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf){
return bufferStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding bufferStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(int binding, int stage, long buf);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding bufferStore(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf, int offset, int size){
return bufferStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), offset, size);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding bufferStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(int binding, int stage, long buf, int offset, int size);
/**
* See QRhiShaderResourceBinding:: imageLoad(int, QRhiShaderResourceBinding::StageFlags, QRhiTexture*, int)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding imageLoad(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiTexture tex, int level){
return imageLoad_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_int(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(tex), level);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding imageLoad_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_int(int binding, int stage, long tex, int level);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding imageLoadStore(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiTexture tex, int level){
return imageLoadStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_int(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(tex), level);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding imageLoadStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_int(int binding, int stage, long tex, int level);
/**
* See QRhiShaderResourceBinding:: imageStore(int, QRhiShaderResourceBinding::StageFlags, QRhiTexture*, int)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding imageStore(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiTexture tex, int level){
return imageStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_int(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(tex), level);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding imageStore_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_int(int binding, int stage, long tex, int level);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding sampledTexture(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiTexture tex, io.qt.gui.rhi.@Nullable QRhiSampler sampler){
return sampledTexture_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_QRhiSampler_ptr(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(tex), QtJambi_LibraryUtilities.internal.checkedNativeId(sampler));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding sampledTexture_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr_QRhiSampler_ptr(int binding, int stage, long tex, long sampler);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding sampledTextures(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, int count, io.qt.gui.rhi.QRhiShaderResourceBinding.@Nullable TextureAndSampler texSamplers){
return sampledTextures_native_int_QRhiShaderResourceBinding_StageFlags_int_const_QRhiShaderResourceBinding_TextureAndSampler_ptr(binding, stage.value(), count, QtJambi_LibraryUtilities.internal.checkedNativeId(texSamplers));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding sampledTextures_native_int_QRhiShaderResourceBinding_StageFlags_int_const_QRhiShaderResourceBinding_TextureAndSampler_ptr(int binding, int stage, int count, long texSamplers);
/**
* See QRhiShaderResourceBinding:: sampler(int, QRhiShaderResourceBinding::StageFlags, QRhiSampler*)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding sampler(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiSampler sampler){
return sampler_native_int_QRhiShaderResourceBinding_StageFlags_QRhiSampler_ptr(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(sampler));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding sampler_native_int_QRhiShaderResourceBinding_StageFlags_QRhiSampler_ptr(int binding, int stage, long sampler);
/**
* See QRhiShaderResourceBinding:: serializeLayoutDescription<Output>(const QRhiShaderResourceBinding*, const QRhiShaderResourceBinding*, Output)
*/
public static void serializeLayoutDescription(io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding @NonNull[] first, java.util.@NonNull Collection<@NonNull@QtPrimitiveType Integer> dst){
serializeLayoutDescription_native_const_QRhiShaderResourceBinding_ptr_const_QRhiShaderResourceBinding_ptr_QList(first, dst);
}
private native static void serializeLayoutDescription_native_const_QRhiShaderResourceBinding_ptr_const_QRhiShaderResourceBinding_ptr_QList(io.qt.gui.rhi.QRhiShaderResourceBinding[] first, java.util.Collection<@NonNull@QtPrimitiveType Integer> dst);
/**
* See QRhiShaderResourceBinding:: serializeLayoutDescription<Output>(const QRhiShaderResourceBinding*, const QRhiShaderResourceBinding*, Output)
*/
public static void serializeLayoutDescription(io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding @NonNull[] first, io.qt.gui.rhi.@Nullable QRhiShaderResourceBinding last, java.nio.@StrictNonNull IntBuffer dst){
java.util.Objects.requireNonNull(dst, "Argument 'dst': null not expected.");
serializeLayoutDescription_native_const_QRhiShaderResourceBinding_ptr_const_QRhiShaderResourceBinding_ptr_quint32_ptr(first, QtJambi_LibraryUtilities.internal.checkedNativeId(last), dst);
}
private native static void serializeLayoutDescription_native_const_QRhiShaderResourceBinding_ptr_const_QRhiShaderResourceBinding_ptr_quint32_ptr(io.qt.gui.rhi.QRhiShaderResourceBinding[] first, long last, java.nio.IntBuffer dst);
/**
* See QRhiShaderResourceBinding:: texture(int, QRhiShaderResourceBinding::StageFlags, QRhiTexture*)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding texture(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiTexture tex){
return texture_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(tex));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding texture_native_int_QRhiShaderResourceBinding_StageFlags_QRhiTexture_ptr(int binding, int stage, long tex);
/**
* See QRhiShaderResourceBinding:: textures(int, QRhiShaderResourceBinding::StageFlags, int, QRhiTexture**)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding textures(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiTexture @StrictNonNull[] tex){
java.util.Objects.requireNonNull(tex, "Argument 'tex': null not expected.");
return textures_native_int_QRhiShaderResourceBinding_StageFlags_int_QRhiTexture_ptr_ptr(binding, stage.value(), tex);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding textures_native_int_QRhiShaderResourceBinding_StageFlags_int_QRhiTexture_ptr_ptr(int binding, int stage, io.qt.gui.rhi.QRhiTexture[] tex);
/**
* See QRhiShaderResourceBinding:: uniformBuffer(int, QRhiShaderResourceBinding::StageFlags, QRhiBuffer*)
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding uniformBuffer(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf){
return uniformBuffer_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf));
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding uniformBuffer_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr(int binding, int stage, long buf);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding uniformBuffer(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf, int offset, int size){
return uniformBuffer_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), offset, size);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding uniformBuffer_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32_quint32(int binding, int stage, long buf, int offset, int size);
/**
*
*/
public static io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding uniformBufferWithDynamicOffset(int binding, io.qt.gui.rhi.QRhiShaderResourceBinding.@NonNull StageFlags stage, io.qt.gui.rhi.@Nullable QRhiBuffer buf, int size){
return uniformBufferWithDynamicOffset_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32(binding, stage.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), size);
}
private native static io.qt.gui.rhi.QRhiShaderResourceBinding uniformBufferWithDynamicOffset_native_int_QRhiShaderResourceBinding_StageFlags_QRhiBuffer_ptr_quint32(int binding, int stage, long buf, int size);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiShaderResourceBinding(QPrivateConstructor p) { super(p); }
/**
* See operator==(QRhiShaderResourceBinding, QRhiShaderResourceBinding)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.rhi.QRhiShaderResourceBinding) {
return equals((io.qt.gui.rhi.QRhiShaderResourceBinding) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QRhiShaderResourceBinding)
.
*/
@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, QRhiShaderResourceBinding)
*/
@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 QRhiShaderResourceBinding:: QRhiShaderResourceBinding(QRhiShaderResourceBinding)
*/
@QtUninvokable
@Override
public QRhiShaderResourceBinding clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiShaderResourceBinding clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #serializeLayoutDescription(io.qt.gui.rhi.QRhiShaderResourceBinding[], io.qt.gui.rhi.QRhiShaderResourceBinding, java.nio.IntBuffer)}.
*/
public static void serializeLayoutDescription(io.qt.gui.rhi.@NonNull QRhiShaderResourceBinding @NonNull[] first, io.qt.gui.rhi.@Nullable QRhiShaderResourceBinding last, int @NonNull[] dst) {
serializeLayoutDescription(first, last, dst==null ? null : java.nio.IntBuffer.wrap(dst));
}
}