Questions tagged [uniform-buffer-object]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
76 views

Veldrid: Only execute fragment shader

Having an HLSL shader like this: ...
1
vote
0answers
98 views

OpenGL ES 3.0 - Uniform Buffer Object non-static indexing

I've encountered a very strange issue while testing UBO on Android device: if I try to index UBO array with non-constant index, the program fails to link with log: ...
1
vote
1answer
495 views

Shader storage buffer indexing by 4 bytes instead of 3?

I am trying to send rendering information for an instancing rendering using shader buffer objects. My current problem is that I have 2 shader buffer objects, one which works just fine, and another ...
8
votes
2answers
639 views

What is a good approach for handling uniforms in modern OpenGL?

I'm creating a renderer using modern OpenGL (3.1 and up) and now I'm trying to create an efficient but flexible way of handling uniforms. I've been reading up on uniform buffer objects and on what a '...
1
vote
1answer
3k views

OpenGL ES 3 - Uniform buffer object with float array

I'm trying to load an array of float to a fragment shader using a uniform buffer object, but it doesn't work. In the fragment shader I declared the following uniform block: ...
3
votes
1answer
1k views

Uniform Buffers: What is quicker?

So I want to render a buttload of quads by using a single 4 point vertex array and change the position of the quad. What is quicker: Using glBufferSubData to ...
10
votes
1answer
181 views

Do the alignement and declaration order of uniforms matter?

In the section 6.4 Constant Buffers of the book Practical Rendering & Computation with Direct3D 11 (pages 325, 326) it is mentioned: By default, the HLSL compiler will attempt to align ...