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 6111801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:40:20+00:00 2026-05-23T14:40:20+00:00

Is there any efficient way to fetch texture data in a random way? That

  • 0

Is there any efficient way to fetch texture data in a random way? That is, I’d like to use a texture as a look-up table and I need random access to its elements. Therefore I’d be sampling it in a random fashion. Is it a completely lost cause?

  • 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-23T14:40:21+00:00Added an answer on May 23, 2026 at 2:40 pm

    Random access is a basic feature of GLSL. E.g.

    vec2 someLocation = ... whatever you like ...;
    vec4 sampledColour = texture2D(sampler, someLocation);
    

    Depending on your hardware, it may cost more to read a texture if you’ve calculated the sample locations directly in the pixel shader rather than out in the vertex shader and allowed them to be interpolated automatically as a varying, but that’s just an immutable hardware cost relating to the decreased predictability of what you’re doing.

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

Sidebar

Related Questions

I am wondering any efficient way to hide our Silverlight code. I know there
I am building a website on top of nhibernate. Is there any efficient way
Is there any efficient way to convert an NSDate to RFC 2822 Date format
is there any efficient way to scan the id & class name in css
There is a simple way to get top N rows from any table: SELECT
Is there any efficient way (maybe by abusing the gcc preprocessor?) to get a
If we have an array of integers, then is there any efficient way other
Are there any efficient bitwise operations I can do to get the number of
Is there any speed- and cache-efficient implementations of trie in C/C++? I know what
Is there any time in which a reference type is more efficient than a

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.