![]() |
Qt 6.x
The Qt SDK
|
#include "qrhid3d11_p.h"
#include "qshader.h"
#include "vs_test_p.h"
#include <QWindow>
#include <qmath.h>
#include <QtCore/qcryptographichash.h>
#include <QtCore/private/qsystemerror_p.h>
#include "qrhid3dhelpers_p.h"
Go to the source code of this file.
Classes | |
struct | QD3D11PipelineCacheDataHeader |
Macros | |
#define | DXGI_ADAPTER_FLAG_SOFTWARE 2 |
\variable QRhiD3D11NativeHandles::dev | |
#define | D3D11_1_UAV_SLOT_COUNT 64 |
#define | D3D11_VS_INPUT_REGISTER_COUNT 32 |
#define | SETUBUFBATCH(stagePrefixL, stagePrefixU) |
#define | SETSAMPLERBATCH(stagePrefixL, stagePrefixU) |
#define | SETUAVBATCH(stagePrefixL, stagePrefixU) |
#define | SETSHADER(StageL, StageU) |
Variables | |
static const int | RBM_SUPPORTED_STAGES = 6 |
static const int | RBM_VERTEX = 0 |
static const int | RBM_HULL = 1 |
static const int | RBM_DOMAIN = 2 |
static const int | RBM_GEOMETRY = 3 |
static const int | RBM_FRAGMENT = 4 |
static const int | RBM_COMPUTE = 5 |
static const DXGI_FORMAT | DEFAULT_FORMAT = DXGI_FORMAT_R8G8B8A8_UNORM |
static const DXGI_FORMAT | DEFAULT_SRGB_FORMAT = DXGI_FORMAT_R8G8B8A8_UNORM_SRGB |
#define D3D11_1_UAV_SLOT_COUNT 64 |
Definition at line 120 of file qrhid3d11.cpp.
#define D3D11_VS_INPUT_REGISTER_COUNT 32 |
Definition at line 124 of file qrhid3d11.cpp.
#define DXGI_ADAPTER_FLAG_SOFTWARE 2 |
\variable QRhiD3D11NativeHandles::dev
\variable QRhiD3D11NativeHandles::context
\variable QRhiD3D11NativeHandles::featureLevel
\variable QRhiD3D11NativeHandles::adapterLuidLow
\variable QRhiD3D11NativeHandles::adapterLuidHigh
Definition at line 116 of file qrhid3d11.cpp.
#define SETSAMPLERBATCH | ( | stagePrefixL, | |
stagePrefixU | |||
) |
Definition at line 2505 of file qrhid3d11.cpp.
#define SETSHADER | ( | StageL, | |
StageU | |||
) |
Definition at line 2637 of file qrhid3d11.cpp.
#define SETUAVBATCH | ( | stagePrefixL, | |
stagePrefixU | |||
) |
Definition at line 2524 of file qrhid3d11.cpp.
#define SETUBUFBATCH | ( | stagePrefixL, | |
stagePrefixU | |||
) |
Definition at line 2476 of file qrhid3d11.cpp.
Definition at line 151 of file qrhid3d11.cpp.
Referenced by bindingDataFromPropertyData(), QD3D11Buffer::create(), QMetalBuffer::create(), QRhiVulkan::createTransientImage(), QQC2::QCommonStyle::drawControl(), QCommonStyle::drawControl(), QX11PaintEngine::drawEllipse(), QRhiMetal::drawIndexed(), QStyle::drawItemPixmap(), QQC2::QStyle::drawItemPixmap(), QRhiD3D11::enqueueSubresUpload(), QRhiMetal::enqueueSubresUpload(), QX11PaintEnginePrivate::fillPolygon_dev(), QRhiVulkan::prepareUploadSubres(), QSGOpenVGInternalRectangleNode::setAligned(), QSGBasicInternalRectangleNode::setAligned(), QQuickAnchors::setAlignWhenCentered(), QQuickPen::setPixelAligned(), QRhiD3D11::setShaderResources(), QRhiVulkan::subresUploadByteSize(), QD3D11Buffer::unorderedAccessView(), QRhiD3D11::updateShaderResourceBindings(), QRhiVulkan::updateShaderResourceBindings(), and QScrollAreaPrivate::updateWidgetPosition().
|
static |
Definition at line 2442 of file qrhid3d11.cpp.
References QRhiBatchedBindings< T >::batches.
|
inlinestatic |
Definition at line 2466 of file qrhid3d11.cpp.
References qWarning.
|
static |
Definition at line 156 of file qrhid3d11.cpp.
References qPrintable, and qWarning.
Referenced by QRhiD3D11::create().
|
inlinestatic |
Definition at line 1528 of file qrhid3d11.cpp.
References QRhiTexture::D16, QRhiTexture::D24, QRhiTexture::D24S8, and QRhiTexture::D32F.
Referenced by QD3D11Texture::create(), QVkTexture::create(), QD3D11Texture::finishCreate(), and QD3D11Texture::prepareCreate().
|
inlinestatic |
Definition at line 2127 of file qrhid3d11.cpp.
References QMap< Key, T >::cend(), QMap< Key, T >::constFind(), QMap< Key, T >::isEmpty(), it, and map.
Referenced by QRhiMetal::enqueueShaderResourceBindings(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 4866 of file qrhid3d11.cpp.
References QRect::center(), QRect::contains(), desc, i, ok, output, QRect::size(), and QRect::topLeft().
Referenced by outputDesc1ForWindow().
|
static |
Definition at line 4893 of file qrhid3d11.cpp.
References ok, and output6ForWindow().
Referenced by QD3D11SwapChain::createOrResize(), QD3D11SwapChain::hdrInfo(), and QD3D11SwapChain::isFormatSupported().
|
inline |
Definition at line 3990 of file qrhid3d11.cpp.
Referenced by QD3D11GraphicsPipeline::destroy().
|
inlinestatic |
Definition at line 1928 of file qrhid3d11.cpp.
References QRHI_RES, QRhiResource::resourceType(), QRhiResource::SwapChainRenderTarget, and QRhiResource::TextureRenderTarget.
Referenced by QRhiD3D11::beginPass(), and QRhiD3D11::executeCommandBuffer().
|
inlinestatic |
Definition at line 4264 of file qrhid3d11.cpp.
References QCryptographicHash::addData(), QCryptographicHash::result(), QCryptographicHash::Sha1, and QByteArray::toHex().
Referenced by QRhiD3D11::compileHlslShaderSource(), and QRhiD3D11::setPipelineCacheData().
|
inlinestatic |
Definition at line 1500 of file qrhid3d11.cpp.
References QRhiTexture::BGRA8, qWarning, QRhiTexture::RGB10A2, QRhiTexture::RGBA16F, QRhiTexture::RGBA32F, QRhiTexture::RGBA8, QRhiTexture::sRGB, and QRhiTexture::UnknownFormat.
Referenced by QRhiD3D11::enqueueResourceUpdates(), and QRhiVulkan::enqueueResourceUpdates().
|
inlinestatic |
Definition at line 3558 of file qrhid3d11.cpp.
References QRhiSampler::ClampToEdge, QRhiSampler::Mirror, and QRhiSampler::Repeat.
Referenced by QD3D11Sampler::create().
|
inlinestatic |
Definition at line 4111 of file qrhid3d11.cpp.
References QRhiVertexInputAttribute::Float, QRhiVertexInputAttribute::Float2, QRhiVertexInputAttribute::Float3, QRhiVertexInputAttribute::Float4, QRhiVertexInputAttribute::Half, QRhiVertexInputAttribute::Half2, QRhiVertexInputAttribute::Half3, QRhiVertexInputAttribute::Half4, QRhiVertexInputAttribute::SInt, QRhiVertexInputAttribute::SInt2, QRhiVertexInputAttribute::SInt3, QRhiVertexInputAttribute::SInt4, QRhiVertexInputAttribute::UInt, QRhiVertexInputAttribute::UInt2, QRhiVertexInputAttribute::UInt3, QRhiVertexInputAttribute::UInt4, QRhiVertexInputAttribute::UNormByte, QRhiVertexInputAttribute::UNormByte2, and QRhiVertexInputAttribute::UNormByte4.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 4194 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::ConstantAlpha, QRhiGraphicsPipeline::ConstantColor, QRhiGraphicsPipeline::DstAlpha, QRhiGraphicsPipeline::DstColor, QRhiGraphicsPipeline::One, QRhiGraphicsPipeline::OneMinusConstantAlpha, QRhiGraphicsPipeline::OneMinusConstantColor, QRhiGraphicsPipeline::OneMinusDstAlpha, QRhiGraphicsPipeline::OneMinusDstColor, QRhiGraphicsPipeline::OneMinusSrc1Alpha, QRhiGraphicsPipeline::OneMinusSrc1Color, QRhiGraphicsPipeline::OneMinusSrcAlpha, QRhiGraphicsPipeline::OneMinusSrcColor, rgb, QRhiGraphicsPipeline::Src1Alpha, QRhiGraphicsPipeline::Src1Color, QRhiGraphicsPipeline::SrcAlpha, QRhiGraphicsPipeline::SrcAlphaSaturate, QRhiGraphicsPipeline::SrcColor, and QRhiGraphicsPipeline::Zero.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 4245 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::Add, QRhiGraphicsPipeline::Max, QRhiGraphicsPipeline::Min, QRhiGraphicsPipeline::ReverseSubtract, and QRhiGraphicsPipeline::Subtract.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 2866 of file qrhid3d11.cpp.
References QRhiBuffer::IndexBuffer, QRhiBuffer::StorageBuffer, QRhiBuffer::UniformBuffer, and QRhiBuffer::VertexBuffer.
Referenced by QD3D11Buffer::create().
|
inlinestatic |
Definition at line 4180 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::A, QRhiGraphicsPipeline::B, QRhiGraphicsPipeline::G, and QRhiGraphicsPipeline::R.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 4061 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::Always, QRhiGraphicsPipeline::Equal, QRhiGraphicsPipeline::Greater, QRhiGraphicsPipeline::GreaterOrEqual, QRhiGraphicsPipeline::Less, QRhiGraphicsPipeline::LessOrEqual, QRhiGraphicsPipeline::Never, and QRhiGraphicsPipeline::NotEqual.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 4033 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::Back, QRhiGraphicsPipeline::Front, and QRhiGraphicsPipeline::None.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 3168 of file qrhid3d11.cpp.
References QRhiTexture::D16, QRhiTexture::D24, QRhiTexture::D24S8, and QRhiTexture::D32F.
Referenced by QD3D11TextureRenderTarget::create().
|
inlinestatic |
Definition at line 3151 of file qrhid3d11.cpp.
References QRhiTexture::D16, QRhiTexture::D24, QRhiTexture::D24S8, and QRhiTexture::D32F.
Referenced by QD3D11Texture::finishCreate().
|
inlinestatic |
Definition at line 4048 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::Fill, and QRhiGraphicsPipeline::Line.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 3526 of file qrhid3d11.cpp.
References QRhiSampler::Linear, and QRhiSampler::Nearest.
Referenced by QD3D11Sampler::create().
|
inlinestatic |
Definition at line 4086 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::DecrementAndClamp, QRhiGraphicsPipeline::DecrementAndWrap, QRhiGraphicsPipeline::IncrementAndClamp, QRhiGraphicsPipeline::IncrementAndWrap, QRhiGraphicsPipeline::Invert, QRhiGraphicsPipeline::Keep, QRhiGraphicsPipeline::Replace, and QRhiGraphicsPipeline::StencilZero.
Referenced by QD3D11GraphicsPipeline::create().
|
inlinestatic |
Definition at line 3573 of file qrhid3d11.cpp.
References QRhiSampler::Always, QRhiSampler::Equal, QRhiSampler::Greater, QRhiSampler::GreaterOrEqual, QRhiSampler::Less, QRhiSampler::LessOrEqual, QRhiSampler::Never, and QRhiSampler::NotEqual.
Referenced by QD3D11Sampler::create().
|
inlinestatic |
Definition at line 1416 of file qrhid3d11.cpp.
References QRhiTexture::ASTC_10x10, QRhiTexture::ASTC_10x5, QRhiTexture::ASTC_10x6, QRhiTexture::ASTC_10x8, QRhiTexture::ASTC_12x10, QRhiTexture::ASTC_12x12, QRhiTexture::ASTC_4x4, QRhiTexture::ASTC_5x4, QRhiTexture::ASTC_5x5, QRhiTexture::ASTC_6x5, QRhiTexture::ASTC_6x6, QRhiTexture::ASTC_8x5, QRhiTexture::ASTC_8x6, QRhiTexture::ASTC_8x8, QRhiTexture::BC1, QRhiTexture::BC2, QRhiTexture::BC3, QRhiTexture::BC4, QRhiTexture::BC5, QRhiTexture::BC6H, QRhiTexture::BC7, QRhiTexture::BGRA8, QRhiTexture::D16, QRhiTexture::D24, QRhiTexture::D24S8, QRhiTexture::D32F, QRhiTexture::ETC2_RGB8, QRhiTexture::ETC2_RGB8A1, QRhiTexture::ETC2_RGBA8, qWarning, QRhiTexture::R16, QRhiTexture::R16F, QRhiTexture::R32F, QRhiTexture::R8, QRhiTexture::RED_OR_ALPHA8, QRhiTexture::RG16, QRhiTexture::RG8, QRhiTexture::RGB10A2, QRhiTexture::RGBA16F, QRhiTexture::RGBA32F, QRhiTexture::RGBA8, and QRhiTexture::sRGB.
Referenced by QD3D11RenderBuffer::create(), QD3D11TextureRenderTarget::create(), and QD3D11Texture::prepareCreate().
|
inlinestatic |
Definition at line 4158 of file qrhid3d11.cpp.
References QRhiGraphicsPipeline::Lines, QRhiGraphicsPipeline::LineStrip, QRhiGraphicsPipeline::Patches, QRhiGraphicsPipeline::Points, Q_ASSERT, QRhiGraphicsPipeline::Triangles, and QRhiGraphicsPipeline::TriangleStrip.
Referenced by QD3D11GraphicsPipeline::create().
|
static |
Definition at line 4994 of file qrhid3d11.cpp.
Referenced by QD3D11SwapChain::createOrResize().
|
static |
Definition at line 4995 of file qrhid3d11.cpp.
Referenced by QD3D11SwapChain::createOrResize().
|
static |
Definition at line 893 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 890 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 892 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 891 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 889 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 887 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 888 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().