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

  • Home
  • SEARCH
  • 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 8372297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:23:38+00:00 2026-06-09T14:23:38+00:00

how do you enable compatibility mode in HLSL? I’m using Visual studio and xna.

  • 0

how do you enable compatibility mode in HLSL? I’m using Visual studio and xna.

I want to be able to change global variables from within the pixel shader and then retrieve them from the pixel shader after a pass of the pixel shader, but I can’t change the global variables from within the pixel shader without getting an error that tells me they are constant and that I must enable compatibility mode.

So how do I enable this?

  • 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-06-09T14:23:39+00:00Added an answer on June 9, 2026 at 2:23 pm

    While I’ve not seen that error before, I’m going to go out on a limb and say that you’re misinterpreting it.

    I’m pretty sure what you’re trying to do is impossible, on the basis that a pixel shader is run multiple times in parallel. Which pixel should be the one to set the global variable that you want to read?

    (Internally these global variables map to “constant registers” – key word here being constant. They are set when you make a draw call, and are read-only from the point of view of the shader.)

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

Sidebar

Related Questions

i enable hl-mode in global scope with the following code. (global-hl-line-mode t) to turn
Is there a vm option option to enable 32bit compatibility mode? I've googled but
I want to use LWJGL in an Eclipse RCP application, but either using the
i'm using asp:repeater in a page, and it has OnItemCommand. but in IE7 (compatibility
Are there any good free C/C++ libraries that enable reading from common devices with
I want to test my software compatibility with Japanese apps, and I don't have
I have a shared Excel worksheet (using .XLS due to compatibility issues), which I
e n Automatically detect file types. set nocompatible We don't want vi compatibility. Add
I want to be able to render something into a texture, on OpenGL, so
I enable JMX server and JMX Registry in Tomcat using <Listener className=org.apache.catalina.mbeans.JmxRemoteLifecycleListener rmiRegistryPortPlatform=10001 rmiServerPortPlatform=10002

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.