![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qrhid3d11_p.h"#include "qshader.h"#include "qshader_p.h"#include "vs_test_p.h"#include <QWindow>#include <qmath.h>#include <QtCore/qcryptographichash.h>#include <QtCore/qendian.h>#include <QtCore/private/qsystemerror_p.h>#include "qrhid3dhelpers_p.h"#include <cstdio>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) |
Functions | |
| template<class Int> | |
| Int | aligned (Int vv, Int byteAlign) |
| \variable QRhiVulkanQueueSubmitParams::waitSemaphoreCount | |
| static IDXGIFactory1 * | createDXGIFactory2 () |
| static int | rbmStageIndex (QRhiShaderStage::Type typetype) |
| static void | getPushConstantInfo (const QShader &shadershader, const QShaderKey &keykey, int *reg, quint32 *sizesize) |
| static QD3D11RenderTargetData * | rtData (QRhiRenderTarget *rt) |
| static DXGI_FORMAT | toD3DTextureFormat (QRhiTexture::Format formatformat, QRhiTexture::Flags flagsflags) |
| static QRhiTexture::Format | swapchainReadbackTextureFormat (DXGI_FORMAT formatformat, QRhiTexture::Flags *flagsflags) |
| static bool | isDepthTextureFormat (QRhiTexture::Format formatformat) |
| static std::pair< int, int > | mapBinding (int binding, int stageIndex, const QShader::NativeResourceBindingMap *nativeResourceBindingMaps[], uint pushConstantStages) |
| static void | applyDynamicOffsets (UINT *offsetsoffsets, int batchIndex, const QRhiBatchedBindings< UINT > *originalBindings, const QRhiBatchedBindings< UINT > *staticOffsets, const uint *dynOfsPairs, int dynOfsPairCount) |
| static uint | clampedResourceCount (uint startSlot, int countSlots, uint maxSlots, const char *resType) |
| static uint | toD3DBufferUsage (QRhiBuffer::UsageFlags usageusage) |
| static DXGI_FORMAT | toD3DDepthTextureSRVFormat (QRhiTexture::Format formatformat) |
| static DXGI_FORMAT | toD3DDepthTextureDSVFormat (QRhiTexture::Format formatformat) |
| static D3D11_FILTER | toD3DFilter (QRhiSampler::Filter minFilter, QRhiSampler::Filter magFilter, QRhiSampler::Filter mipFilter) |
| static D3D11_TEXTURE_ADDRESS_MODE | toD3DAddressMode (QRhiSampler::AddressMode mm) |
| static D3D11_COMPARISON_FUNC | toD3DTextureComparisonFunc (QRhiSampler::CompareOp op) |
| template<typename T> | |
| void | releasePipelineShader (T &ss) |
| static D3D11_CULL_MODE | toD3DCullMode (QRhiGraphicsPipeline::CullMode cc) |
| static D3D11_FILL_MODE | toD3DFillMode (QRhiGraphicsPipeline::PolygonMode modemode) |
| static D3D11_COMPARISON_FUNC | toD3DCompareOp (QRhiGraphicsPipeline::CompareOp op) |
| static D3D11_STENCIL_OP | toD3DStencilOp (QRhiGraphicsPipeline::StencilOp op) |
| static DXGI_FORMAT | toD3DAttributeFormat (QRhiVertexInputAttribute::Format formatformat) |
| static D3D11_PRIMITIVE_TOPOLOGY | toD3DTopology (QRhiGraphicsPipeline::Topology tt, int patchControlPointCount) |
| static UINT8 | toD3DColorWriteMask (QRhiGraphicsPipeline::ColorMask cc) |
| static D3D11_BLEND | toD3DBlendFactor (QRhiGraphicsPipeline::BlendFactor ff, bool rgb) |
| static D3D11_BLEND_OP | toD3DBlendOp (QRhiGraphicsPipeline::BlendOp op) |
| static QByteArray | sourceHash (const QByteArray &sourcesource) |
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 152 of file qrhid3d11.cpp.
| #define D3D11_VS_INPUT_REGISTER_COUNT 32 |
Definition at line 156 of file qrhid3d11.cpp.
| #define DXGI_ADAPTER_FLAG_SOFTWARE 2 |
\variable QRhiD3D11NativeHandles::dev
Points to a \l{https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nn-d3d11-id3d11device}{ID3D11Device} or left set to \nullptr if no existing device is to be imported.
\variable QRhiD3D11NativeHandles::context
Points to a \l{https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nn-d3d11-id3d11devicecontext}{ID3D11DeviceContext} or left set to \nullptr if no existing device context is to be imported.
\variable QRhiD3D11NativeHandles::featureLevel
Specifies the feature level passed to \l{https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-d3d11createdevice}{D3D11CreateDevice()}. Relevant only when QRhi creates the device, ignored when importing a device and device context. When not set, the default rules outlined in the D3D documentation apply.
\variable QRhiD3D11NativeHandles::adapterLuidLow
The low part of the local identifier (LUID) of the DXGI adapter to use. Relevant only when QRhi creates the device, ignored when importing a device and device context.
\variable QRhiD3D11NativeHandles::adapterLuidHigh
The high part of the local identifier (LUID) of the DXGI adapter to use. Relevant only when QRhi creates the device, ignored when importing a device and device context.
Definition at line 148 of file qrhid3d11.cpp.
| #define SETSAMPLERBATCH | ( | stagePrefixL, | |
| stagePrefixU ) |
Definition at line 3083 of file qrhid3d11.cpp.
| #define SETSHADER | ( | StageL, | |
| StageU ) |
Definition at line 3249 of file qrhid3d11.cpp.
| #define SETUAVBATCH | ( | stagePrefixL, | |
| stagePrefixU ) |
Definition at line 3102 of file qrhid3d11.cpp.
| #define SETUBUFBATCH | ( | stagePrefixL, | |
| stagePrefixU ) |
Definition at line 3054 of file qrhid3d11.cpp.
|
inline |
\variable QRhiVulkanQueueSubmitParams::waitSemaphoreCount
See \l{https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSubmitInfo.html}{VkSubmitInfo} for details.
\variable QRhiVulkanQueueSubmitParams::waitSemaphores
See \l{https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSubmitInfo.html}{VkSubmitInfo} for details.
\variable QRhiVulkanQueueSubmitParams::signalSemaphoreCount
See \l{https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSubmitInfo.html}{VkSubmitInfo} for details.
\variable QRhiVulkanQueueSubmitParams::signalSemaphores
See \l{https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSubmitInfo.html}{VkSubmitInfo} for details.
\variable QRhiVulkanQueueSubmitParams::presentWaitSemaphoreCount
When non-zero, this applies to the next vkQueuePresentKHR() call. See \l{https://registry.khronos.org/VulkanSC/specs/1.0-extensions/man/html/VkPresentInfoKHR.html}{VkPresentInfoKHR} for details.
\variable QRhiVulkanQueueSubmitParams::presentWaitSemaphores
See \l{https://registry.khronos.org/VulkanSC/specs/1.0-extensions/man/html/VkPresentInfoKHR.html}{VkPresentInfoKHR} for details.
Definition at line 183 of file qrhid3d11.cpp.
|
static |
Definition at line 3020 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 3044 of file qrhid3d11.cpp.
|
static |
Definition at line 188 of file qrhid3d11.cpp.
|
static |
Definition at line 1080 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 1949 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 2674 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 1058 of file qrhid3d11.cpp.
|
inline |
Definition at line 4729 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 1527 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::beginPass(), and QRhiD3D11::endExternal().
|
inlinestatic |
Definition at line 5021 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 1921 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4291 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4852 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4951 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 5002 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 3548 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4937 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4802 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4774 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 3888 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 3869 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4789 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4259 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4827 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4306 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 1818 of file qrhid3d11.cpp.
|
inlinestatic |
Definition at line 4915 of file qrhid3d11.cpp.
|
static |
Definition at line 5741 of file qrhid3d11.cpp.
|
static |
Definition at line 5742 of file qrhid3d11.cpp.
|
static |
Definition at line 1056 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setPushConstants(), QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 1053 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 1055 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 1054 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 1052 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 1050 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().
|
static |
Definition at line 1051 of file qrhid3d11.cpp.
Referenced by QRhiD3D11::setShaderResources(), and QRhiD3D11::updateShaderResourceBindings().