Lines Matching defs:pPipe

2024 static bool validate_draw_state_flags(layer_data *dev_data, GLOBAL_CB_NODE *pCB, const PIPELINE_NODE *pPipe, bool indexedDraw) {
2030 if (pPipe->graphicsPipelineCI.pInputAssemblyState &&
2031 ((pPipe->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_LINE_LIST) ||
2032 (pPipe->graphicsPipelineCI.pInputAssemblyState->topology == VK_PRIMITIVE_TOPOLOGY_LINE_STRIP))) {
2036 if (pPipe->graphicsPipelineCI.pRasterizationState &&
2037 (pPipe->graphicsPipelineCI.pRasterizationState->depthBiasEnable == VK_TRUE)) {
2041 if (pPipe->blendConstantsEnabled) {
2045 if (pPipe->graphicsPipelineCI.pDepthStencilState &&
2046 (pPipe->graphicsPipelineCI.pDepthStencilState->depthBoundsTestEnable == VK_TRUE)) {
2050 if (pPipe->graphicsPipelineCI.pDepthStencilState &&
2051 (pPipe->graphicsPipelineCI.pDepthStencilState->stencilTestEnable == VK_TRUE)) {
2765 PIPELINE_NODE *pPipe = getPipeline(my_data, state.pipeline);
2766 if (nullptr == pPipe) {
2777 result = validate_draw_state_flags(my_data, pCB, pPipe, indexedDraw);
2792 for (auto & setBindingPair : pPipe->active_slots) {
2798 "VkPipeline 0x%" PRIxLEAST64 " uses set #%u but that set is not bound.", (uint64_t)pPipe->pipeline,
2801 pPipe->graphicsPipelineCI.layout, setIndex, errorString)) {
2809 (uint64_t)setHandle, setIndex, (uint64_t)pPipe->graphicsPipelineCI.layout, errorString.c_str());
2838 if (pPipe->vertexBindingDescriptions.size() > 0) {
2839 for (size_t i = 0; i < pPipe->vertexBindingDescriptions.size(); i++) {
2860 if ((!pPipe->graphicsPipelineCI.pRasterizationState ||
2861 (pPipe->graphicsPipelineCI.pRasterizationState->rasterizerDiscardEnable == VK_FALSE)) &&
2862 pPipe->graphicsPipelineCI.pViewportState) {
2863 bool dynViewport = isDynamic(pPipe, VK_DYNAMIC_STATE_VIEWPORT);
2864 bool dynScissor = isDynamic(pPipe, VK_DYNAMIC_STATE_SCISSOR);
2866 if (pCB->viewports.size() != pPipe->graphicsPipelineCI.pViewportState->viewportCount) {
2871 pCB->viewports.size(), pPipe->graphicsPipelineCI.pViewportState->viewportCount);
2875 if (pCB->scissors.size() != pPipe->graphicsPipelineCI.pViewportState->scissorCount) {
2880 pCB->scissors.size(), pPipe->graphicsPipelineCI.pViewportState->scissorCount);
2887 result |= validatePipelineDrawtimeState(my_data, pCB, bindPoint, pPipe);
3692 static void set_cb_pso_status(GLOBAL_CB_NODE *pCB, const PIPELINE_NODE *pPipe) {
3694 if (!pPipe->graphicsPipelineCI.pDynamicState ||
3695 !pPipe->graphicsPipelineCI.pDynamicState->dynamicStateCount) { // All state is static
3702 for (uint32_t i = 0; i < pPipe->graphicsPipelineCI.pDynamicState->dynamicStateCount; i++) {
3703 switch (pPipe->graphicsPipelineCI.pDynamicState->pDynamicStates[i]) {
5586 void set_pipeline_state(PIPELINE_NODE *pPipe) {
5588 if (pPipe->graphicsPipelineCI.pColorBlendState) {
5589 for (size_t i = 0; i < pPipe->attachments.size(); ++i) {
5590 if (VK_TRUE == pPipe->attachments[i].blendEnable) {
5591 if (((pPipe->attachments[i].dstAlphaBlendFactor >= VK_BLEND_FACTOR_CONSTANT_COLOR) &&
5592 (pPipe->attachments[i].dstAlphaBlendFactor <= VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA)) ||
5593 ((pPipe->attachments[i].dstColorBlendFactor >= VK_BLEND_FACTOR_CONSTANT_COLOR) &&
5594 (pPipe->attachments[i].dstColorBlendFactor <= VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA)) ||
5595 ((pPipe->attachments[i].srcAlphaBlendFactor >= VK_BLEND_FACTOR_CONSTANT_COLOR) &&
5596 (pPipe->attachments[i].srcAlphaBlendFactor <= VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA)) ||
5597 ((pPipe->attachments[i].srcColorBlendFactor >= VK_BLEND_FACTOR_CONSTANT_COLOR) &&
5598 (pPipe->attachments[i].srcColorBlendFactor <= VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA))) {
5599 pPipe->blendConstantsEnabled = true;