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

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

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

import io.qt.*;


/**
 * 

Records upload and copy type of operations

*

Java wrapper for Qt class QRhiResourceUpdateBatch

*/ public final class QRhiResourceUpdateBatch extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QRhiResourceUpdateBatch::copyTexture(QRhiTexture*,QRhiTexture*,QRhiTextureCopyDescription)

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

See QRhiResourceUpdateBatch::generateMips(QRhiTexture*)

*/ @QtUninvokable public final void generateMips(io.qt.gui.rhi.@Nullable QRhiTexture tex){ generateMips_native_QRhiTexture_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(tex)); } @QtUninvokable private native void generateMips_native_QRhiTexture_ptr(long __this__nativeId, long tex); /** *

See QRhiResourceUpdateBatch::hasOptimalCapacity()const

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

See QRhiResourceUpdateBatch::merge(QRhiResourceUpdateBatch*)

*/ @QtUninvokable public final void merge(io.qt.gui.rhi.@Nullable QRhiResourceUpdateBatch other){ merge_native_QRhiResourceUpdateBatch_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void merge_native_QRhiResourceUpdateBatch_ptr(long __this__nativeId, long other); /** *

See QRhiResourceUpdateBatch::readBackBuffer(QRhiBuffer*,quint32,quint32,QRhiReadbackResult*)

*/ @QtUninvokable public final void readBackBuffer(io.qt.gui.rhi.@Nullable QRhiBuffer buf, int offset, int size, io.qt.gui.rhi.@Nullable QRhiReadbackResult result){ readBackBuffer_native_QRhiBuffer_ptr_quint32_quint32_QRhiReadbackResult_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), offset, size, QtJambi_LibraryUtilities.internal.checkedNativeId(result)); } @QtUninvokable private native void readBackBuffer_native_QRhiBuffer_ptr_quint32_quint32_QRhiReadbackResult_ptr(long __this__nativeId, long buf, int offset, int size, long result); /** *

See QRhiResourceUpdateBatch::readBackTexture(QRhiReadbackDescription,QRhiReadbackResult*)

*/ @QtUninvokable public final void readBackTexture(io.qt.gui.rhi.@StrictNonNull QRhiReadbackDescription rb, io.qt.gui.rhi.@Nullable QRhiReadbackResult result){ java.util.Objects.requireNonNull(rb, "Argument 'rb': null not expected."); readBackTexture_native_cref_QRhiReadbackDescription_QRhiReadbackResult_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rb), QtJambi_LibraryUtilities.internal.checkedNativeId(result)); } @QtUninvokable private native void readBackTexture_native_cref_QRhiReadbackDescription_QRhiReadbackResult_ptr(long __this__nativeId, long rb, long result); /** *

See QRhiResourceUpdateBatch::release()

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

See QRhiResourceUpdateBatch::updateDynamicBuffer(QRhiBuffer*,quint32,quint32,const void*)

*/ @QtUninvokable public final void updateDynamicBuffer(io.qt.gui.rhi.@Nullable QRhiBuffer buf, int offset, java.nio.@Nullable Buffer data){ updateDynamicBuffer_native_QRhiBuffer_ptr_quint32_quint32_const_void_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), offset, data); } @QtUninvokable private native void updateDynamicBuffer_native_QRhiBuffer_ptr_quint32_quint32_const_void_ptr(long __this__nativeId, long buf, int offset, java.nio.Buffer data); /** *

See QRhiResourceUpdateBatch::uploadStaticBuffer(QRhiBuffer*,const void*)

*/ @QtUninvokable public final void uploadStaticBuffer(io.qt.gui.rhi.@Nullable QRhiBuffer buf, java.nio.@Nullable Buffer data){ uploadStaticBuffer_native_QRhiBuffer_ptr_const_void_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), data); } @QtUninvokable private native void uploadStaticBuffer_native_QRhiBuffer_ptr_const_void_ptr(long __this__nativeId, long buf, java.nio.Buffer data); /** *

See QRhiResourceUpdateBatch::uploadStaticBuffer(QRhiBuffer*,quint32,quint32,const void*)

*/ @QtUninvokable public final void uploadStaticBuffer(io.qt.gui.rhi.@Nullable QRhiBuffer buf, int offset, java.nio.@Nullable Buffer data){ uploadStaticBuffer_native_QRhiBuffer_ptr_quint32_quint32_const_void_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(buf), offset, data); } @QtUninvokable private native void uploadStaticBuffer_native_QRhiBuffer_ptr_quint32_quint32_const_void_ptr(long __this__nativeId, long buf, int offset, java.nio.Buffer data); /** *

See QRhiResourceUpdateBatch::uploadTexture(QRhiTexture*,QImage)

*/ @QtUninvokable public final void uploadTexture(io.qt.gui.rhi.@Nullable QRhiTexture tex, io.qt.gui.@NonNull QImage image){ uploadTexture_native_QRhiTexture_ptr_cref_QImage(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(tex), QtJambi_LibraryUtilities.internal.checkedNativeId(image)); } @QtUninvokable private native void uploadTexture_native_QRhiTexture_ptr_cref_QImage(long __this__nativeId, long tex, long image); /** *

See QRhiResourceUpdateBatch::uploadTexture(QRhiTexture*,QRhiTextureUploadDescription)

*/ @QtUninvokable public final void uploadTexture(io.qt.gui.rhi.@Nullable QRhiTexture tex, io.qt.gui.rhi.@StrictNonNull QRhiTextureUploadDescription desc){ java.util.Objects.requireNonNull(desc, "Argument 'desc': null not expected."); uploadTexture_native_QRhiTexture_ptr_cref_QRhiTextureUploadDescription(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(tex), QtJambi_LibraryUtilities.internal.checkedNativeId(desc)); } @QtUninvokable private native void uploadTexture_native_QRhiTexture_ptr_cref_QRhiTextureUploadDescription(long __this__nativeId, long tex, long desc); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiResourceUpdateBatch(QPrivateConstructor p) { super(p); } /** *

Overloaded function for {@link #copyTexture(io.qt.gui.rhi.QRhiTexture, io.qt.gui.rhi.QRhiTexture, io.qt.gui.rhi.QRhiTextureCopyDescription)} * with desc = new io.qt.gui.rhi.QRhiTextureCopyDescription().

*/ @QtUninvokable public final void copyTexture(io.qt.gui.rhi.@Nullable QRhiTexture dst, io.qt.gui.rhi.@Nullable QRhiTexture src) { copyTexture(dst, src, new io.qt.gui.rhi.QRhiTextureCopyDescription()); } /** *

Overloaded function for {@link #uploadTexture(io.qt.gui.rhi.QRhiTexture, io.qt.gui.rhi.QRhiTextureUploadDescription)}.

*/ @QtUninvokable public final void uploadTexture(io.qt.gui.rhi.@Nullable QRhiTexture tex, io.qt.gui.rhi.@StrictNonNull QRhiTextureUploadEntry desc) { uploadTexture(tex, new io.qt.gui.rhi.QRhiTextureUploadDescription(desc)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy