io.qt.gui.rhi.QRhiTextureRenderTargetDescription Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Describes the color and depth or depth/stencil attachments of a render target
* Java wrapper for Qt class QRhiTextureRenderTargetDescription
* @since This class was introduced in Qt 6.6.
*/
public class QRhiTextureRenderTargetDescription extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcDepthResolveTexture;
@QtPropertyMember(enabled=false)
private Object __rcDepthStencilBuffer;
@QtPropertyMember(enabled=false)
private Object __rcDepthTexture;
/**
* See QRhiTextureRenderTargetDescription:: QRhiTextureRenderTargetDescription()
*/
public QRhiTextureRenderTargetDescription(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiTextureRenderTargetDescription instance);
/**
* See QRhiTextureRenderTargetDescription:: QRhiTextureRenderTargetDescription(QRhiColorAttachment)
* @param colorAttachment
*/
public QRhiTextureRenderTargetDescription(io.qt.gui.rhi.@StrictNonNull QRhiColorAttachment colorAttachment){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(colorAttachment, "Argument 'colorAttachment': null not expected.");
initialize_native(this, colorAttachment);
}
private native static void initialize_native(QRhiTextureRenderTargetDescription instance, io.qt.gui.rhi.QRhiColorAttachment colorAttachment);
/**
*
* @param colorAttachment
* @param depthStencilBuffer
*/
public QRhiTextureRenderTargetDescription(io.qt.gui.rhi.@StrictNonNull QRhiColorAttachment colorAttachment, io.qt.gui.rhi.@Nullable QRhiRenderBuffer depthStencilBuffer){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(colorAttachment, "Argument 'colorAttachment': null not expected.");
initialize_native(this, colorAttachment, depthStencilBuffer);
}
private native static void initialize_native(QRhiTextureRenderTargetDescription instance, io.qt.gui.rhi.QRhiColorAttachment colorAttachment, io.qt.gui.rhi.QRhiRenderBuffer depthStencilBuffer);
/**
*
* @param colorAttachment
* @param depthTexture
*/
public QRhiTextureRenderTargetDescription(io.qt.gui.rhi.@StrictNonNull QRhiColorAttachment colorAttachment, io.qt.gui.rhi.@Nullable QRhiTexture depthTexture){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(colorAttachment, "Argument 'colorAttachment': null not expected.");
initialize_native(this, colorAttachment, depthTexture);
}
private native static void initialize_native(QRhiTextureRenderTargetDescription instance, io.qt.gui.rhi.QRhiColorAttachment colorAttachment, io.qt.gui.rhi.QRhiTexture depthTexture);
/**
* See QRhiTextureRenderTargetDescription:: QRhiTextureRenderTargetDescription(QRhiTextureRenderTargetDescription)
* @param other
*/
public QRhiTextureRenderTargetDescription(io.qt.gui.rhi.@StrictNonNull QRhiTextureRenderTargetDescription other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiTextureRenderTargetDescription instance, io.qt.gui.rhi.QRhiTextureRenderTargetDescription other);
/**
* See QRhiTextureRenderTargetDescription:: colorAttachmentAt(qsizetype)const
* @param index
* @return
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiColorAttachment colorAttachmentAt(long index){
return colorAttachmentAt_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiColorAttachment colorAttachmentAt_native_qsizetype_constfct(long __this__nativeId, long index);
/**
* See QRhiTextureRenderTargetDescription:: colorAttachmentCount()const
* @return
*/
@QtUninvokable
public final long colorAttachmentCount(){
return colorAttachmentCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long colorAttachmentCount_native_constfct(long __this__nativeId);
/**
* See QRhiTextureRenderTargetDescription:: depthResolveTexture()const
* @since This function was introduced in Qt 6.8.
* @return
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiTexture depthResolveTexture(){
return depthResolveTexture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiTexture depthResolveTexture_native_constfct(long __this__nativeId);
/**
* See QRhiTextureRenderTargetDescription:: depthStencilBuffer()const
* @return
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiRenderBuffer depthStencilBuffer(){
return depthStencilBuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiRenderBuffer depthStencilBuffer_native_constfct(long __this__nativeId);
/**
* See QRhiTextureRenderTargetDescription:: depthTexture()const
* @return
*/
@QtUninvokable
public final io.qt.gui.rhi.@Nullable QRhiTexture depthTexture(){
return depthTexture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiTexture depthTexture_native_constfct(long __this__nativeId);
/**
* See QRhiTextureRenderTargetDescription:: setColorAttachments(std::initializer_list<QRhiColorAttachment>)
* @param list
*/
@QtUninvokable
public final void setColorAttachments(io.qt.gui.rhi.@NonNull QRhiColorAttachment@NonNull ... list){
setColorAttachments_native_std_initializer_list(QtJambi_LibraryUtilities.internal.nativeId(this), list);
}
@QtUninvokable
private native void setColorAttachments_native_std_initializer_list(long __this__nativeId, io.qt.gui.rhi.QRhiColorAttachment[] list);
/**
* See QRhiTextureRenderTargetDescription:: setDepthResolveTexture(QRhiTexture*)
* @since This function was introduced in Qt 6.8.
* @param tex
*/
@QtUninvokable
public final void setDepthResolveTexture(io.qt.gui.rhi.@Nullable QRhiTexture tex){
InternalAccess.NativeIdInfo __tex__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(tex);
setDepthResolveTexture_native_QRhiTexture_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __tex__NativeIdInfo.nativeId());
if (__tex__NativeIdInfo.needsReferenceCounting()) {
__rcDepthResolveTexture = tex;
}else{
__rcDepthResolveTexture = null;
}
}
@QtUninvokable
private native void setDepthResolveTexture_native_QRhiTexture_ptr(long __this__nativeId, long tex);
/**
* See QRhiTextureRenderTargetDescription:: setDepthStencilBuffer(QRhiRenderBuffer*)
* @param renderBuffer
*/
@QtUninvokable
public final void setDepthStencilBuffer(io.qt.gui.rhi.@Nullable QRhiRenderBuffer renderBuffer){
InternalAccess.NativeIdInfo __renderBuffer__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(renderBuffer);
setDepthStencilBuffer_native_QRhiRenderBuffer_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __renderBuffer__NativeIdInfo.nativeId());
if (__renderBuffer__NativeIdInfo.needsReferenceCounting()) {
__rcDepthStencilBuffer = renderBuffer;
}else{
__rcDepthStencilBuffer = null;
}
}
@QtUninvokable
private native void setDepthStencilBuffer_native_QRhiRenderBuffer_ptr(long __this__nativeId, long renderBuffer);
/**
* See QRhiTextureRenderTargetDescription:: setDepthTexture(QRhiTexture*)
* @param texture
*/
@QtUninvokable
public final void setDepthTexture(io.qt.gui.rhi.@Nullable QRhiTexture texture){
InternalAccess.NativeIdInfo __texture__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(texture);
setDepthTexture_native_QRhiTexture_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __texture__NativeIdInfo.nativeId());
if (__texture__NativeIdInfo.needsReferenceCounting()) {
__rcDepthTexture = texture;
}else{
__rcDepthTexture = null;
}
}
@QtUninvokable
private native void setDepthTexture_native_QRhiTexture_ptr(long __this__nativeId, long texture);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiTextureRenderTargetDescription(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QRhiTextureRenderTargetDescription:: QRhiTextureRenderTargetDescription(QRhiTextureRenderTargetDescription)
*/
@QtUninvokable
@Override
public QRhiTextureRenderTargetDescription clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiTextureRenderTargetDescription clone_native(long __this_nativeId);
}