Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6980675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:03:26+00:00 2026-05-27T18:03:26+00:00

I have three questions here: Is the Qt/3D API implemented by GLSL code? Is

  • 0

I have three questions here:

  1. Is the Qt/3D API implemented by GLSL code?
  2. Is GLSL code compiled and linked as normal c/c++ code, and can it run on CPU (not GPU)?
  3. Why GLSL is better at rendering than normal c/c++?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:03:26+00:00Added an answer on May 27, 2026 at 6:03 pm

    You seem to have a fundamental misunderstanding of what GLSL is. It’s not a programming language for graphics. It is a shader language.

    In the OpenGL rendering pipeline, there are certain stages in the rendering of an object that are designed to be implemented by a program. These stages are called “shader stages”. A shader is a program, written in GLSL (for OpenGL at least) which is executed at one of these shader stages.

    GLSL is used as part of the process of rendering. GLSL defines how things get rendered, not what gets rendered.

    Therefore:

    Is the Qt/3D API implemented by GLSL code?

    Not in the way you mean. Some of the rendering pipeline for the drawing functions may be. But it may not. It’s not really relevant to you, since you’re using it from the outside.

    Is GLSL code compiled and linked as normal c/c++ code, and can it run on CPU (not GPU)?

    No, per above. Shaders affect rendering, and rendering takes place on the GPU. GLSL is the shading language for OpenGL, therefore GLSL code is executed on the GPU.

    Why GLSL is better at rendering than normal c/c++?

    It’s not better or worse; you cannot use one for the other. You cannot just throw random C-code at a GPU as part of the rendering pipeline. And you cannot compile GLSL for CPUs.

    GLSL is what we call a domain specific language. It is a language designed to facilitate a particular purpose. It has language constructs that most languages simply don’t have. It knows what a “texture” is. It has the concept of values which are invariant across multiple executions of a shader within a single rendering call (uniforms). It has many other concepts that are unique to the problem of hardware-based shaders and rendering.

    Not only can you not throw C or C++ at a GPU, you wouldn’t want to. Not for shaders.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three easy questions. Does anybody use QuickTest Pro for automated testing? Any
There have been some questions about whether or not JavaScript is an object-oriented language.
As described here http://www.ddj.com/cpp/184401688 I do not have time to write this from scratch.
I have developed an android service. Any android app can use it's API's to
I have got many of my questions solved here, many thanks to you guys.
There are many questions about this PersistenceException, but I have not seen some, where
There have been questions with answers on how to write rubygems, but what should
I know there have been questions in the past about SQL 2005 versus Lucene.NET
As per the title I have three parts to this question... Is db4o object
There have been several questions already posted with specific questions about dependency injection ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.