The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

What is vstoren for?

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).