Jump to content
  • Advertisement
Sign in to follow this  
chenpan

Load(HLSL Texture Object) error

This topic is 2563 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


Texture2D<float4> g_Disparity;
MipMapPSInput CopyTextureVS(StereoVSInput input)
{
MipMapPSInput output;
float4 color = g_Disparity.Load(int3(input.pos.x, input.pos.y,0));
output.color = color.x;
return output;
}

In PIX, when I debug the vertex shader. I got that variable color's value was ( 0.000, _, _, _ ).
While the texel value in g_Disparity is (4.635, 0, 0, 0).
How to get the texel value correctly? Thank you for your help~

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!