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

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

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

import io.qt.*;


/**
 * 

Base class for classes encapsulating native resource objects

*

Java wrapper for Qt class QRhiResource

*/ public abstract class QRhiResource extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } @NativeAccess private static final class ConcreteWrapper extends QRhiResource { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public void destroy(){ destroy_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void destroy_native(long __this__nativeId); @Override @QtUninvokable public io.qt.gui.rhi.QRhiResource.@NonNull Type resourceType(){ return io.qt.gui.rhi.QRhiResource.Type.resolve(resourceType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int resourceType_native_constfct(long __this__nativeId); } /** *

Java wrapper for Qt enum QRhiResource::Type

*/ public enum Type implements QtEnumerator { /** *

Representing QRhiResource::Buffer

*/ Buffer(0), /** *

Representing QRhiResource::Texture

*/ Texture(1), /** *

Representing QRhiResource::Sampler

*/ Sampler(2), /** *

Representing QRhiResource::RenderBuffer

*/ RenderBuffer(3), /** *

Representing QRhiResource::RenderPassDescriptor

*/ RenderPassDescriptor(4), /** *

Representing QRhiResource::SwapChainRenderTarget

*/ SwapChainRenderTarget(5), /** *

Representing QRhiResource::TextureRenderTarget

*/ TextureRenderTarget(6), /** *

Representing QRhiResource::ShaderResourceBindings

*/ ShaderResourceBindings(7), /** *

Representing QRhiResource::GraphicsPipeline

*/ GraphicsPipeline(8), /** *

Representing QRhiResource::SwapChain

*/ SwapChain(9), /** *

Representing QRhiResource::ComputePipeline

*/ ComputePipeline(10), /** *

Representing QRhiResource::CommandBuffer

*/ CommandBuffer(11); 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 Buffer; case 1: return Texture; case 2: return Sampler; case 3: return RenderBuffer; case 4: return RenderPassDescriptor; case 5: return SwapChainRenderTarget; case 6: return TextureRenderTarget; case 7: return ShaderResourceBindings; case 8: return GraphicsPipeline; case 9: return SwapChain; case 10: return ComputePipeline; case 11: return CommandBuffer; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QRhiResource::deleteLater()

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

See QRhiResource::globalResourceId()const

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

See QRhiResource::name()const

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

See QRhiResource::rhi()const

*/ @QtUninvokable public final io.qt.gui.rhi.@Nullable QRhi rhi(){ return rhi_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.rhi.QRhi rhi_native_constfct(long __this__nativeId); /** *

See QRhiResource::setName(QByteArray)

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

See QRhiResource::destroy()

*/ @QtUninvokable public abstract void destroy(); @QtUninvokable private native void destroy_native(long __this__nativeId); /** *

See QRhiResource::resourceType()const

*/ @QtUninvokable public abstract io.qt.gui.rhi.QRhiResource.@NonNull Type resourceType(); @QtUninvokable private native int resourceType_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiResource(QPrivateConstructor p) { super(p); } /** *

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy