|
发表于 2022-9-20 08:02:36
|
显示全部楼层
https://developer.qualcomm.com/sites/default/files/docs/adreno-gpu/developer-guide/gpu/best_practices_shaders.html#prefer-uniform-buffers-over-shader-storage-buffers
这里确实有写
Prefer uniform buffers over shader storage buffers
As long as read-only access is sufficient for needs and the amount of space Uniform Buffers offer is enough, always prefer them over Shader Storage Buffers. They are likely to perform better under the Adreno architecture. This is true if the Uniform Buffer Objects are statically indexed in GLSL and are small enough that the driver or compiler can map them into the same hardware constant RAM that is used for the default uniform block uniforms.
Also prefer uniform buffers over push constants on Adreno hardware for performance reasons. |
|