|
| Q_DECLARE_TYPEINFO (QRhiMetalData::DeferredReleaseEntry, Q_RELOCATABLE_TYPE) |
| Q_DECLARE_TYPEINFO (QRhiMetalData::TextureReadback, Q_RELOCATABLE_TYPE) |
template<class Int> |
Int | aligned (Int v, Int byteAlign) |
static int | mapBinding (int binding, int stageIndex, const QShader::NativeResourceBindingMap *nativeResourceBindingMaps[], BindingType type) |
static void | bindStageBuffers (QMetalCommandBuffer *cbD, int stage, const QRhiBatchedBindings< id< MTLBuffer > >::Batch &bufferBatch, const QRhiBatchedBindings< NSUInteger >::Batch &offsetBatch) |
static void | bindStageTextures (QMetalCommandBuffer *cbD, int stage, const QRhiBatchedBindings< id< MTLTexture > >::Batch &textureBatch) |
static void | bindStageSamplers (QMetalCommandBuffer *cbD, int encoderStage, const QRhiBatchedBindings< id< MTLSamplerState > >::Batch &samplerBatch) |
static void | rebindShaderResources (QMetalCommandBuffer *cbD, int resourceStage, int encoderStage, const QMetalShaderResourceBindingsData *customBindingState=nullptr) |
static QRhiShaderResourceBinding::StageFlag | toRhiSrbStage (int stage) |
static id< MTLComputeCommandEncoder > | tessellationComputeEncoder (QMetalCommandBuffer *cbD) |
static void | endTessellationComputeEncoding (QMetalCommandBuffer *cbD) |
static void | qrhimtl_releaseBuffer (const QRhiMetalData::DeferredReleaseEntry &e) |
static void | qrhimtl_releaseRenderBuffer (const QRhiMetalData::DeferredReleaseEntry &e) |
static void | qrhimtl_releaseTexture (const QRhiMetalData::DeferredReleaseEntry &e) |
static void | qrhimtl_releaseSampler (const QRhiMetalData::DeferredReleaseEntry &e) |
static MTLPixelFormat | toMetalTextureFormat (QRhiTexture::Format format, QRhiTexture::Flags flags, const QRhiMetal *d) |
static MTLSamplerMinMagFilter | toMetalFilter (QRhiSampler::Filter f) |
static MTLSamplerMipFilter | toMetalMipmapMode (QRhiSampler::Filter f) |
static MTLSamplerAddressMode | toMetalAddressMode (QRhiSampler::AddressMode m) |
static MTLCompareFunction | toMetalTextureCompareFunction (QRhiSampler::CompareOp op) |
static MTLVertexFormat | toMetalAttributeFormat (QRhiVertexInputAttribute::Format format) |
static MTLBlendFactor | toMetalBlendFactor (QRhiGraphicsPipeline::BlendFactor f) |
static MTLBlendOperation | toMetalBlendOp (QRhiGraphicsPipeline::BlendOp op) |
static uint | toMetalColorWriteMask (QRhiGraphicsPipeline::ColorMask c) |
static MTLCompareFunction | toMetalCompareOp (QRhiGraphicsPipeline::CompareOp op) |
static MTLStencilOperation | toMetalStencilOp (QRhiGraphicsPipeline::StencilOp op) |
static MTLPrimitiveType | toMetalPrimitiveType (QRhiGraphicsPipeline::Topology t) |
static MTLPrimitiveTopologyClass | toMetalPrimitiveTopologyClass (QRhiGraphicsPipeline::Topology t) |
static MTLCullMode | toMetalCullMode (QRhiGraphicsPipeline::CullMode c) |
static MTLTriangleFillMode | toMetalTriangleFillMode (QRhiGraphicsPipeline::PolygonMode mode) |
static MTLWinding | toMetalTessellationWindingOrder (QShaderDescription::TessellationWindingOrder w) |
static MTLTessellationPartitionMode | toMetalTessellationPartitionMode (QShaderDescription::TessellationPartitioning p) |
static MTLLanguageVersion | toMetalLanguageVersion (const QShaderVersion &version) |
static bool | indexTaken (quint32 index, quint64 indices) |
static void | takeIndex (quint32 index, quint64 &indices) |
static int | nextAttributeIndex (quint64 indices) |
static int | aligned (quint32 offset, quint32 alignment) |
template<typename T> |
static void | addUnusedVertexAttribute (const T &variable, QRhiMetal *rhiD, quint32 &offset, quint32 &vertexAlignment) |
template<typename T> |
static void | addVertexAttribute (const T &variable, int binding, QRhiMetal *rhiD, int &index, quint32 &offset, MTLVertexAttributeDescriptorArray *attributes, quint64 &indices, quint32 &vertexAlignment) |
static bool | matches (const QList< QShaderDescription::BlockVariable > &a, const QList< QShaderDescription::BlockVariable > &b) |
static bool | matches (const QShaderDescription::InOutVariable &a, const QShaderDescription::InOutVariable &b) |
static CAMetalLayer * | layerForWindow (QWindow *window) |