Questions tagged [buffer-objects]

Buffer Objects is the general term for unformatted linear memory allocated by the OpenGL context.

Buffer Objects

19 questions
0
votes
0 answers

Nondeterministic SSBO has GL_BUFFER_DATA_SIZE too small after glBufferData

I seem to have nondeterministic data in my Shader Storage Buffer. I used apitrace to inspect the state machine and noticed the following sequence of function calls in the trace: glBindBuffer (GL_SHADER_STORAGE_BUFFER, 3); glBufferData…
spraff
  • 32,570
  • 22
  • 121
  • 229
0
votes
1 answer

Read SSBO content returned by glMapBufferRange

I want to retrieve the data from a storage buffer object. At first, I want to take advantage of glGetBufferSubData. But it seems that this function does not exist in opengl es, though it does exist in opengl. Then I fall back on glMapBufferRange. It…
dudu
  • 801
  • 1
  • 10
  • 32
0
votes
0 answers

Element Buffer Object size for shared VAO

I want to store my indexed geometry in a shared vao. If the current vao is full, I create another vao together with the buffers for the layouts (Pos, Normals, Uvs, etc..). I create them with a capacity for say, N vertices. (Could be thousands, I…
Fruff
  • 47
  • 6
0
votes
1 answer

the offsets in one UBO used in multiple shaders

I use one uniform block like this: uniform matrices { mat4 pv_matrix; mat4 screen_matrix; }; in different shaders with the same binding point defined explicitly by UniformBlockBinding. To work with a Uniform Buffer Object need to query the…
Dennis
  • 47
  • 6
1
2