Home › For UNIFORM BUFFER OBJECTS (UBO) and SHADER STOR…
For UNIFORM BUFFER OBJECTS (UBO) and SHADER STORAGE BUFFER OBJECTS (SSBO), the key difference per OpenGL spec is which?
AUBO can be sampled like a texture only
BSSBO is restricted to 16 KB on every GPU
CUBO requires shader storage indexing always
DSSBO can be written by shaders; UBO is read-only
Answer & Solution
Correct answer: D. SSBO can be written by shaders; UBO is read-only
Khronos OpenGL Wiki: UBO = small, fast, read-only constant block. SSBO = large, arbitrary read + write from shader (atomic increments etc.).
Related questions
Per LearnOpenGL (compute shaders), the WORKGROUP for a GLSL compute shader is invoked via Per LearnOpenGL (Normal Mapping), normals stored in a normal map are most commonly in whicPer LearnOpenGL (Lighting), the BLINN-PHONG specular highlight uses which vector instead oIn a fragment shader, BRANCHING on a uniform vs a varying / per-fragment value differs becPer The Book of Shaders, a SDF-based circle shape in a fragment shader at point uv (centrePer Microsoft HLSL docs, a vertex shader output marked SV_POSITION corresponds to which GLPer LearnOpenGL, the CLIP space output (gl_Position) is converted to NDC by which operatioPer LearnOpenGL (Transformations), the standard order of matrix multiplication for a verte