Skip to content

Is there any example of using shader storage buffers ? #3256

Answered by pezcode
abdullahoday710 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use a buffer in a vertex shader the same way you use it in a fragment shader.

I think the tesselation example matches what you want to do:

BUFFER_RO(u_CulledSubdBuffer, uint, 2);

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Gaspard--
Comment options

@pezcode
Comment options

Answer selected by bkaradzic
@Gaspard--
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants