Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GraphicsPipelineState *ps changes back to default every time QSGMaterialShader::updateGraphicsPipelineState is invoked
Qt 6.12 LTS is out! See what's new in the release blog

GraphicsPipelineState *ps changes back to default every time QSGMaterialShader::updateGraphicsPipelineState is invoked

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 251 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Feng Tian
    wrote on last edited by
    #1

    We are trying to optimise function
    updateGraphicsPipelineState(..)
    to make sure that we only return true only when pipeline state changed. But we found that GraphicsPipelineState *ps always pass in the default value even if we set the blend values inside this function.
    Also by looking at the source code qsgbatchrender.cpp, we found that m_gstateStack.push(m_gstate); is pushing the default values of m_gstate to m_gstateStack, is this correct? Shouldn't this push happen after materialToRendererGraphicsState(&m_gstate, &shaderPs); so that the changed values are pushed into the stack?
    Otherwise m_gstate = m_gstateStack.pop(); will just pop the default value right after new value is set to m_gstate, right?
    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved