Lines Matching refs:gpCI
300 bool graphicsPipelineHasDynamicState(const VkGraphicsPipelineCreateInfo& gpCI, VkDynamicState state) in graphicsPipelineHasDynamicState() argument
302 if (gpCI.pDynamicState == DE_NULL) in graphicsPipelineHasDynamicState()
305 if (gpCI.pDynamicState->pDynamicStates == DE_NULL) in graphicsPipelineHasDynamicState()
308 for (deUint32 i = 0; i < gpCI.pDynamicState->dynamicStateCount; ++i) in graphicsPipelineHasDynamicState()
309 if (gpCI.pDynamicState->pDynamicStates[i] == state) in graphicsPipelineHasDynamicState()
315 std::size_t calculateGraphicsPipelineHash (const VkGraphicsPipelineCreateInfo& gpCI, const std::map… in calculateGraphicsPipelineHash() argument
319 hashPNextChain(seed, gpCI.pNext, objectHashes); in calculateGraphicsPipelineHash()
321 hash_combine(seed, gpCI.flags); in calculateGraphicsPipelineHash()
333 if (gpCI.pStages != DE_NULL) in calculateGraphicsPipelineHash()
335 for (deUint32 i = 0; i < gpCI.stageCount; ++i) in calculateGraphicsPipelineHash()
337 hashPNextChain(seed, gpCI.pStages[i].pNext, objectHashes); in calculateGraphicsPipelineHash()
339 hash_combine(seed, deUint32(gpCI.pStages[i].flags), deUint32(gpCI.pStages[i].stage)); in calculateGraphicsPipelineHash()
340 auto it = objectHashes.find(gpCI.pStages[i].module.getInternal()); in calculateGraphicsPipelineHash()
344 hash_combine(seed, std::string(gpCI.pStages[i].pName)); in calculateGraphicsPipelineHash()
346 if (gpCI.pStages[i].pSpecializationInfo != DE_NULL) in calculateGraphicsPipelineHash()
348 if (gpCI.pStages[i].pSpecializationInfo->pMapEntries != DE_NULL) in calculateGraphicsPipelineHash()
350 for (deUint32 j = 0; j < gpCI.pStages[i].pSpecializationInfo->mapEntryCount; ++j) in calculateGraphicsPipelineHash()
351 …mbine(seed, gpCI.pStages[i].pSpecializationInfo->pMapEntries[j].constantID, gpCI.pStages[i].pSpeci… in calculateGraphicsPipelineHash()
353 …hash_combine(seed, MemoryArea(gpCI.pStages[i].pSpecializationInfo->pData, gpCI.pStages[i].pSpecial… in calculateGraphicsPipelineHash()
356 if (gpCI.pStages[i].stage == VK_SHADER_STAGE_VERTEX_BIT) in calculateGraphicsPipelineHash()
361 if (gpCI.pStages[i].stage == VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT) in calculateGraphicsPipelineHash()
367 if (gpCI.pDynamicState != DE_NULL) in calculateGraphicsPipelineHash()
369 if (gpCI.pDynamicState->pDynamicStates != DE_NULL) in calculateGraphicsPipelineHash()
370 for (deUint32 i = 0; i < gpCI.pDynamicState->dynamicStateCount; ++i) in calculateGraphicsPipelineHash()
372 …if (gpCI.pDynamicState->pDynamicStates[i] == VK_DYNAMIC_STATE_VIEWPORT || gpCI.pDynamicState->pDyn… in calculateGraphicsPipelineHash()
377 …if (gpCI.pDynamicState->pDynamicStates[i] == VK_DYNAMIC_STATE_SCISSOR || gpCI.pDynamicState->pDyna… in calculateGraphicsPipelineHash()
382 if (gpCI.pDynamicState->pDynamicStates[i] == VK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE_EXT) in calculateGraphicsPipelineHash()
386 if (gpCI.pRasterizationState != DE_NULL) in calculateGraphicsPipelineHash()
388 if (gpCI.pRasterizationState->rasterizerDiscardEnable == VK_FALSE) in calculateGraphicsPipelineHash()
399 if (vertexInputStateRequired && gpCI.pVertexInputState != DE_NULL) in calculateGraphicsPipelineHash()
401 hashPNextChain(seed, gpCI.pVertexInputState->pNext, objectHashes); in calculateGraphicsPipelineHash()
402 hash_combine(seed, gpCI.pVertexInputState->flags); in calculateGraphicsPipelineHash()
403 if (gpCI.pVertexInputState->pVertexBindingDescriptions != DE_NULL) in calculateGraphicsPipelineHash()
404 for (deUint32 i = 0; i < gpCI.pVertexInputState->vertexBindingDescriptionCount; ++i) in calculateGraphicsPipelineHash()
405 …(seed, gpCI.pVertexInputState->pVertexBindingDescriptions[i].binding, gpCI.pVertexInputState->pVer… in calculateGraphicsPipelineHash()
406 if (gpCI.pVertexInputState->pVertexAttributeDescriptions != DE_NULL) in calculateGraphicsPipelineHash()
407 for (deUint32 i = 0; i < gpCI.pVertexInputState->vertexAttributeDescriptionCount; ++i) in calculateGraphicsPipelineHash()
408 …gpCI.pVertexInputState->pVertexAttributeDescriptions[i].location, gpCI.pVertexInputState->pVertexA… in calculateGraphicsPipelineHash()
411 if (inputAssemblyStateRequired && gpCI.pInputAssemblyState != DE_NULL) in calculateGraphicsPipelineHash()
413 hashPNextChain(seed, gpCI.pInputAssemblyState->pNext, objectHashes); in calculateGraphicsPipelineHash()
414 …hash_combine(seed, deUint32(gpCI.pInputAssemblyState->flags), deUint32(gpCI.pInputAssemblyState->t… in calculateGraphicsPipelineHash()
416 if (tessellationStateRequired && gpCI.pTessellationState != DE_NULL) in calculateGraphicsPipelineHash()
418 hashPNextChain(seed, gpCI.pTessellationState->pNext, objectHashes); in calculateGraphicsPipelineHash()
419 hash_combine(seed, gpCI.pTessellationState->flags, gpCI.pTessellationState->patchControlPoints); in calculateGraphicsPipelineHash()
421 if (viewportStateRequired && gpCI.pViewportState != DE_NULL) in calculateGraphicsPipelineHash()
423 hashPNextChain(seed, gpCI.pViewportState->pNext, objectHashes); in calculateGraphicsPipelineHash()
424 hash_combine(seed, gpCI.pViewportState->flags); in calculateGraphicsPipelineHash()
426 if (viewportStateViewportsRequired && gpCI.pViewportState->pViewports != DE_NULL) in calculateGraphicsPipelineHash()
427 for (deUint32 i = 0; i < gpCI.pViewportState->viewportCount; ++i) in calculateGraphicsPipelineHash()
428 …gpCI.pViewportState->pViewports[i].x, gpCI.pViewportState->pViewports[i].y, gpCI.pViewportState->p… in calculateGraphicsPipelineHash()
430 if (viewportStateScissorsRequired && gpCI.pViewportState->pScissors != DE_NULL) in calculateGraphicsPipelineHash()
431 for (deUint32 i = 0; i < gpCI.pViewportState->scissorCount; ++i) in calculateGraphicsPipelineHash()
432 …seed, gpCI.pViewportState->pScissors[i].offset.x, gpCI.pViewportState->pScissors[i].offset.y, gpCI… in calculateGraphicsPipelineHash()
434 if (gpCI.pRasterizationState != DE_NULL) in calculateGraphicsPipelineHash()
436 hashPNextChain(seed, gpCI.pRasterizationState->pNext, objectHashes); in calculateGraphicsPipelineHash()
437 …gpCI.pRasterizationState->flags), gpCI.pRasterizationState->depthClampEnable, gpCI.pRasterizationS… in calculateGraphicsPipelineHash()
439 if (multiSampleStateRequired && gpCI.pMultisampleState != DE_NULL) in calculateGraphicsPipelineHash()
441 hashPNextChain(seed, gpCI.pMultisampleState->pNext, objectHashes); in calculateGraphicsPipelineHash()
442 …eUint32(gpCI.pMultisampleState->flags), deUint32(gpCI.pMultisampleState->rasterizationSamples), gp… in calculateGraphicsPipelineHash()
443 if (gpCI.pMultisampleState->pSampleMask != DE_NULL) in calculateGraphicsPipelineHash()
444 for (int i = 0; i < ((gpCI.pMultisampleState->rasterizationSamples + 31) / 32); i++) in calculateGraphicsPipelineHash()
445 hash_combine(seed, gpCI.pMultisampleState->pSampleMask[i]); in calculateGraphicsPipelineHash()
446 …hash_combine(seed, gpCI.pMultisampleState->alphaToCoverageEnable, gpCI.pMultisampleState->alphaToO… in calculateGraphicsPipelineHash()
448 if (depthStencilStateRequired && gpCI.pDepthStencilState != DE_NULL) in calculateGraphicsPipelineHash()
450 hashPNextChain(seed, gpCI.pDepthStencilState->pNext, objectHashes); in calculateGraphicsPipelineHash()
451 …gpCI.pDepthStencilState->flags), gpCI.pDepthStencilState->depthTestEnable, gpCI.pDepthStencilState… in calculateGraphicsPipelineHash()
452 if (gpCI.pDepthStencilState->stencilTestEnable) in calculateGraphicsPipelineHash()
454 …gpCI.pDepthStencilState->front.failOp), deUint32(gpCI.pDepthStencilState->front.passOp), deUint32(… in calculateGraphicsPipelineHash()
455 …gpCI.pDepthStencilState->back.failOp), deUint32(gpCI.pDepthStencilState->back.passOp), deUint32(gp… in calculateGraphicsPipelineHash()
457 …hash_combine(seed, gpCI.pDepthStencilState->minDepthBounds, gpCI.pDepthStencilState->maxDepthBound… in calculateGraphicsPipelineHash()
459 if (colorBlendStateRequired && gpCI.pColorBlendState != DE_NULL) in calculateGraphicsPipelineHash()
461 hashPNextChain(seed, gpCI.pColorBlendState->pNext, objectHashes); in calculateGraphicsPipelineHash()
462 …hash_combine(seed, deUint32(gpCI.pColorBlendState->flags), gpCI.pColorBlendState->logicOpEnable, d… in calculateGraphicsPipelineHash()
466 if (gpCI.pColorBlendState->pAttachments != DE_NULL) in calculateGraphicsPipelineHash()
468 for (deUint32 i = 0; i < gpCI.pColorBlendState->attachmentCount; ++i) in calculateGraphicsPipelineHash()
473 …gpCI.pColorBlendState->pAttachments[i].blendEnable, deUint32(gpCI.pColorBlendState->pAttachments[i… in calculateGraphicsPipelineHash()
474 …gpCI.pColorBlendState->pAttachments[i].srcAlphaBlendFactor), deUint32(gpCI.pColorBlendState->pAtta… in calculateGraphicsPipelineHash()
476 …if (constFactors.find(gpCI.pColorBlendState->pAttachments[i].srcColorBlendFactor) != end(constFact… in calculateGraphicsPipelineHash()
477 …if (constFactors.find(gpCI.pColorBlendState->pAttachments[i].dstColorBlendFactor) != end(constFact… in calculateGraphicsPipelineHash()
478 …if (constFactors.find(gpCI.pColorBlendState->pAttachments[i].srcAlphaBlendFactor) != end(constFact… in calculateGraphicsPipelineHash()
479 …if (constFactors.find(gpCI.pColorBlendState->pAttachments[i].dstAlphaBlendFactor) != end(constFact… in calculateGraphicsPipelineHash()
483 …if (hashBlendConstants && !graphicsPipelineHasDynamicState(gpCI, VK_DYNAMIC_STATE_BLEND_CONSTANTS)) in calculateGraphicsPipelineHash()
485 hash_combine(seed, gpCI.pColorBlendState->blendConstants[i]); in calculateGraphicsPipelineHash()
487 if (gpCI.pDynamicState != DE_NULL) in calculateGraphicsPipelineHash()
489 hashPNextChain(seed, gpCI.pDynamicState->pNext, objectHashes); in calculateGraphicsPipelineHash()
490 hash_combine(seed, gpCI.pDynamicState->flags); in calculateGraphicsPipelineHash()
491 if (gpCI.pDynamicState->pDynamicStates != DE_NULL) in calculateGraphicsPipelineHash()
492 for (deUint32 i = 0; i < gpCI.pDynamicState->dynamicStateCount; ++i) in calculateGraphicsPipelineHash()
493 hash_combine(seed, deUint32(gpCI.pDynamicState->pDynamicStates[i])); in calculateGraphicsPipelineHash()
497 auto it = objectHashes.find(gpCI.layout.getInternal()); in calculateGraphicsPipelineHash()
503 auto it = objectHashes.find(gpCI.renderPass.getInternal()); in calculateGraphicsPipelineHash()
508 hash_combine(seed, gpCI.subpass); in calculateGraphicsPipelineHash()
511 auto it = objectHashes.find(gpCI.basePipelineHandle.getInternal()); in calculateGraphicsPipelineHash()
515 hash_combine(seed, gpCI.basePipelineIndex); in calculateGraphicsPipelineHash()