Results 1 to 2 of 2

Thread: What is vstoren for?

  1. #1
    Junior Member
    Join Date
    Mar 2012

    What is vstoren for?

    Are there any advantages compared to the usual way storing variables?

  2. #2

    Re: What is vstoren for?

    vload and vstore are used to load/store data in non-standard alignments, so they are in fact typically slower than standard read/writes. Typical usage is to read packed data from 3-component vectors (e.g. float3 data with an alignment of 3 floats instead of the 4 floats prescribed by the opencl standard), or to access elements in structures that do not align vector elements correctly (elements still need to be aligned correctly at the single vector component level, though).

    Don't use them if you don't need them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean