Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qssgiblbaker_p.h"
#include <QFile>
#include <QFileInfo>
#include <QScopeGuard>
#include <QtQuick3DRuntimeRender/private/qssgrhicontext_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrenderloadedtexture_p.h>
#include <QtQuick3DRuntimeRender/private/qssgrendershadercache_p.h>
Go to the source code of this file.
Macros | |
#define | GL_FLOAT 0x1406 |
#define | GL_HALF_FLOAT 0x140B |
#define | GL_UNSIGNED_BYTE 0x1401 |
#define | GL_RGBA 0x1908 |
#define | GL_RGBA8 0x8058 |
#define | GL_RGBA16F 0x881A |
#define | GL_RGBA32F 0x8814 |
Functions | |
static constexpr QSSGRenderTextureFormat | FORMAT (QSSGRenderTextureFormat::RGBA16F) |
QString | renderToKTXFileInternal (const char *name, const QString &inPath, const QString &outPath, QRhi::Implementation impl, QRhiInitParams *initParams) |
void | adjustToPlatformQuirks (QRhi::Implementation &impl) |
QRhi::Implementation | getRhiImplementation () |
QString | renderToKTXFile (const QString &inPath, const QString &outPath) |
Variables | |
static const float | cube [] |
#define GL_FLOAT 0x1406 |
Definition at line 20 of file qssgiblbaker.cpp.
Referenced by QtWaylandClient::DecorationsBlitter::DecorationsBlitter(), QOpenGLTextureBlitter::bind(), QtWaylandClient::DecorationsBlitter::blit(), QRhiGles2::executeCommandBuffer(), QOpenGLTextureBlitterPrivate::prepareProgram(), qt_gl_read_framebuffer_rgba32f(), QQuickOpenGLUtils::resetOpenGLState(), QOpenGLShaderProgram::setAttributeArray(), QOpenGLShaderProgram::setAttributeArray(), QOpenGLShaderProgram::setAttributeArray(), QOpenGLShaderProgram::setAttributeArray(), QOpenGLTextureUploader::textureImage(), toGlTextureFormat(), and QOpenGL2PaintEngineExPrivate::uploadData().
#define GL_HALF_FLOAT 0x140B |
Definition at line 21 of file qssgiblbaker.cpp.
Referenced by renderToKTXFileInternal().
#define GL_RGBA 0x1908 |
Definition at line 23 of file qssgiblbaker.cpp.
Referenced by DrmEglServerBuffer::DrmEglServerBuffer(), LibHybrisEglServerBuffer::LibHybrisEglServerBuffer(), QOpenGLFramebufferObjectFormatPrivate::QOpenGLFramebufferObjectFormatPrivate(), QPlatformGraphicsBufferHelper::bindSWToTexture(), QOpenGLTextureGlyphCache::createTextureData(), effectiveInternalFormat(), QRhiGles2::executeCommandBuffer(), QSGVivanteVideoNode::getVideoFormat2GLFormatMap(), QOpenGLFramebufferObjectPrivate::initColorBuffer(), QOpenGLFramebufferObjectPrivate::initTexture(), load_glyph_image_to_texture(), QOpenGLContextPrivate::maxTextureSize(), QGles2Texture::prepareCreate(), Q_LOGGING_CATEGORY(), qt_gl_read_framebuffer(), qt_gl_read_framebuffer(), qt_gl_read_framebuffer_rgb10a2(), qt_gl_read_framebuffer_rgba16(), qt_gl_read_framebuffer_rgba16f(), qt_gl_read_framebuffer_rgba32f(), qt_gl_read_framebuffer_rgba8(), renderToKTXFileInternal(), QOpenGLTextureGlyphCache::resizeTextureData(), AVFVideoBuffer::textureHandle(), QOpenGLTextureUploader::textureImage(), and toGlTextureFormat().
#define GL_RGBA16F 0x881A |
Definition at line 25 of file qssgiblbaker.cpp.
Referenced by renderToKTXFileInternal().
#define GL_RGBA32F 0x8814 |
Definition at line 26 of file qssgiblbaker.cpp.
#define GL_RGBA8 0x8058 |
Definition at line 24 of file qssgiblbaker.cpp.
#define GL_UNSIGNED_BYTE 0x1401 |
Definition at line 22 of file qssgiblbaker.cpp.
Referenced by DrmEglServerBuffer::DrmEglServerBuffer(), LibHybrisEglServerBuffer::LibHybrisEglServerBuffer(), QPlatformGraphicsBufferHelper::bindSWToTexture(), QOpenGLTextureGlyphCache::createTextureData(), QRhiGles2::executeCommandBuffer(), QOpenGLFramebufferObjectPrivate::initTexture(), load_glyph_image_to_texture(), QOpenGLContextPrivate::maxTextureSize(), QGles2Texture::prepareCreate(), Q_LOGGING_CATEGORY(), qt_gl_read_framebuffer_rgba8(), QOpenGLTextureGlyphCache::resizeTextureData(), AVFVideoBuffer::textureHandle(), QOpenGLTextureUploader::textureImage(), and toGlTextureFormat().
void adjustToPlatformQuirks | ( | QRhi::Implementation & | impl | ) |
Definition at line 580 of file qssgiblbaker.cpp.
References QRhi::create(), QRhi::Metal, QRhi::OpenGLES2, Q_UNUSED, and qDebug.
Referenced by getRhiImplementation().
|
staticconstexpr |
QRhi::Implementation getRhiImplementation | ( | ) |
Definition at line 601 of file qssgiblbaker.cpp.
References adjustToPlatformQuirks(), QByteArray::constData(), QRhi::D3D11, QRhi::D3D12, QByteArray::isEmpty(), QRhi::Metal, QRhi::Null, QRhi::OpenGLES2, QByteArrayLiteral, qgetenv(), qWarning, and QRhi::Vulkan.
Referenced by renderToKTXFile().
Definition at line 640 of file qssgiblbaker.cpp.
References QSurfaceFormat::CoreProfile, QRhi::D3D11, QRhi::D3D12, getRhiImplementation(), QOpenGLContext::LibGL, QRhi::Metal, QRhi::OpenGLES2, QOpenGLContext::openGLModuleType(), QStringLiteral, renderToKTXFileInternal(), and QRhi::Vulkan.
Referenced by QSSGIblBaker::import().
QString renderToKTXFileInternal | ( | const char * | name, |
const QString & | inPath, | ||
const QString & | outPath, | ||
QRhi::Implementation | impl, | ||
QRhiInitParams * | initParams ) |
Definition at line 100 of file qssgiblbaker.cpp.
References cb, QRhiTextureRenderTargetDescription::cbeginColorAttachments(), QRhiGraphicsPipeline::CCW, QRhiSampler::ClampToEdge, QRhiRenderBuffer::Color, QRhiBuffer::create(), QRhi::create(), cube, QRhiTexture::CubeMap, QRhiResource::deleteLater(), QRhiTextureRenderTarget::description(), QRhiBuffer::Dynamic, QRhiVertexInputAttribute::Float3, FORMAT(), QRhiShaderResourceBinding::FragmentStage, QRhiGraphicsPipeline::Front, QSSGRhiContextPrivate::get(), QSSGInputUtil::getStreamForFile(), GL_HALF_FLOAT, GL_RGBA, GL_RGBA16F, QRhiBuffer::Immutable, KTX_IDENTIFIER_LENGTH, ktxIdentifier, QRhiGraphicsPipeline::LessOrEqual, QRhiSampler::Linear, QSSGLoadedTexture::loadHdrImage(), QMatrix4x4::lookAt(), QRhiTexture::MipMapped, QRhiSampler::None, platformEndianIdentifier, Q_ASSERT, qDebug, qMax(), qMin(), QStringLiteral, qWarning, QRhiTexture::RenderTarget, QRhiSampler::Repeat, QRhiTexture::RGBA16F, QSSGRenderTextureFormat::RGBE8, QRhiShaderResourceBinding::sampledTexture(), QRhiVertexInputLayout::setAttributes(), QRhiVertexInputLayout::setBindings(), QRhiTextureRenderTargetDescription::setColorAttachments(), QRhiColorAttachment::setLayer(), QRhiColorAttachment::setLevel(), QRhiColorAttachment::texture(), QRhiBuffer::UniformBuffer, QRhiShaderResourceBinding::uniformBufferWithDynamicOffset(), QRhiTexture::UsedWithGenerateMips, QRhiBuffer::VertexBuffer, QRhiShaderResourceBinding::VertexStage, and QIODeviceBase::WriteOnly.
Referenced by renderToKTXFile().
|
static |
Definition at line 62 of file qssgiblbaker.cpp.
Referenced by renderToKTXFileInternal().